feat: add palettes and version constants for MC 1.21.2 (protocol 768)
Add item, entity, block, and metadata palettes for Minecraft 1.21.2:
- ItemPalette1212: 1375 items (42 new: pale oak set, colored bundles,
creaking heart/spawn egg, banner patterns)
- EntityPalette1212: 150 entity types (boats split into per-wood-type
entries, generic boat/chest_boat removed; added creaking,
creaking_transient, pale oak boats)
- Palette1212 (blocks): 1084 block types with state IDs generated from
official 1.21.2 data reports (24 new pale oak blocks, creaking heart,
pale moss variants)
- EntityMetadataPalette: reuses 1206 (serializers unchanged in 1.21.2)
Updated version infrastructure:
- Protocol18.cs: MC_1_21_2_Version = 768, palette switch routing
- ProtocolHandler.cs: version mapping 1.21.2 <-> 768
- Program.cs: MCHighestVersion bumped to 1.21.2
- ItemType.cs, EntityType.cs, Material.cs: new enum entries
Note: packet palette, structured components, and protocol handler
changes for 1.21.2 are not yet implemented — this commit covers
palette/registry groundwork only.
Made-with: Cursor
2026-03-20 03:02:43 +08:00
namespace MinecraftClient.Mapping
2020-03-26 15:01:42 +08:00
{
2020-07-29 21:35:00 +02:00
/// <summary>
/// Represents Minecraft Entity Types
/// </summary>
/// <remarks>
2022-08-22 19:46:30 +02:00
/// Generated from registries.json using the --generator flag on the client
2020-07-29 21:35:00 +02:00
/// Typical steps to handle new entity IDs for newer Minecraft versions:
2022-08-22 19:46:30 +02:00
/// 1. Generate registries.json using data reporting on Vanilla Minecraft (https://wiki.vg/Data_Generators) or download it from: https://github.com/PixiGeko/Minecraft-generated-data
/// 2. Generate temporary EntityTypeXXX.cs and EntityPaletteXXX.cs using the --generator flag on the client
2020-07-29 21:35:00 +02:00
/// 3. Perform a diff with existing versions, add missing entries in EntityType.cs and EntityTypeExtensions.cs
/// 4. If existing entity IDs were not randomized by Mojang, simply add missing entries to the latest existing EntityPaletteXXX.cs
/// 5. If existing entity IDs were randomized, add a new palette as EntityPaletteXXX.cs into the codebase (worst case)
2020-07-27 12:51:48 +02:00
/// </remarks>
2020-03-26 15:01:42 +08:00
public enum EntityType
{
feat: add palettes and version constants for MC 1.21.2 (protocol 768)
Add item, entity, block, and metadata palettes for Minecraft 1.21.2:
- ItemPalette1212: 1375 items (42 new: pale oak set, colored bundles,
creaking heart/spawn egg, banner patterns)
- EntityPalette1212: 150 entity types (boats split into per-wood-type
entries, generic boat/chest_boat removed; added creaking,
creaking_transient, pale oak boats)
- Palette1212 (blocks): 1084 block types with state IDs generated from
official 1.21.2 data reports (24 new pale oak blocks, creaking heart,
pale moss variants)
- EntityMetadataPalette: reuses 1206 (serializers unchanged in 1.21.2)
Updated version infrastructure:
- Protocol18.cs: MC_1_21_2_Version = 768, palette switch routing
- ProtocolHandler.cs: version mapping 1.21.2 <-> 768
- Program.cs: MCHighestVersion bumped to 1.21.2
- ItemType.cs, EntityType.cs, Material.cs: new enum entries
Note: packet palette, structured components, and protocol handler
changes for 1.21.2 are not yet implemented — this commit covers
palette/registry groundwork only.
Made-with: Cursor
2026-03-20 03:02:43 +08:00
AcaciaBoat ,
AcaciaChestBoat ,
2022-08-22 19:46:30 +02:00
Allay ,
2020-05-24 18:21:22 +02:00
AreaEffectCloud ,
2024-07-02 11:08:46 +02:00
Armadillo ,
2020-05-24 18:21:22 +02:00
ArmorStand ,
Arrow ,
2022-02-13 01:10:10 +01:00
Axolotl ,
feat: add palettes and version constants for MC 1.21.2 (protocol 768)
Add item, entity, block, and metadata palettes for Minecraft 1.21.2:
- ItemPalette1212: 1375 items (42 new: pale oak set, colored bundles,
creaking heart/spawn egg, banner patterns)
- EntityPalette1212: 150 entity types (boats split into per-wood-type
entries, generic boat/chest_boat removed; added creaking,
creaking_transient, pale oak boats)
- Palette1212 (blocks): 1084 block types with state IDs generated from
official 1.21.2 data reports (24 new pale oak blocks, creaking heart,
pale moss variants)
- EntityMetadataPalette: reuses 1206 (serializers unchanged in 1.21.2)
Updated version infrastructure:
- Protocol18.cs: MC_1_21_2_Version = 768, palette switch routing
- ProtocolHandler.cs: version mapping 1.21.2 <-> 768
- Program.cs: MCHighestVersion bumped to 1.21.2
- ItemType.cs, EntityType.cs, Material.cs: new enum entries
Note: packet palette, structured components, and protocol handler
changes for 1.21.2 are not yet implemented — this commit covers
palette/registry groundwork only.
Made-with: Cursor
2026-03-20 03:02:43 +08:00
BambooChestRaft ,
BambooRaft ,
2020-05-24 18:21:22 +02:00
Bat ,
Bee ,
feat: add palettes and version constants for MC 1.21.2 (protocol 768)
Add item, entity, block, and metadata palettes for Minecraft 1.21.2:
- ItemPalette1212: 1375 items (42 new: pale oak set, colored bundles,
creaking heart/spawn egg, banner patterns)
- EntityPalette1212: 150 entity types (boats split into per-wood-type
entries, generic boat/chest_boat removed; added creaking,
creaking_transient, pale oak boats)
- Palette1212 (blocks): 1084 block types with state IDs generated from
official 1.21.2 data reports (24 new pale oak blocks, creaking heart,
pale moss variants)
- EntityMetadataPalette: reuses 1206 (serializers unchanged in 1.21.2)
Updated version infrastructure:
- Protocol18.cs: MC_1_21_2_Version = 768, palette switch routing
- ProtocolHandler.cs: version mapping 1.21.2 <-> 768
- Program.cs: MCHighestVersion bumped to 1.21.2
- ItemType.cs, EntityType.cs, Material.cs: new enum entries
Note: packet palette, structured components, and protocol handler
changes for 1.21.2 are not yet implemented — this commit covers
palette/registry groundwork only.
Made-with: Cursor
2026-03-20 03:02:43 +08:00
BirchBoat ,
BirchChestBoat ,
2020-05-24 18:21:22 +02:00
Blaze ,
2023-03-21 23:31:10 +01:00
BlockDisplay ,
2020-05-24 18:21:22 +02:00
Boat ,
2024-07-02 11:08:46 +02:00
Bogged ,
2024-02-11 18:13:48 +08:00
Breeze ,
2024-07-02 11:08:46 +02:00
BreezeWindCharge ,
2023-01-14 22:18:05 +08:00
Camel ,
2020-05-24 18:21:22 +02:00
Cat ,
CaveSpider ,
feat: add palettes and version constants for MC 1.21.2 (protocol 768)
Add item, entity, block, and metadata palettes for Minecraft 1.21.2:
- ItemPalette1212: 1375 items (42 new: pale oak set, colored bundles,
creaking heart/spawn egg, banner patterns)
- EntityPalette1212: 150 entity types (boats split into per-wood-type
entries, generic boat/chest_boat removed; added creaking,
creaking_transient, pale oak boats)
- Palette1212 (blocks): 1084 block types with state IDs generated from
official 1.21.2 data reports (24 new pale oak blocks, creaking heart,
pale moss variants)
- EntityMetadataPalette: reuses 1206 (serializers unchanged in 1.21.2)
Updated version infrastructure:
- Protocol18.cs: MC_1_21_2_Version = 768, palette switch routing
- ProtocolHandler.cs: version mapping 1.21.2 <-> 768
- Program.cs: MCHighestVersion bumped to 1.21.2
- ItemType.cs, EntityType.cs, Material.cs: new enum entries
Note: packet palette, structured components, and protocol handler
changes for 1.21.2 are not yet implemented — this commit covers
palette/registry groundwork only.
Made-with: Cursor
2026-03-20 03:02:43 +08:00
CherryBoat ,
CherryChestBoat ,
2022-08-22 19:46:30 +02:00
ChestBoat ,
2022-06-28 13:45:23 +02:00
ChestMinecart ,
2020-05-24 18:21:22 +02:00
Chicken ,
Cod ,
2022-06-28 13:45:23 +02:00
CommandBlockMinecart ,
2020-05-24 18:21:22 +02:00
Cow ,
feat: add palettes and version constants for MC 1.21.2 (protocol 768)
Add item, entity, block, and metadata palettes for Minecraft 1.21.2:
- ItemPalette1212: 1375 items (42 new: pale oak set, colored bundles,
creaking heart/spawn egg, banner patterns)
- EntityPalette1212: 150 entity types (boats split into per-wood-type
entries, generic boat/chest_boat removed; added creaking,
creaking_transient, pale oak boats)
- Palette1212 (blocks): 1084 block types with state IDs generated from
official 1.21.2 data reports (24 new pale oak blocks, creaking heart,
pale moss variants)
- EntityMetadataPalette: reuses 1206 (serializers unchanged in 1.21.2)
Updated version infrastructure:
- Protocol18.cs: MC_1_21_2_Version = 768, palette switch routing
- ProtocolHandler.cs: version mapping 1.21.2 <-> 768
- Program.cs: MCHighestVersion bumped to 1.21.2
- ItemType.cs, EntityType.cs, Material.cs: new enum entries
Note: packet palette, structured components, and protocol handler
changes for 1.21.2 are not yet implemented — this commit covers
palette/registry groundwork only.
Made-with: Cursor
2026-03-20 03:02:43 +08:00
Creaking ,
CreakingTransient ,
2020-05-24 18:21:22 +02:00
Creeper ,
feat: add palettes and version constants for MC 1.21.2 (protocol 768)
Add item, entity, block, and metadata palettes for Minecraft 1.21.2:
- ItemPalette1212: 1375 items (42 new: pale oak set, colored bundles,
creaking heart/spawn egg, banner patterns)
- EntityPalette1212: 150 entity types (boats split into per-wood-type
entries, generic boat/chest_boat removed; added creaking,
creaking_transient, pale oak boats)
- Palette1212 (blocks): 1084 block types with state IDs generated from
official 1.21.2 data reports (24 new pale oak blocks, creaking heart,
pale moss variants)
- EntityMetadataPalette: reuses 1206 (serializers unchanged in 1.21.2)
Updated version infrastructure:
- Protocol18.cs: MC_1_21_2_Version = 768, palette switch routing
- ProtocolHandler.cs: version mapping 1.21.2 <-> 768
- Program.cs: MCHighestVersion bumped to 1.21.2
- ItemType.cs, EntityType.cs, Material.cs: new enum entries
Note: packet palette, structured components, and protocol handler
changes for 1.21.2 are not yet implemented — this commit covers
palette/registry groundwork only.
Made-with: Cursor
2026-03-20 03:02:43 +08:00
DarkOakBoat ,
DarkOakChestBoat ,
2020-05-24 18:21:22 +02:00
Dolphin ,
2020-07-27 12:43:32 +02:00
Donkey ,
2020-05-24 18:21:22 +02:00
DragonFireball ,
Drowned ,
2022-06-28 13:45:23 +02:00
Egg ,
2020-05-24 18:21:22 +02:00
ElderGuardian ,
EndCrystal ,
EnderDragon ,
2022-08-22 19:46:30 +02:00
EnderPearl ,
2020-05-24 18:21:22 +02:00
Enderman ,
Endermite ,
Evoker ,
2020-07-27 12:43:32 +02:00
EvokerFangs ,
2022-06-28 13:45:23 +02:00
ExperienceBottle ,
2020-05-24 18:21:22 +02:00
ExperienceOrb ,
EyeOfEnder ,
FallingBlock ,
2022-06-28 13:45:23 +02:00
Fireball ,
2020-05-24 18:21:22 +02:00
FireworkRocket ,
2022-06-28 13:45:23 +02:00
FishingBobber ,
2020-05-24 18:21:22 +02:00
Fox ,
2022-08-22 19:46:30 +02:00
Frog ,
2022-06-28 13:45:23 +02:00
FurnaceMinecart ,
2020-05-24 18:21:22 +02:00
Ghast ,
Giant ,
2022-02-13 01:10:10 +01:00
GlowItemFrame ,
GlowSquid ,
Goat ,
2020-05-24 18:21:22 +02:00
Guardian ,
feat: add MC 1.21.6 (protocol 771) version constants and enum values
- Add protocol 771 constant MC_1_21_6_Version in Protocol18.cs
- Register 1.21.6 in ProtocolHandler (version map, supported list)
- Extend upper-bound checks from MC_1_21_5 to MC_1_21_6
- Add 19 new ItemType entries (16 colored Harnesses, DriedGhast,
HappyGhastSpawnEgg, MusicDiscTears)
- Add HappyGhast to EntityType enum
- Add DriedGhast to Material enum
- Add new packet types: Waypoint, ClearDialog, ShowDialog (clientbound),
ChangeGameMode, CustomClickAction (serverbound),
ClearDialog, ShowDialog (config clientbound),
CustomClickAction (config serverbound)
Made-with: Cursor
2026-03-21 11:34:20 +08:00
HappyGhast ,
2020-07-27 12:43:32 +02:00
Hoglin ,
2022-06-28 13:45:23 +02:00
HopperMinecart ,
2020-05-24 18:21:22 +02:00
Horse ,
Husk ,
Illusioner ,
2023-03-21 23:31:10 +01:00
Interaction ,
2020-07-27 12:43:32 +02:00
IronGolem ,
2020-05-24 18:21:22 +02:00
Item ,
2023-03-21 23:31:10 +01:00
ItemDisplay ,
2020-05-24 18:21:22 +02:00
ItemFrame ,
feat: add palettes and version constants for MC 1.21.2 (protocol 768)
Add item, entity, block, and metadata palettes for Minecraft 1.21.2:
- ItemPalette1212: 1375 items (42 new: pale oak set, colored bundles,
creaking heart/spawn egg, banner patterns)
- EntityPalette1212: 150 entity types (boats split into per-wood-type
entries, generic boat/chest_boat removed; added creaking,
creaking_transient, pale oak boats)
- Palette1212 (blocks): 1084 block types with state IDs generated from
official 1.21.2 data reports (24 new pale oak blocks, creaking heart,
pale moss variants)
- EntityMetadataPalette: reuses 1206 (serializers unchanged in 1.21.2)
Updated version infrastructure:
- Protocol18.cs: MC_1_21_2_Version = 768, palette switch routing
- ProtocolHandler.cs: version mapping 1.21.2 <-> 768
- Program.cs: MCHighestVersion bumped to 1.21.2
- ItemType.cs, EntityType.cs, Material.cs: new enum entries
Note: packet palette, structured components, and protocol handler
changes for 1.21.2 are not yet implemented — this commit covers
palette/registry groundwork only.
Made-with: Cursor
2026-03-20 03:02:43 +08:00
JungleBoat ,
JungleChestBoat ,
2020-05-24 18:21:22 +02:00
LeashKnot ,
2020-07-27 12:43:32 +02:00
LightningBolt ,
2020-05-24 18:21:22 +02:00
Llama ,
LlamaSpit ,
MagmaCube ,
feat: add palettes and version constants for MC 1.21.2 (protocol 768)
Add item, entity, block, and metadata palettes for Minecraft 1.21.2:
- ItemPalette1212: 1375 items (42 new: pale oak set, colored bundles,
creaking heart/spawn egg, banner patterns)
- EntityPalette1212: 150 entity types (boats split into per-wood-type
entries, generic boat/chest_boat removed; added creaking,
creaking_transient, pale oak boats)
- Palette1212 (blocks): 1084 block types with state IDs generated from
official 1.21.2 data reports (24 new pale oak blocks, creaking heart,
pale moss variants)
- EntityMetadataPalette: reuses 1206 (serializers unchanged in 1.21.2)
Updated version infrastructure:
- Protocol18.cs: MC_1_21_2_Version = 768, palette switch routing
- ProtocolHandler.cs: version mapping 1.21.2 <-> 768
- Program.cs: MCHighestVersion bumped to 1.21.2
- ItemType.cs, EntityType.cs, Material.cs: new enum entries
Note: packet palette, structured components, and protocol handler
changes for 1.21.2 are not yet implemented — this commit covers
palette/registry groundwork only.
Made-with: Cursor
2026-03-20 03:02:43 +08:00
MangroveBoat ,
MangroveChestBoat ,
2022-02-13 01:10:10 +01:00
Marker ,
2020-05-24 18:21:22 +02:00
Minecart ,
2022-02-13 01:10:10 +01:00
Mooshroom ,
2022-06-28 13:45:23 +02:00
Mule ,
feat: add palettes and version constants for MC 1.21.2 (protocol 768)
Add item, entity, block, and metadata palettes for Minecraft 1.21.2:
- ItemPalette1212: 1375 items (42 new: pale oak set, colored bundles,
creaking heart/spawn egg, banner patterns)
- EntityPalette1212: 150 entity types (boats split into per-wood-type
entries, generic boat/chest_boat removed; added creaking,
creaking_transient, pale oak boats)
- Palette1212 (blocks): 1084 block types with state IDs generated from
official 1.21.2 data reports (24 new pale oak blocks, creaking heart,
pale moss variants)
- EntityMetadataPalette: reuses 1206 (serializers unchanged in 1.21.2)
Updated version infrastructure:
- Protocol18.cs: MC_1_21_2_Version = 768, palette switch routing
- ProtocolHandler.cs: version mapping 1.21.2 <-> 768
- Program.cs: MCHighestVersion bumped to 1.21.2
- ItemType.cs, EntityType.cs, Material.cs: new enum entries
Note: packet palette, structured components, and protocol handler
changes for 1.21.2 are not yet implemented — this commit covers
palette/registry groundwork only.
Made-with: Cursor
2026-03-20 03:02:43 +08:00
OakBoat ,
OakChestBoat ,
2020-05-24 18:21:22 +02:00
Ocelot ,
2024-07-02 11:08:46 +02:00
OminousItemSpawner ,
2020-05-24 18:21:22 +02:00
Painting ,
feat: add palettes and version constants for MC 1.21.2 (protocol 768)
Add item, entity, block, and metadata palettes for Minecraft 1.21.2:
- ItemPalette1212: 1375 items (42 new: pale oak set, colored bundles,
creaking heart/spawn egg, banner patterns)
- EntityPalette1212: 150 entity types (boats split into per-wood-type
entries, generic boat/chest_boat removed; added creaking,
creaking_transient, pale oak boats)
- Palette1212 (blocks): 1084 block types with state IDs generated from
official 1.21.2 data reports (24 new pale oak blocks, creaking heart,
pale moss variants)
- EntityMetadataPalette: reuses 1206 (serializers unchanged in 1.21.2)
Updated version infrastructure:
- Protocol18.cs: MC_1_21_2_Version = 768, palette switch routing
- ProtocolHandler.cs: version mapping 1.21.2 <-> 768
- Program.cs: MCHighestVersion bumped to 1.21.2
- ItemType.cs, EntityType.cs, Material.cs: new enum entries
Note: packet palette, structured components, and protocol handler
changes for 1.21.2 are not yet implemented — this commit covers
palette/registry groundwork only.
Made-with: Cursor
2026-03-20 03:02:43 +08:00
PaleOakBoat ,
PaleOakChestBoat ,
2020-05-24 18:21:22 +02:00
Panda ,
Parrot ,
2020-07-27 12:43:32 +02:00
Phantom ,
2020-05-24 18:21:22 +02:00
Pig ,
2020-07-27 12:43:32 +02:00
Piglin ,
2020-08-17 23:08:50 +08:00
PiglinBrute ,
2020-07-27 12:43:32 +02:00
Pillager ,
2022-06-28 13:45:23 +02:00
Player ,
2020-05-24 18:21:22 +02:00
PolarBear ,
feat: add MC 1.21.5 (protocol 770) support
Full protocol adaptation for Minecraft 1.21.5:
- Protocol version mapping: 770 -> 1.21.5
- Packet palette: AddExperienceOrb removed (S2C), TestInstanceBlockStatus
added (S2C), SetTestBlock and TestInstanceBlockAction added (C2S)
- Entity metadata palette: 5 new serializer types (OptionalLivingEntityReference,
CowVariant, WolfSoundVariant, PigVariant, ChickenVariant), OPTIONAL_UUID
replaced by OPTIONAL_LIVING_ENTITY_REFERENCE
- Item palette: 11 new items (Bush, FireflyBush, DryShortGrass, DryTallGrass,
Wildflowers, LeafLitter, CactusFlower, TestBlock, TestInstanceBlock,
BlueEgg, BrownEgg)
- Entity palette: Potion split into SplashPotion and LingeringPotion
- Block palette: 9 new blocks (bush, cactus_flower, firefly_bush, leaf_litter,
short_dry_grass, tall_dry_grass, test_block, test_instance_block, wildflowers)
- Structured components: 31 new components including tooltip_display, weapon,
blocks_attacks, potion_duration_scale, provides_trim_material,
provides_banner_patterns, break_sound, and 25 entity variant components;
unbreakable changed from Bool to Unit; instrument changed to EitherHolder
Made-with: Cursor
2026-03-21 00:48:27 +08:00
SplashPotion ,
LingeringPotion ,
2022-06-28 13:45:23 +02:00
Potion ,
2020-07-27 12:43:32 +02:00
Pufferfish ,
2020-05-24 18:21:22 +02:00
Rabbit ,
2020-07-27 12:43:32 +02:00
Ravager ,
2020-05-24 18:21:22 +02:00
Salmon ,
Sheep ,
Shulker ,
ShulkerBullet ,
Silverfish ,
Skeleton ,
SkeletonHorse ,
Slime ,
SmallFireball ,
2023-03-21 23:31:10 +01:00
Sniffer ,
2022-06-28 13:45:23 +02:00
SnowGolem ,
2022-08-22 19:46:30 +02:00
Snowball ,
2022-06-28 13:45:23 +02:00
SpawnerMinecart ,
2020-05-24 18:21:22 +02:00
SpectralArrow ,
Spider ,
feat: add palettes and version constants for MC 1.21.2 (protocol 768)
Add item, entity, block, and metadata palettes for Minecraft 1.21.2:
- ItemPalette1212: 1375 items (42 new: pale oak set, colored bundles,
creaking heart/spawn egg, banner patterns)
- EntityPalette1212: 150 entity types (boats split into per-wood-type
entries, generic boat/chest_boat removed; added creaking,
creaking_transient, pale oak boats)
- Palette1212 (blocks): 1084 block types with state IDs generated from
official 1.21.2 data reports (24 new pale oak blocks, creaking heart,
pale moss variants)
- EntityMetadataPalette: reuses 1206 (serializers unchanged in 1.21.2)
Updated version infrastructure:
- Protocol18.cs: MC_1_21_2_Version = 768, palette switch routing
- ProtocolHandler.cs: version mapping 1.21.2 <-> 768
- Program.cs: MCHighestVersion bumped to 1.21.2
- ItemType.cs, EntityType.cs, Material.cs: new enum entries
Note: packet palette, structured components, and protocol handler
changes for 1.21.2 are not yet implemented — this commit covers
palette/registry groundwork only.
Made-with: Cursor
2026-03-20 03:02:43 +08:00
SpruceBoat ,
SpruceChestBoat ,
2020-05-24 18:21:22 +02:00
Squid ,
Stray ,
2020-07-27 12:43:32 +02:00
Strider ,
2022-08-22 19:46:30 +02:00
Tadpole ,
2023-03-21 23:31:10 +01:00
TextDisplay ,
2022-06-28 13:45:23 +02:00
Tnt ,
TntMinecart ,
2022-02-13 01:10:10 +01:00
TraderLlama ,
2022-06-28 13:45:23 +02:00
Trident ,
2020-07-27 12:43:32 +02:00
TropicalFish ,
Turtle ,
2020-05-24 18:21:22 +02:00
Vex ,
Villager ,
Vindicator ,
WanderingTrader ,
2022-08-22 19:46:30 +02:00
Warden ,
2024-02-11 18:13:48 +08:00
WindCharge ,
2020-05-24 18:21:22 +02:00
Witch ,
Wither ,
WitherSkeleton ,
WitherSkull ,
Wolf ,
2020-07-27 12:43:32 +02:00
Zoglin ,
2020-05-24 18:21:22 +02:00
Zombie ,
ZombieHorse ,
2020-08-17 23:08:50 +08:00
ZombieVillager ,
ZombifiedPiglin ,
2020-03-26 15:01:42 +08:00
}
}