Skip to content

Commit

Permalink
Implemented 1.20.3/4
Browse files Browse the repository at this point in the history
1.20.3/4 Implementation
  • Loading branch information
milutinke committed Mar 5, 2024
2 parents 9a147b5 + 4383117 commit 86fb4fe
Show file tree
Hide file tree
Showing 24 changed files with 10,680 additions and 6,045 deletions.
8 changes: 4 additions & 4 deletions MinecraftClient/ChatBots/WebSocketBot.cs
Original file line number Diff line number Diff line change
Expand Up @@ -1221,16 +1221,16 @@ public override void OnEntityEffect(Entity entity, Effects effect, int amplifier
}

public override void OnScoreboardObjective(string objectiveName, byte mode, string objectiveValue, int type,
string json_)
string json_, int numberFormat)
{
SendEvent("OnScoreboardObjective",
new { objectiveName, mode, objectiveValue, type, rawJson = json_ });
new { objectiveName, mode, objectiveValue, type, rawJson = json_, numberFormat });
}

public override void OnUpdateScore(string entityName, int action, string objectiveName, int value)
public override void OnUpdateScore(string entityName, int action, string objectiveName, string objectiveDisplayName, int value, int numberFormat)
{
SendEvent("OnUpdateScore",
new { entityName, action, objectiveName, type = value });
new { entityName, action, objectiveName, objectiveDisplayName, type = value, numberFormat });
}

public override void OnInventoryUpdate(int inventoryId)
Expand Down
1,330 changes: 1,330 additions & 0 deletions MinecraftClient/Inventory/ItemPalettes/ItemPalette1204.cs

Large diffs are not rendered by default.

60 changes: 59 additions & 1 deletion MinecraftClient/Inventory/ItemType.cs
Original file line number Diff line number Diff line change
Expand Up @@ -154,6 +154,7 @@ public enum ItemType
BrainCoralBlock,
BrainCoralFan,
Bread,
BreezeSpawnEgg,
BrewerPotterySherd,
BrewingStand,
Brick,
Expand Down Expand Up @@ -228,13 +229,16 @@ public enum ItemType
ChickenSpawnEgg,
ChippedAnvil,
ChiseledBookshelf,
ChiseledCopper,
ChiseledDeepslate,
ChiseledNetherBricks,
ChiseledPolishedBlackstone,
ChiseledQuartzBlock,
ChiseledRedSandstone,
ChiseledSandstone,
ChiseledStoneBricks,
ChiseledTuff,
ChiseledTuffBricks,
ChorusFlower,
ChorusFruit,
ChorusPlant,
Expand Down Expand Up @@ -274,15 +278,20 @@ public enum ItemType
CookedSalmon,
Cookie,
CopperBlock,
CopperBulb,
CopperDoor,
CopperGrate,
CopperIngot,
CopperOre,
CopperTrapdoor,
Cornflower,
CowSpawnEgg,
CrackedDeepslateBricks,
CrackedDeepslateTiles,
CrackedNetherBricks,
CrackedPolishedBlackstoneBricks,
CrackedStoneBricks,
Crafter,
CraftingTable,
CreeperBannerPattern,
CreeperHead,
Expand Down Expand Up @@ -444,7 +453,12 @@ public enum ItemType
EvokerSpawnEgg,
ExperienceBottle,
ExplorerPotterySherd,
ExposedChiseledCopper,
ExposedCopper,
ExposedCopperBulb,
ExposedCopperDoor,
ExposedCopperGrate,
ExposedCopperTrapdoor,
ExposedCutCopper,
ExposedCutCopperSlab,
ExposedCutCopperStairs,
Expand Down Expand Up @@ -511,7 +525,7 @@ public enum ItemType
GraniteSlab,
GraniteStairs,
GraniteWall,
Grass,
Grass, // 1.20.3+ renamed to ShortGrass
GrassBlock,
Gravel,
GrayBanner,
Expand Down Expand Up @@ -826,7 +840,12 @@ public enum ItemType
OrangeTulip,
OrangeWool,
OxeyeDaisy,
OxidizedChiseledCopper,
OxidizedCopper,
OxidizedCopperBulb,
OxidizedCopperDoor,
OxidizedCopperGrate,
OxidizedCopperTrapdoor,
OxidizedCutCopper,
OxidizedCutCopperSlab,
OxidizedCutCopperStairs,
Expand Down Expand Up @@ -895,6 +914,10 @@ public enum ItemType
PolishedGranite,
PolishedGraniteSlab,
PolishedGraniteStairs,
PolishedTuff,
PolishedTuffSlab,
PolishedTuffStairs,
PolishedTuffWall,
PoppedChorusFruit,
Poppy,
Porkchop,
Expand Down Expand Up @@ -1020,6 +1043,7 @@ public enum ItemType
SheepSpawnEgg,
ShelterPotterySherd,
Shield,
ShortGrass,
Shroomlight,
ShulkerBox,
ShulkerShell,
Expand Down Expand Up @@ -1156,6 +1180,8 @@ public enum ItemType
TotemOfUndying,
TraderLlamaSpawnEgg,
TrappedChest,
TrialKey,
TrialSpawner,
Trident,
TripwireHook,
TropicalFish,
Expand All @@ -1165,6 +1191,13 @@ public enum ItemType
TubeCoralBlock,
TubeCoralFan,
Tuff,
TuffBrickSlab,
TuffBrickStairs,
TuffBrickWall,
TuffBricks,
TuffSlab,
TuffStairs,
TuffWall,
TurtleEgg,
TurtleHelmet,
TurtleSpawnEgg,
Expand Down Expand Up @@ -1197,24 +1230,49 @@ public enum ItemType
WarpedTrapdoor,
WarpedWartBlock,
WaterBucket,
WaxedChiseledCopper,
WaxedCopperBlock,
WaxedCopperBulb,
WaxedCopperDoor,
WaxedCopperGrate,
WaxedCopperTrapdoor,
WaxedCutCopper,
WaxedCutCopperSlab,
WaxedCutCopperStairs,
WaxedExposedChiseledCopper,
WaxedExposedCopper,
WaxedExposedCopperBulb,
WaxedExposedCopperDoor,
WaxedExposedCopperGrate,
WaxedExposedCopperTrapdoor,
WaxedExposedCutCopper,
WaxedExposedCutCopperSlab,
WaxedExposedCutCopperStairs,
WaxedOxidizedChiseledCopper,
WaxedOxidizedCopper,
WaxedOxidizedCopperBulb,
WaxedOxidizedCopperDoor,
WaxedOxidizedCopperGrate,
WaxedOxidizedCopperTrapdoor,
WaxedOxidizedCutCopper,
WaxedOxidizedCutCopperSlab,
WaxedOxidizedCutCopperStairs,
WaxedWeatheredChiseledCopper,
WaxedWeatheredCopper,
WaxedWeatheredCopperBulb,
WaxedWeatheredCopperDoor,
WaxedWeatheredCopperGrate,
WaxedWeatheredCopperTrapdoor,
WaxedWeatheredCutCopper,
WaxedWeatheredCutCopperSlab,
WaxedWeatheredCutCopperStairs,
WayfinderArmorTrimSmithingTemplate,
WeatheredChiseledCopper,
WeatheredCopper,
WeatheredCopperBulb,
WeatheredCopperDoor,
WeatheredCopperGrate,
WeatheredCopperTrapdoor,
WeatheredCutCopper,
WeatheredCutCopperSlab,
WeatheredCutCopperStairs,
Expand Down

0 comments on commit 86fb4fe

Please sign in to comment.