update data package for 1.17

This commit is contained in:
Tnze
2021-06-19 15:03:08 +08:00
parent 5ae560c995
commit 5eef908ca5
9 changed files with 23688 additions and 19966 deletions

File diff suppressed because it is too large Load Diff

View File

@ -18,7 +18,7 @@ import (
) )
const ( const (
infoURL = "https://raw.githubusercontent.com/PrismarineJS/minecraft-data/master/data/pc/1.16.2/blocks.json" infoURL = "https://raw.githubusercontent.com/PrismarineJS/minecraft-data/master/data/pc/1.17/blocks.json"
) )
type Block struct { type Block struct {

View File

@ -33,226 +33,237 @@ type Entity struct {
Category Category Category Category
} }
//goland:noinspection ALL
var ( var (
AreaEffectCloud = Entity{ID: 0, InternalID: 0, DisplayName: "Area Effect Cloud", Name: "area_effect_cloud", Width: 6, Height: 0.5, Type: "mob", Category: Immobile} AreaEffectCloud = Entity{ID: 0, InternalID: 0, DisplayName: "Area Effect Cloud", Name: "area_effect_cloud", Width: 6, Height: 0.5, Type: "other", Category: }
ArmorStand = Entity{ID: 1, InternalID: 1, DisplayName: "Armor Stand", Name: "armor_stand", Width: 0.5, Height: 1.975, Type: "mob", Category: Immobile} ArmorStand = Entity{ID: 1, InternalID: 1, DisplayName: "Armor Stand", Name: "armor_stand", Width: 0.5, Height: 1.975, Type: "living", Category: }
Arrow = Entity{ID: 2, InternalID: 2, DisplayName: "Arrow", Name: "arrow", Width: 0.5, Height: 0.5, Type: "mob", Category: Projectiles} Arrow = Entity{ID: 2, InternalID: 2, DisplayName: "Arrow", Name: "arrow", Width: 0.5, Height: 0.5, Type: "projectile", Category: }
Bat = Entity{ID: 3, InternalID: 3, DisplayName: "Bat", Name: "bat", Width: 0.5, Height: 0.9, Type: "mob", Category: PassiveMob} Axolotl = Entity{ID: 3, InternalID: 3, DisplayName: "Axolotl", Name: "axolotl", Width: 0.75, Height: 0.42, Type: "animal", Category: }
Bee = Entity{ID: 4, InternalID: 4, DisplayName: "Bee", Name: "bee", Width: 0.7, Height: 0.6, Type: "UNKNOWN", Category: Unknown} Bat = Entity{ID: 4, InternalID: 4, DisplayName: "Bat", Name: "bat", Width: 0.5, Height: 0.9, Type: "ambient", Category: }
Blaze = Entity{ID: 5, InternalID: 5, DisplayName: "Blaze", Name: "blaze", Width: 0.6, Height: 1.8, Type: "mob", Category: HostileMob} Bee = Entity{ID: 5, InternalID: 5, DisplayName: "Bee", Name: "bee", Width: 0.7, Height: 0.6, Type: "animal", Category: }
Boat = Entity{ID: 6, InternalID: 6, DisplayName: "Boat", Name: "boat", Width: 1.375, Height: 0.5625, Type: "mob", Category: Vehicles} Blaze = Entity{ID: 6, InternalID: 6, DisplayName: "Blaze", Name: "blaze", Width: 0.6, Height: 1.8, Type: "hostile", Category: }
Cat = Entity{ID: 7, InternalID: 7, DisplayName: "Cat", Name: "cat", Width: 0.6, Height: 0.7, Type: "mob", Category: PassiveMob} Boat = Entity{ID: 7, InternalID: 7, DisplayName: "Boat", Name: "boat", Width: 1.375, Height: 0.5625, Type: "other", Category: }
CaveSpider = Entity{ID: 8, InternalID: 8, DisplayName: "Cave Spider", Name: "cave_spider", Width: 0.7, Height: 0.5, Type: "mob", Category: HostileMob} Cat = Entity{ID: 8, InternalID: 8, DisplayName: "Cat", Name: "cat", Width: 0.6, Height: 0.7, Type: "animal", Category: }
Chicken = Entity{ID: 9, InternalID: 9, DisplayName: "Chicken", Name: "chicken", Width: 0.4, Height: 0.7, Type: "mob", Category: PassiveMob} CaveSpider = Entity{ID: 9, InternalID: 9, DisplayName: "Cave Spider", Name: "cave_spider", Width: 0.7, Height: 0.5, Type: "hostile", Category: }
Cod = Entity{ID: 10, InternalID: 10, DisplayName: "Cod", Name: "cod", Width: 0.5, Height: 0.3, Type: "mob", Category: PassiveMob} Chicken = Entity{ID: 10, InternalID: 10, DisplayName: "Chicken", Name: "chicken", Width: 0.4, Height: 0.7, Type: "animal", Category: }
Cow = Entity{ID: 11, InternalID: 11, DisplayName: "Cow", Name: "cow", Width: 0.9, Height: 1.4, Type: "mob", Category: PassiveMob} Cod = Entity{ID: 11, InternalID: 11, DisplayName: "Cod", Name: "cod", Width: 0.5, Height: 0.3, Type: "water_creature", Category: }
Creeper = Entity{ID: 12, InternalID: 12, DisplayName: "Creeper", Name: "creeper", Width: 0.6, Height: 1.7, Type: "mob", Category: HostileMob} Cow = Entity{ID: 12, InternalID: 12, DisplayName: "Cow", Name: "cow", Width: 0.9, Height: 1.4, Type: "animal", Category: }
Dolphin = Entity{ID: 13, InternalID: 13, DisplayName: "Dolphin", Name: "dolphin", Width: 0.9, Height: 0.6, Type: "mob", Category: PassiveMob} Creeper = Entity{ID: 13, InternalID: 13, DisplayName: "Creeper", Name: "creeper", Width: 0.6, Height: 1.7, Type: "hostile", Category: }
Donkey = Entity{ID: 14, InternalID: 14, DisplayName: "Donkey", Name: "donkey", Width: 1.39648, Height: 1.5, Type: "mob", Category: PassiveMob} Dolphin = Entity{ID: 14, InternalID: 14, DisplayName: "Dolphin", Name: "dolphin", Width: 0.9, Height: 0.6, Type: "water_creature", Category: }
DragonFireball = Entity{ID: 15, InternalID: 15, DisplayName: "Dragon Fireball", Name: "dragon_fireball", Width: 1, Height: 1, Type: "mob", Category: Projectiles} Donkey = Entity{ID: 15, InternalID: 15, DisplayName: "Donkey", Name: "donkey", Width: 1.3964844, Height: 1.5, Type: "animal", Category: }
Drowned = Entity{ID: 16, InternalID: 16, DisplayName: "Drowned", Name: "drowned", Width: 0.6, Height: 1.95, Type: "mob", Category: HostileMob} DragonFireball = Entity{ID: 16, InternalID: 16, DisplayName: "Dragon Fireball", Name: "dragon_fireball", Width: 1, Height: 1, Type: "projectile", Category: }
ElderGuardian = Entity{ID: 17, InternalID: 17, DisplayName: "Elder Guardian", Name: "elder_guardian", Width: 1.9975, Height: 1.9975, Type: "mob", Category: HostileMob} Drowned = Entity{ID: 17, InternalID: 17, DisplayName: "Drowned", Name: "drowned", Width: 0.6, Height: 1.95, Type: "hostile", Category: }
EndCrystal = Entity{ID: 18, InternalID: 18, DisplayName: "End Crystal", Name: "end_crystal", Width: 2, Height: 2, Type: "mob", Category: Unknown} ElderGuardian = Entity{ID: 18, InternalID: 18, DisplayName: "Elder Guardian", Name: "elder_guardian", Width: 1.9975, Height: 1.9975, Type: "hostile", Category: }
EnderDragon = Entity{ID: 19, InternalID: 19, DisplayName: "Ender Dragon", Name: "ender_dragon", Width: 16, Height: 8, Type: "mob", Category: HostileMob} EndCrystal = Entity{ID: 19, InternalID: 19, DisplayName: "End Crystal", Name: "end_crystal", Width: 2, Height: 2, Type: "other", Category: }
Enderman = Entity{ID: 20, InternalID: 20, DisplayName: "Enderman", Name: "enderman", Width: 0.6, Height: 2.9, Type: "mob", Category: HostileMob} EnderDragon = Entity{ID: 20, InternalID: 20, DisplayName: "Ender Dragon", Name: "ender_dragon", Width: 16, Height: 8, Type: "mob", Category: }
Endermite = Entity{ID: 21, InternalID: 21, DisplayName: "Endermite", Name: "endermite", Width: 0.4, Height: 0.3, Type: "mob", Category: HostileMob} Enderman = Entity{ID: 21, InternalID: 21, DisplayName: "Enderman", Name: "enderman", Width: 0.6, Height: 2.9, Type: "hostile", Category: }
Evoker = Entity{ID: 22, InternalID: 22, DisplayName: "Evoker", Name: "evoker", Width: 0.6, Height: 1.95, Type: "mob", Category: HostileMob} Endermite = Entity{ID: 22, InternalID: 22, DisplayName: "Endermite", Name: "endermite", Width: 0.4, Height: 0.3, Type: "hostile", Category: }
EvokerFangs = Entity{ID: 23, InternalID: 23, DisplayName: "Evoker Fangs", Name: "evoker_fangs", Width: 0.5, Height: 0.8, Type: "mob", Category: HostileMob} Evoker = Entity{ID: 23, InternalID: 23, DisplayName: "Evoker", Name: "evoker", Width: 0.6, Height: 1.95, Type: "hostile", Category: }
ExperienceOrb = Entity{ID: 24, InternalID: 24, DisplayName: "Experience Orb", Name: "experience_orb", Width: 0.5, Height: 0.5, Type: "mob", Category: Unknown} EvokerFangs = Entity{ID: 24, InternalID: 24, DisplayName: "Evoker Fangs", Name: "evoker_fangs", Width: 0.5, Height: 0.8, Type: "other", Category: }
EyeOfEnder = Entity{ID: 25, InternalID: 25, DisplayName: "Eye of Ender", Name: "eye_of_ender", Width: 0.25, Height: 0.25, Type: "mob", Category: Unknown} ExperienceOrb = Entity{ID: 25, InternalID: 25, DisplayName: "Experience Orb", Name: "experience_orb", Width: 0.5, Height: 0.5, Type: "other", Category: }
FallingBlock = Entity{ID: 26, InternalID: 26, DisplayName: "Falling Block", Name: "falling_block", Width: 0.98, Height: 0.98, Type: "mob", Category: Blocks} EyeOfEnder = Entity{ID: 26, InternalID: 26, DisplayName: "Eye of Ender", Name: "eye_of_ender", Width: 0.25, Height: 0.25, Type: "other", Category: }
FireworkRocket = Entity{ID: 27, InternalID: 27, DisplayName: "Firework Rocket", Name: "firework_rocket", Width: 0.25, Height: 0.25, Type: "mob", Category: Unknown} FallingBlock = Entity{ID: 27, InternalID: 27, DisplayName: "Falling Block", Name: "falling_block", Width: 0.98, Height: 0.98, Type: "other", Category: }
Fox = Entity{ID: 28, InternalID: 28, DisplayName: "Fox", Name: "fox", Width: 0.6, Height: 0.7, Type: "mob", Category: Unknown} FireworkRocket = Entity{ID: 28, InternalID: 28, DisplayName: "Firework Rocket", Name: "firework_rocket", Width: 0.25, Height: 0.25, Type: "projectile", Category: }
Ghast = Entity{ID: 29, InternalID: 29, DisplayName: "Ghast", Name: "ghast", Width: 4, Height: 4, Type: "mob", Category: HostileMob} Fox = Entity{ID: 29, InternalID: 29, DisplayName: "Fox", Name: "fox", Width: 0.6, Height: 0.7, Type: "animal", Category: }
Giant = Entity{ID: 30, InternalID: 30, DisplayName: "Giant", Name: "giant", Width: 3.6, Height: 12, Type: "mob", Category: HostileMob} Ghast = Entity{ID: 30, InternalID: 30, DisplayName: "Ghast", Name: "ghast", Width: 4, Height: 4, Type: "mob", Category: }
Guardian = Entity{ID: 31, InternalID: 31, DisplayName: "Guardian", Name: "guardian", Width: 0.85, Height: 0.85, Type: "mob", Category: HostileMob} Giant = Entity{ID: 31, InternalID: 31, DisplayName: "Giant", Name: "giant", Width: 3.6, Height: 12, Type: "hostile", Category: }
Hoglin = Entity{ID: 32, InternalID: 32, DisplayName: "Hoglin", Name: "hoglin", Width: 1.39648, Height: 1.4, Type: "UNKNOWN", Category: Unknown} GlowItemFrame = Entity{ID: 32, InternalID: 32, DisplayName: "Glow Item Frame", Name: "glow_item_frame", Width: 0.5, Height: 0.5, Type: "other", Category: }
Horse = Entity{ID: 33, InternalID: 33, DisplayName: "Horse", Name: "horse", Width: 1.39648, Height: 1.6, Type: "mob", Category: PassiveMob} GlowSquid = Entity{ID: 33, InternalID: 33, DisplayName: "Glow Squid", Name: "glow_squid", Width: 0.8, Height: 0.8, Type: "water_creature", Category: }
Husk = Entity{ID: 34, InternalID: 34, DisplayName: "Husk", Name: "husk", Width: 0.6, Height: 1.95, Type: "mob", Category: HostileMob} Goat = Entity{ID: 34, InternalID: 34, DisplayName: "Goat", Name: "goat", Width: 0.9, Height: 1.3, Type: "animal", Category: }
Illusioner = Entity{ID: 35, InternalID: 35, DisplayName: "Illusioner", Name: "illusioner", Width: 0.6, Height: 1.95, Type: "mob", Category: HostileMob} Guardian = Entity{ID: 35, InternalID: 35, DisplayName: "Guardian", Name: "guardian", Width: 0.85, Height: 0.85, Type: "hostile", Category: }
IronGolem = Entity{ID: 36, InternalID: 36, DisplayName: "Iron Golem", Name: "iron_golem", Width: 1.4, Height: 2.7, Type: "mob", Category: PassiveMob} Hoglin = Entity{ID: 36, InternalID: 36, DisplayName: "Hoglin", Name: "hoglin", Width: 1.3964844, Height: 1.4, Type: "animal", Category: }
Item = Entity{ID: 37, InternalID: 37, DisplayName: "Item", Name: "item", Width: 0.25, Height: 0.25, Type: "mob", Category: Drops} Horse = Entity{ID: 37, InternalID: 37, DisplayName: "Horse", Name: "horse", Width: 1.3964844, Height: 1.6, Type: "animal", Category: }
ItemFrame = Entity{ID: 38, InternalID: 38, DisplayName: "Item Frame", Name: "item_frame", Width: 0.5, Height: 0.5, Type: "mob", Category: Immobile} Husk = Entity{ID: 38, InternalID: 38, DisplayName: "Husk", Name: "husk", Width: 0.6, Height: 1.95, Type: "hostile", Category: }
Fireball = Entity{ID: 39, InternalID: 39, DisplayName: "Fireball", Name: "fireball", Width: 1, Height: 1, Type: "mob", Category: Projectiles} Illusioner = Entity{ID: 39, InternalID: 39, DisplayName: "Illusioner", Name: "illusioner", Width: 0.6, Height: 1.95, Type: "hostile", Category: }
LeashKnot = Entity{ID: 40, InternalID: 40, DisplayName: "Leash Knot", Name: "leash_knot", Width: 0.5, Height: 0.5, Type: "mob", Category: Immobile} IronGolem = Entity{ID: 40, InternalID: 40, DisplayName: "Iron Golem", Name: "iron_golem", Width: 1.4, Height: 2.7, Type: "mob", Category: }
LightningBolt = Entity{ID: 41, InternalID: 41, DisplayName: "Lightning Bolt", Name: "lightning_bolt", Width: 0, Height: 0, Type: "mob", Category: Unknown} Item = Entity{ID: 41, InternalID: 41, DisplayName: "Item", Name: "item", Width: 0.25, Height: 0.25, Type: "other", Category: }
Llama = Entity{ID: 42, InternalID: 42, DisplayName: "Llama", Name: "llama", Width: 0.9, Height: 1.87, Type: "mob", Category: PassiveMob} ItemFrame = Entity{ID: 42, InternalID: 42, DisplayName: "Item Frame", Name: "item_frame", Width: 0.5, Height: 0.5, Type: "other", Category: }
LlamaSpit = Entity{ID: 43, InternalID: 43, DisplayName: "Llama Spit", Name: "llama_spit", Width: 0.25, Height: 0.25, Type: "mob", Category: Projectiles} Fireball = Entity{ID: 43, InternalID: 43, DisplayName: "Fireball", Name: "fireball", Width: 1, Height: 1, Type: "projectile", Category: }
MagmaCube = Entity{ID: 44, InternalID: 44, DisplayName: "Magma Cube", Name: "magma_cube", Width: 2.04, Height: 2.04, Type: "mob", Category: HostileMob} LeashKnot = Entity{ID: 44, InternalID: 44, DisplayName: "Leash Knot", Name: "leash_knot", Width: 0.375, Height: 0.5, Type: "other", Category: }
Minecart = Entity{ID: 45, InternalID: 45, DisplayName: "Minecart", Name: "minecart", Width: 0.98, Height: 0.7, Type: "mob", Category: Vehicles} LightningBolt = Entity{ID: 45, InternalID: 45, DisplayName: "Lightning Bolt", Name: "lightning_bolt", Width: 0, Height: 0, Type: "other", Category: }
ChestMinecart = Entity{ID: 46, InternalID: 46, DisplayName: "Minecart with Chest", Name: "chest_minecart", Width: 0.98, Height: 0.7, Type: "mob", Category: Vehicles} Llama = Entity{ID: 46, InternalID: 46, DisplayName: "Llama", Name: "llama", Width: 0.9, Height: 1.87, Type: "animal", Category: }
CommandBlockMinecart = Entity{ID: 47, InternalID: 47, DisplayName: "Minecart with Command Block", Name: "command_block_minecart", Width: 0.98, Height: 0.7, Type: "mob", Category: Vehicles} LlamaSpit = Entity{ID: 47, InternalID: 47, DisplayName: "Llama Spit", Name: "llama_spit", Width: 0.25, Height: 0.25, Type: "projectile", Category: }
FurnaceMinecart = Entity{ID: 48, InternalID: 48, DisplayName: "Minecart with Furnace", Name: "furnace_minecart", Width: 0.98, Height: 0.7, Type: "mob", Category: Vehicles} MagmaCube = Entity{ID: 48, InternalID: 48, DisplayName: "Magma Cube", Name: "magma_cube", Width: 2.04, Height: 2.04, Type: "mob", Category: }
HopperMinecart = Entity{ID: 49, InternalID: 49, DisplayName: "Minecart with Hopper", Name: "hopper_minecart", Width: 0.98, Height: 0.7, Type: "mob", Category: Vehicles} Marker = Entity{ID: 49, InternalID: 49, DisplayName: "Marker", Name: "marker", Width: 0, Height: 0, Type: "other", Category: }
SpawnerMinecart = Entity{ID: 50, InternalID: 50, DisplayName: "Minecart with Spawner", Name: "spawner_minecart", Width: 0.98, Height: 0.7, Type: "mob", Category: Vehicles} Minecart = Entity{ID: 50, InternalID: 50, DisplayName: "Minecart", Name: "minecart", Width: 0.98, Height: 0.7, Type: "other", Category: }
TntMinecart = Entity{ID: 51, InternalID: 51, DisplayName: "Minecart with TNT", Name: "tnt_minecart", Width: 0.98, Height: 0.7, Type: "mob", Category: Vehicles} ChestMinecart = Entity{ID: 51, InternalID: 51, DisplayName: "Minecart with Chest", Name: "chest_minecart", Width: 0.98, Height: 0.7, Type: "other", Category: }
Mule = Entity{ID: 52, InternalID: 52, DisplayName: "Mule", Name: "mule", Width: 1.39648, Height: 1.6, Type: "mob", Category: PassiveMob} CommandBlockMinecart = Entity{ID: 52, InternalID: 52, DisplayName: "Minecart with Command Block", Name: "command_block_minecart", Width: 0.98, Height: 0.7, Type: "other", Category: }
Mooshroom = Entity{ID: 53, InternalID: 53, DisplayName: "Mooshroom", Name: "mooshroom", Width: 0.9, Height: 1.4, Type: "mob", Category: PassiveMob} FurnaceMinecart = Entity{ID: 53, InternalID: 53, DisplayName: "Minecart with Furnace", Name: "furnace_minecart", Width: 0.98, Height: 0.7, Type: "other", Category: }
Ocelot = Entity{ID: 54, InternalID: 54, DisplayName: "Ocelot", Name: "ocelot", Width: 0.6, Height: 0.7, Type: "mob", Category: PassiveMob} HopperMinecart = Entity{ID: 54, InternalID: 54, DisplayName: "Minecart with Hopper", Name: "hopper_minecart", Width: 0.98, Height: 0.7, Type: "other", Category: }
Painting = Entity{ID: 55, InternalID: 55, DisplayName: "Painting", Name: "painting", Width: 0.5, Height: 0.5, Type: "mob", Category: Immobile} SpawnerMinecart = Entity{ID: 55, InternalID: 55, DisplayName: "Minecart with Spawner", Name: "spawner_minecart", Width: 0.98, Height: 0.7, Type: "other", Category: }
Panda = Entity{ID: 56, InternalID: 56, DisplayName: "Panda", Name: "panda", Width: 1.3, Height: 1.25, Type: "mob", Category: PassiveMob} TntMinecart = Entity{ID: 56, InternalID: 56, DisplayName: "Minecart with TNT", Name: "tnt_minecart", Width: 0.98, Height: 0.7, Type: "other", Category: }
Parrot = Entity{ID: 57, InternalID: 57, DisplayName: "Parrot", Name: "parrot", Width: 0.5, Height: 0.9, Type: "mob", Category: PassiveMob} Mule = Entity{ID: 57, InternalID: 57, DisplayName: "Mule", Name: "mule", Width: 1.3964844, Height: 1.6, Type: "animal", Category: }
Phantom = Entity{ID: 58, InternalID: 58, DisplayName: "Phantom", Name: "phantom", Width: 0.9, Height: 0.5, Type: "mob", Category: HostileMob} Mooshroom = Entity{ID: 58, InternalID: 58, DisplayName: "Mooshroom", Name: "mooshroom", Width: 0.9, Height: 1.4, Type: "animal", Category: }
Pig = Entity{ID: 59, InternalID: 59, DisplayName: "Pig", Name: "pig", Width: 0.9, Height: 0.9, Type: "mob", Category: PassiveMob} Ocelot = Entity{ID: 59, InternalID: 59, DisplayName: "Ocelot", Name: "ocelot", Width: 0.6, Height: 0.7, Type: "animal", Category: }
Piglin = Entity{ID: 60, InternalID: 60, DisplayName: "Piglin", Name: "piglin", Width: 0.6, Height: 1.95, Type: "UNKNOWN", Category: Unknown} Painting = Entity{ID: 60, InternalID: 60, DisplayName: "Painting", Name: "painting", Width: 0.5, Height: 0.5, Type: "other", Category: }
PiglinBrute = Entity{ID: 61, InternalID: 61, DisplayName: "Piglin Brute", Name: "piglin_brute", Width: 0.6, Height: 1.95, Type: "UNKNOWN", Category: Unknown} Panda = Entity{ID: 61, InternalID: 61, DisplayName: "Panda", Name: "panda", Width: 1.3, Height: 1.25, Type: "animal", Category: }
Pillager = Entity{ID: 62, InternalID: 62, DisplayName: "Pillager", Name: "pillager", Width: 0.6, Height: 1.95, Type: "mob", Category: HostileMob} Parrot = Entity{ID: 62, InternalID: 62, DisplayName: "Parrot", Name: "parrot", Width: 0.5, Height: 0.9, Type: "animal", Category: }
PolarBear = Entity{ID: 63, InternalID: 63, DisplayName: "Polar Bear", Name: "polar_bear", Width: 1.4, Height: 1.4, Type: "mob", Category: PassiveMob} Phantom = Entity{ID: 63, InternalID: 63, DisplayName: "Phantom", Name: "phantom", Width: 0.9, Height: 0.5, Type: "mob", Category: }
Tnt = Entity{ID: 64, InternalID: 64, DisplayName: "Primed TNT", Name: "tnt", Width: 0.98, Height: 0.98, Type: "mob", Category: Blocks} Pig = Entity{ID: 64, InternalID: 64, DisplayName: "Pig", Name: "pig", Width: 0.9, Height: 0.9, Type: "animal", Category: }
Pufferfish = Entity{ID: 65, InternalID: 65, DisplayName: "Pufferfish", Name: "pufferfish", Width: 0.7, Height: 0.7, Type: "mob", Category: PassiveMob} Piglin = Entity{ID: 65, InternalID: 65, DisplayName: "Piglin", Name: "piglin", Width: 0.6, Height: 1.95, Type: "hostile", Category: }
Rabbit = Entity{ID: 66, InternalID: 66, DisplayName: "Rabbit", Name: "rabbit", Width: 0.4, Height: 0.5, Type: "mob", Category: PassiveMob} PiglinBrute = Entity{ID: 66, InternalID: 66, DisplayName: "Piglin Brute", Name: "piglin_brute", Width: 0.6, Height: 1.95, Type: "hostile", Category: }
Ravager = Entity{ID: 67, InternalID: 67, DisplayName: "Ravager", Name: "ravager", Width: 1.95, Height: 2.2, Type: "mob", Category: HostileMob} Pillager = Entity{ID: 67, InternalID: 67, DisplayName: "Pillager", Name: "pillager", Width: 0.6, Height: 1.95, Type: "hostile", Category: }
Salmon = Entity{ID: 68, InternalID: 68, DisplayName: "Salmon", Name: "salmon", Width: 0.7, Height: 0.4, Type: "mob", Category: PassiveMob} PolarBear = Entity{ID: 68, InternalID: 68, DisplayName: "Polar Bear", Name: "polar_bear", Width: 1.4, Height: 1.4, Type: "animal", Category: }
Sheep = Entity{ID: 69, InternalID: 69, DisplayName: "Sheep", Name: "sheep", Width: 0.9, Height: 1.3, Type: "mob", Category: PassiveMob} Tnt = Entity{ID: 69, InternalID: 69, DisplayName: "Primed TNT", Name: "tnt", Width: 0.98, Height: 0.98, Type: "other", Category: }
Shulker = Entity{ID: 70, InternalID: 70, DisplayName: "Shulker", Name: "shulker", Width: 1, Height: 1, Type: "mob", Category: HostileMob} Pufferfish = Entity{ID: 70, InternalID: 70, DisplayName: "Pufferfish", Name: "pufferfish", Width: 0.7, Height: 0.7, Type: "water_creature", Category: }
ShulkerBullet = Entity{ID: 71, InternalID: 71, DisplayName: "Shulker Bullet", Name: "shulker_bullet", Width: 0.3125, Height: 0.3125, Type: "mob", Category: Projectiles} Rabbit = Entity{ID: 71, InternalID: 71, DisplayName: "Rabbit", Name: "rabbit", Width: 0.4, Height: 0.5, Type: "animal", Category: }
Silverfish = Entity{ID: 72, InternalID: 72, DisplayName: "Silverfish", Name: "silverfish", Width: 0.4, Height: 0.3, Type: "mob", Category: HostileMob} Ravager = Entity{ID: 72, InternalID: 72, DisplayName: "Ravager", Name: "ravager", Width: 1.95, Height: 2.2, Type: "hostile", Category: }
Skeleton = Entity{ID: 73, InternalID: 73, DisplayName: "Skeleton", Name: "skeleton", Width: 0.6, Height: 1.99, Type: "mob", Category: HostileMob} Salmon = Entity{ID: 73, InternalID: 73, DisplayName: "Salmon", Name: "salmon", Width: 0.7, Height: 0.4, Type: "water_creature", Category: }
SkeletonHorse = Entity{ID: 74, InternalID: 74, DisplayName: "Skeleton Horse", Name: "skeleton_horse", Width: 1.39648, Height: 1.6, Type: "mob", Category: PassiveMob} Sheep = Entity{ID: 74, InternalID: 74, DisplayName: "Sheep", Name: "sheep", Width: 0.9, Height: 1.3, Type: "animal", Category: }
Slime = Entity{ID: 75, InternalID: 75, DisplayName: "Slime", Name: "slime", Width: 2.04, Height: 2.04, Type: "mob", Category: HostileMob} Shulker = Entity{ID: 75, InternalID: 75, DisplayName: "Shulker", Name: "shulker", Width: 1, Height: 1, Type: "mob", Category: }
SmallFireball = Entity{ID: 76, InternalID: 76, DisplayName: "Small Fireball", Name: "small_fireball", Width: 0.3125, Height: 0.3125, Type: "mob", Category: Projectiles} ShulkerBullet = Entity{ID: 76, InternalID: 76, DisplayName: "Shulker Bullet", Name: "shulker_bullet", Width: 0.3125, Height: 0.3125, Type: "projectile", Category: }
SnowGolem = Entity{ID: 77, InternalID: 77, DisplayName: "Snow Golem", Name: "snow_golem", Width: 0.7, Height: 1.9, Type: "mob", Category: PassiveMob} Silverfish = Entity{ID: 77, InternalID: 77, DisplayName: "Silverfish", Name: "silverfish", Width: 0.4, Height: 0.3, Type: "hostile", Category: }
Snowball = Entity{ID: 78, InternalID: 78, DisplayName: "Snowball", Name: "snowball", Width: 0.25, Height: 0.25, Type: "mob", Category: Projectiles} Skeleton = Entity{ID: 78, InternalID: 78, DisplayName: "Skeleton", Name: "skeleton", Width: 0.6, Height: 1.99, Type: "hostile", Category: }
SpectralArrow = Entity{ID: 79, InternalID: 79, DisplayName: "Spectral Arrow", Name: "spectral_arrow", Width: 0.5, Height: 0.5, Type: "mob", Category: Projectiles} SkeletonHorse = Entity{ID: 79, InternalID: 79, DisplayName: "Skeleton Horse", Name: "skeleton_horse", Width: 1.3964844, Height: 1.6, Type: "animal", Category: }
Spider = Entity{ID: 80, InternalID: 80, DisplayName: "Spider", Name: "spider", Width: 1.4, Height: 0.9, Type: "mob", Category: HostileMob} Slime = Entity{ID: 80, InternalID: 80, DisplayName: "Slime", Name: "slime", Width: 2.04, Height: 2.04, Type: "mob", Category: }
Squid = Entity{ID: 81, InternalID: 81, DisplayName: "Squid", Name: "squid", Width: 0.8, Height: 0.8, Type: "mob", Category: PassiveMob} SmallFireball = Entity{ID: 81, InternalID: 81, DisplayName: "Small Fireball", Name: "small_fireball", Width: 0.3125, Height: 0.3125, Type: "projectile", Category: }
Stray = Entity{ID: 82, InternalID: 82, DisplayName: "Stray", Name: "stray", Width: 0.6, Height: 1.99, Type: "mob", Category: HostileMob} SnowGolem = Entity{ID: 82, InternalID: 82, DisplayName: "Snow Golem", Name: "snow_golem", Width: 0.7, Height: 1.9, Type: "mob", Category: }
Strider = Entity{ID: 83, InternalID: 83, DisplayName: "Strider", Name: "strider", Width: 0.9, Height: 1.7, Type: "UNKNOWN", Category: Unknown} Snowball = Entity{ID: 83, InternalID: 83, DisplayName: "Snowball", Name: "snowball", Width: 0.25, Height: 0.25, Type: "projectile", Category: }
Egg = Entity{ID: 84, InternalID: 84, DisplayName: "Thrown Egg", Name: "egg", Width: 0.25, Height: 0.25, Type: "mob", Category: Projectiles} SpectralArrow = Entity{ID: 84, InternalID: 84, DisplayName: "Spectral Arrow", Name: "spectral_arrow", Width: 0.5, Height: 0.5, Type: "projectile", Category: }
EnderPearl = Entity{ID: 85, InternalID: 85, DisplayName: "Thrown Ender Pearl", Name: "ender_pearl", Width: 0.25, Height: 0.25, Type: "mob", Category: Projectiles} Spider = Entity{ID: 85, InternalID: 85, DisplayName: "Spider", Name: "spider", Width: 1.4, Height: 0.9, Type: "hostile", Category: }
ExperienceBottle = Entity{ID: 86, InternalID: 86, DisplayName: "Thrown Bottle o' Enchanting", Name: "experience_bottle", Width: 0.25, Height: 0.25, Type: "mob", Category: Unknown} Squid = Entity{ID: 86, InternalID: 86, DisplayName: "Squid", Name: "squid", Width: 0.8, Height: 0.8, Type: "water_creature", Category: }
Potion = Entity{ID: 87, InternalID: 87, DisplayName: "Potion", Name: "potion", Width: 0.25, Height: 0.25, Type: "mob", Category: Projectiles} Stray = Entity{ID: 87, InternalID: 87, DisplayName: "Stray", Name: "stray", Width: 0.6, Height: 1.99, Type: "hostile", Category: }
Trident = Entity{ID: 88, InternalID: 88, DisplayName: "Trident", Name: "trident", Width: 0.5, Height: 0.5, Type: "mob", Category: Unknown} Strider = Entity{ID: 88, InternalID: 88, DisplayName: "Strider", Name: "strider", Width: 0.9, Height: 1.7, Type: "animal", Category: }
TraderLlama = Entity{ID: 89, InternalID: 89, DisplayName: "Trader Llama", Name: "trader_llama", Width: 0.9, Height: 1.87, Type: "mob", Category: PassiveMob} Egg = Entity{ID: 89, InternalID: 89, DisplayName: "Thrown Egg", Name: "egg", Width: 0.25, Height: 0.25, Type: "projectile", Category: }
TropicalFish = Entity{ID: 90, InternalID: 90, DisplayName: "Tropical Fish", Name: "tropical_fish", Width: 0.5, Height: 0.4, Type: "mob", Category: PassiveMob} EnderPearl = Entity{ID: 90, InternalID: 90, DisplayName: "Thrown Ender Pearl", Name: "ender_pearl", Width: 0.25, Height: 0.25, Type: "projectile", Category: }
Turtle = Entity{ID: 91, InternalID: 91, DisplayName: "Turtle", Name: "turtle", Width: 1.2, Height: 0.4, Type: "mob", Category: PassiveMob} ExperienceBottle = Entity{ID: 91, InternalID: 91, DisplayName: "Thrown Bottle o' Enchanting", Name: "experience_bottle", Width: 0.25, Height: 0.25, Type: "projectile", Category: }
Vex = Entity{ID: 92, InternalID: 92, DisplayName: "Vex", Name: "vex", Width: 0.4, Height: 0.8, Type: "mob", Category: HostileMob} Potion = Entity{ID: 92, InternalID: 92, DisplayName: "Potion", Name: "potion", Width: 0.25, Height: 0.25, Type: "projectile", Category: }
Villager = Entity{ID: 93, InternalID: 93, DisplayName: "Villager", Name: "villager", Width: 0.6, Height: 1.95, Type: "mob", Category: PassiveMob} Trident = Entity{ID: 93, InternalID: 93, DisplayName: "Trident", Name: "trident", Width: 0.5, Height: 0.5, Type: "projectile", Category: }
Vindicator = Entity{ID: 94, InternalID: 94, DisplayName: "Vindicator", Name: "vindicator", Width: 0.6, Height: 1.95, Type: "mob", Category: HostileMob} TraderLlama = Entity{ID: 94, InternalID: 94, DisplayName: "Trader Llama", Name: "trader_llama", Width: 0.9, Height: 1.87, Type: "animal", Category: }
WanderingTrader = Entity{ID: 95, InternalID: 95, DisplayName: "Wandering Trader", Name: "wandering_trader", Width: 0.6, Height: 1.95, Type: "mob", Category: PassiveMob} TropicalFish = Entity{ID: 95, InternalID: 95, DisplayName: "Tropical Fish", Name: "tropical_fish", Width: 0.5, Height: 0.4, Type: "water_creature", Category: }
Witch = Entity{ID: 96, InternalID: 96, DisplayName: "Witch", Name: "witch", Width: 0.6, Height: 1.95, Type: "mob", Category: HostileMob} Turtle = Entity{ID: 96, InternalID: 96, DisplayName: "Turtle", Name: "turtle", Width: 1.2, Height: 0.4, Type: "animal", Category: }
Wither = Entity{ID: 97, InternalID: 97, DisplayName: "Wither", Name: "wither", Width: 0.9, Height: 3.5, Type: "mob", Category: HostileMob} Vex = Entity{ID: 97, InternalID: 97, DisplayName: "Vex", Name: "vex", Width: 0.4, Height: 0.8, Type: "hostile", Category: }
WitherSkeleton = Entity{ID: 98, InternalID: 98, DisplayName: "Wither Skeleton", Name: "wither_skeleton", Width: 0.7, Height: 2.4, Type: "mob", Category: HostileMob} Villager = Entity{ID: 98, InternalID: 98, DisplayName: "Villager", Name: "villager", Width: 0.6, Height: 1.95, Type: "passive", Category: }
WitherSkull = Entity{ID: 99, InternalID: 99, DisplayName: "Wither Skull", Name: "wither_skull", Width: 0.3125, Height: 0.3125, Type: "mob", Category: Projectiles} Vindicator = Entity{ID: 99, InternalID: 99, DisplayName: "Vindicator", Name: "vindicator", Width: 0.6, Height: 1.95, Type: "hostile", Category: }
Wolf = Entity{ID: 100, InternalID: 100, DisplayName: "Wolf", Name: "wolf", Width: 0.6, Height: 0.85, Type: "mob", Category: PassiveMob} WanderingTrader = Entity{ID: 100, InternalID: 100, DisplayName: "Wandering Trader", Name: "wandering_trader", Width: 0.6, Height: 1.95, Type: "passive", Category: }
Zoglin = Entity{ID: 101, InternalID: 101, DisplayName: "Zoglin", Name: "zoglin", Width: 1.39648, Height: 1.4, Type: "UNKNOWN", Category: Unknown} Witch = Entity{ID: 101, InternalID: 101, DisplayName: "Witch", Name: "witch", Width: 0.6, Height: 1.95, Type: "hostile", Category: }
Zombie = Entity{ID: 102, InternalID: 102, DisplayName: "Zombie", Name: "zombie", Width: 0.6, Height: 1.95, Type: "mob", Category: HostileMob} Wither = Entity{ID: 102, InternalID: 102, DisplayName: "Wither", Name: "wither", Width: 0.9, Height: 3.5, Type: "hostile", Category: }
ZombieHorse = Entity{ID: 103, InternalID: 103, DisplayName: "Zombie Horse", Name: "zombie_horse", Width: 1.39648, Height: 1.6, Type: "mob", Category: PassiveMob} WitherSkeleton = Entity{ID: 103, InternalID: 103, DisplayName: "Wither Skeleton", Name: "wither_skeleton", Width: 0.7, Height: 2.4, Type: "hostile", Category: }
ZombieVillager = Entity{ID: 104, InternalID: 104, DisplayName: "Zombie Villager", Name: "zombie_villager", Width: 0.6, Height: 1.95, Type: "mob", Category: HostileMob} WitherSkull = Entity{ID: 104, InternalID: 104, DisplayName: "Wither Skull", Name: "wither_skull", Width: 0.3125, Height: 0.3125, Type: "projectile", Category: }
ZombifiedPiglin = Entity{ID: 105, InternalID: 105, DisplayName: "Zombified Piglin", Name: "zombified_piglin", Width: 0.6, Height: 1.95, Type: "UNKNOWN", Category: Unknown} Wolf = Entity{ID: 105, InternalID: 105, DisplayName: "Wolf", Name: "wolf", Width: 0.6, Height: 0.85, Type: "animal", Category: }
Player = Entity{ID: 106, InternalID: 106, DisplayName: "Player", Name: "player", Width: 0.6, Height: 1.8, Type: "mob", Category: Unknown} Zoglin = Entity{ID: 106, InternalID: 106, DisplayName: "Zoglin", Name: "zoglin", Width: 1.3964844, Height: 1.4, Type: "hostile", Category: }
FishingBobber = Entity{ID: 107, InternalID: 107, DisplayName: "Fishing Bobber", Name: "fishing_bobber", Width: 0.25, Height: 0.25, Type: "mob", Category: Unknown} Zombie = Entity{ID: 107, InternalID: 107, DisplayName: "Zombie", Name: "zombie", Width: 0.6, Height: 1.95, Type: "hostile", Category: }
ZombieHorse = Entity{ID: 108, InternalID: 108, DisplayName: "Zombie Horse", Name: "zombie_horse", Width: 1.3964844, Height: 1.6, Type: "animal", Category: }
ZombieVillager = Entity{ID: 109, InternalID: 109, DisplayName: "Zombie Villager", Name: "zombie_villager", Width: 0.6, Height: 1.95, Type: "hostile", Category: }
ZombifiedPiglin = Entity{ID: 110, InternalID: 110, DisplayName: "Zombified Piglin", Name: "zombified_piglin", Width: 0.6, Height: 1.95, Type: "hostile", Category: }
Player = Entity{ID: 111, InternalID: 111, DisplayName: "Player", Name: "player", Width: 0.6, Height: 1.8, Type: "player", Category: }
FishingBobber = Entity{ID: 112, InternalID: 112, DisplayName: "Fishing Bobber", Name: "fishing_bobber", Width: 0.25, Height: 0.25, Type: "projectile", Category: }
) )
// ByID is an index of minecraft entities by their ID. // ByID is an index of minecraft entities by their ID.
var ByID = map[ID]*Entity{ var ByID = map[ID]*Entity{
0: &AreaEffectCloud, 0: &AreaEffectCloud,
1: &ArmorStand, 1: &ArmorStand,
2: &Arrow, 2: &Arrow,
3: &Bat, 3: &Axolotl,
4: &Bee, 4: &Bat,
5: &Blaze, 5: &Bee,
6: &Boat, 6: &Blaze,
7: &Cat, 7: &Boat,
8: &CaveSpider, 8: &Cat,
9: &Chicken, 9: &CaveSpider,
10: &Cod, 10: &Chicken,
11: &Cow, 11: &Cod,
12: &Creeper, 12: &Cow,
13: &Dolphin, 13: &Creeper,
14: &Donkey, 14: &Dolphin,
15: &DragonFireball, 15: &Donkey,
16: &Drowned, 16: &DragonFireball,
17: &ElderGuardian, 17: &Drowned,
18: &EndCrystal, 18: &ElderGuardian,
19: &EnderDragon, 19: &EndCrystal,
20: &Enderman, 20: &EnderDragon,
21: &Endermite, 21: &Enderman,
22: &Evoker, 22: &Endermite,
23: &EvokerFangs, 23: &Evoker,
24: &ExperienceOrb, 24: &EvokerFangs,
25: &EyeOfEnder, 25: &ExperienceOrb,
26: &FallingBlock, 26: &EyeOfEnder,
27: &FireworkRocket, 27: &FallingBlock,
28: &Fox, 28: &FireworkRocket,
29: &Ghast, 29: &Fox,
30: &Giant, 30: &Ghast,
31: &Guardian, 31: &Giant,
32: &Hoglin, 32: &GlowItemFrame,
33: &Horse, 33: &GlowSquid,
34: &Husk, 34: &Goat,
35: &Illusioner, 35: &Guardian,
36: &IronGolem, 36: &Hoglin,
37: &Item, 37: &Horse,
38: &ItemFrame, 38: &Husk,
39: &Fireball, 39: &Illusioner,
40: &LeashKnot, 40: &IronGolem,
41: &LightningBolt, 41: &Item,
42: &Llama, 42: &ItemFrame,
43: &LlamaSpit, 43: &Fireball,
44: &MagmaCube, 44: &LeashKnot,
45: &Minecart, 45: &LightningBolt,
46: &ChestMinecart, 46: &Llama,
47: &CommandBlockMinecart, 47: &LlamaSpit,
48: &FurnaceMinecart, 48: &MagmaCube,
49: &HopperMinecart, 49: &Marker,
50: &SpawnerMinecart, 50: &Minecart,
51: &TntMinecart, 51: &ChestMinecart,
52: &Mule, 52: &CommandBlockMinecart,
53: &Mooshroom, 53: &FurnaceMinecart,
54: &Ocelot, 54: &HopperMinecart,
55: &Painting, 55: &SpawnerMinecart,
56: &Panda, 56: &TntMinecart,
57: &Parrot, 57: &Mule,
58: &Phantom, 58: &Mooshroom,
59: &Pig, 59: &Ocelot,
60: &Piglin, 60: &Painting,
61: &PiglinBrute, 61: &Panda,
62: &Pillager, 62: &Parrot,
63: &PolarBear, 63: &Phantom,
64: &Tnt, 64: &Pig,
65: &Pufferfish, 65: &Piglin,
66: &Rabbit, 66: &PiglinBrute,
67: &Ravager, 67: &Pillager,
68: &Salmon, 68: &PolarBear,
69: &Sheep, 69: &Tnt,
70: &Shulker, 70: &Pufferfish,
71: &ShulkerBullet, 71: &Rabbit,
72: &Silverfish, 72: &Ravager,
73: &Skeleton, 73: &Salmon,
74: &SkeletonHorse, 74: &Sheep,
75: &Slime, 75: &Shulker,
76: &SmallFireball, 76: &ShulkerBullet,
77: &SnowGolem, 77: &Silverfish,
78: &Snowball, 78: &Skeleton,
79: &SpectralArrow, 79: &SkeletonHorse,
80: &Spider, 80: &Slime,
81: &Squid, 81: &SmallFireball,
82: &Stray, 82: &SnowGolem,
83: &Strider, 83: &Snowball,
84: &Egg, 84: &SpectralArrow,
85: &EnderPearl, 85: &Spider,
86: &ExperienceBottle, 86: &Squid,
87: &Potion, 87: &Stray,
88: &Trident, 88: &Strider,
89: &TraderLlama, 89: &Egg,
90: &TropicalFish, 90: &EnderPearl,
91: &Turtle, 91: &ExperienceBottle,
92: &Vex, 92: &Potion,
93: &Villager, 93: &Trident,
94: &Vindicator, 94: &TraderLlama,
95: &WanderingTrader, 95: &TropicalFish,
96: &Witch, 96: &Turtle,
97: &Wither, 97: &Vex,
98: &WitherSkeleton, 98: &Villager,
99: &WitherSkull, 99: &Vindicator,
100: &Wolf, 100: &WanderingTrader,
101: &Zoglin, 101: &Witch,
102: &Zombie, 102: &Wither,
103: &ZombieHorse, 103: &WitherSkeleton,
104: &ZombieVillager, 104: &WitherSkull,
105: &ZombifiedPiglin, 105: &Wolf,
106: &Player, 106: &Zoglin,
107: &FishingBobber, 107: &Zombie,
108: &ZombieHorse,
109: &ZombieVillager,
110: &ZombifiedPiglin,
111: &Player,
112: &FishingBobber,
} }

View File

@ -19,7 +19,7 @@ import (
) )
const ( const (
infoURL = "https://raw.githubusercontent.com/PrismarineJS/minecraft-data/master/data/pc/1.16.2/entities.json" infoURL = "https://raw.githubusercontent.com/PrismarineJS/minecraft-data/master/data/pc/1.17/entities.json"
) )
type Entity struct { type Entity struct {

View File

@ -19,7 +19,7 @@ import (
) )
const ( const (
infoURL = "https://raw.githubusercontent.com/PrismarineJS/minecraft-data/master/data/pc/1.16.2/items.json" infoURL = "https://raw.githubusercontent.com/PrismarineJS/minecraft-data/master/data/pc/1.17/items.json"
) )
type Item struct { type Item struct {

View File

@ -13,7 +13,7 @@ import (
) )
const ( const (
protocolURL = "https://raw.githubusercontent.com/PrismarineJS/minecraft-data/master/data/pc/1.16.2/protocol.json" protocolURL = "https://raw.githubusercontent.com/PrismarineJS/minecraft-data/master/data/pc/1.17/protocol.json"
packetidTmpl = `// This file is automatically generated by gen_packetIDs.go. DO NOT EDIT. packetidTmpl = `// This file is automatically generated by gen_packetIDs.go. DO NOT EDIT.
package packetid package packetid

View File

@ -36,93 +36,104 @@ const (
SpawnEntityLiving = 0x2 SpawnEntityLiving = 0x2
SpawnEntityPainting = 0x3 SpawnEntityPainting = 0x3
NamedEntitySpawn = 0x4 NamedEntitySpawn = 0x4
Animation = 0x5 SculkVibrationSignal = 0x5
Statistics = 0x6 Animation = 0x6
AcknowledgePlayerDigging = 0x7 Statistics = 0x7
BlockBreakAnimation = 0x8 AcknowledgePlayerDigging = 0x8
TileEntityData = 0x9 BlockBreakAnimation = 0x9
BlockAction = 0xa TileEntityData = 0xa
BlockChange = 0xb BlockAction = 0xb
BossBar = 0xc BlockChange = 0xc
Difficulty = 0xd BossBar = 0xd
ChatClientbound = 0xe Difficulty = 0xe
TabCompleteClientbound = 0xf ChatClientbound = 0xf
DeclareCommands = 0x10 ClearTitles = 0x10
TransactionClientbound = 0x11 TabCompleteClientbound = 0x11
CloseWindowClientbound = 0x12 DeclareCommands = 0x12
WindowItems = 0x13 CloseWindowClientbound = 0x13
CraftProgressBar = 0x14 WindowItems = 0x14
SetSlot = 0x15 CraftProgressBar = 0x15
SetCooldown = 0x16 SetSlot = 0x16
CustomPayloadClientbound = 0x17 SetCooldown = 0x17
NamedSoundEffect = 0x18 CustomPayloadClientbound = 0x18
KickDisconnect = 0x19 NamedSoundEffect = 0x19
EntityStatus = 0x1a KickDisconnect = 0x1a
Explosion = 0x1b EntityStatus = 0x1b
UnloadChunk = 0x1c Explosion = 0x1c
GameStateChange = 0x1d UnloadChunk = 0x1d
OpenHorseWindow = 0x1e GameStateChange = 0x1e
KeepAliveClientbound = 0x1f OpenHorseWindow = 0x1f
MapChunk = 0x20 InitializeWorldBorder = 0x20
WorldEvent = 0x21 KeepAliveClientbound = 0x21
WorldParticles = 0x22 MapChunk = 0x22
UpdateLight = 0x23 WorldEvent = 0x23
Login = 0x24 WorldParticles = 0x24
Map = 0x25 UpdateLight = 0x25
TradeList = 0x26 Login = 0x26
RelEntityMove = 0x27 Map = 0x27
EntityMoveLook = 0x28 TradeList = 0x28
EntityLook = 0x29 RelEntityMove = 0x29
Entity = 0x2a EntityMoveLook = 0x2a
VehicleMoveClientbound = 0x2b EntityLook = 0x2b
OpenBook = 0x2c VehicleMoveClientbound = 0x2c
OpenWindow = 0x2d OpenBook = 0x2d
OpenSignEntity = 0x2e OpenWindow = 0x2e
CraftRecipeResponse = 0x2f OpenSignEntity = 0x2f
AbilitiesClientbound = 0x30 Ping = 0x30
CombatEvent = 0x31 CraftRecipeResponse = 0x31
PlayerInfo = 0x32 AbilitiesClientbound = 0x32
FacePlayer = 0x33 EndCombatEvent = 0x33
PositionClientbound = 0x34 EnterCombatEvent = 0x34
UnlockRecipes = 0x35 DeathCombatEvent = 0x35
EntityDestroy = 0x36 PlayerInfo = 0x36
RemoveEntityEffect = 0x37 FacePlayer = 0x37
ResourcePackSend = 0x38 PositionClientbound = 0x38
Respawn = 0x39 UnlockRecipes = 0x39
EntityHeadRotation = 0x3a DestroyEntity = 0x3a
MultiBlockChange = 0x3b RemoveEntityEffect = 0x3b
SelectAdvancementTab = 0x3c ResourcePackSend = 0x3c
WorldBorder = 0x3d Respawn = 0x3d
Camera = 0x3e EntityHeadRotation = 0x3e
HeldItemSlotClientbound = 0x3f MultiBlockChange = 0x3f
UpdateViewPosition = 0x40 SelectAdvancementTab = 0x40
UpdateViewDistance = 0x41 ActionBar = 0x41
SpawnPosition = 0x42 WorldBorderCenter = 0x42
ScoreboardDisplayObjective = 0x43 WorldBorderLerpSize = 0x43
EntityMetadata = 0x44 WorldBorderSize = 0x44
AttachEntity = 0x45 WorldBorderWarningDelay = 0x45
EntityVelocity = 0x46 WorldBorderWarningReach = 0x46
EntityEquipment = 0x47 Camera = 0x47
Experience = 0x48 HeldItemSlotClientbound = 0x48
UpdateHealth = 0x49 UpdateViewPosition = 0x49
ScoreboardObjective = 0x4a UpdateViewDistance = 0x4a
SetPassengers = 0x4b SpawnPosition = 0x4b
Teams = 0x4c ScoreboardDisplayObjective = 0x4c
ScoreboardScore = 0x4d EntityMetadata = 0x4d
UpdateTime = 0x4e AttachEntity = 0x4e
Title = 0x4f EntityVelocity = 0x4f
EntitySoundEffect = 0x50 EntityEquipment = 0x50
SoundEffect = 0x51 Experience = 0x51
StopSound = 0x52 UpdateHealth = 0x52
PlayerlistHeader = 0x53 ScoreboardObjective = 0x53
NbtQueryResponse = 0x54 SetPassengers = 0x54
Collect = 0x55 Teams = 0x55
EntityTeleport = 0x56 ScoreboardScore = 0x56
Advancements = 0x57 SetTitleSubtitle = 0x57
EntityUpdateAttributes = 0x58 UpdateTime = 0x58
EntityEffect = 0x59 SetTitleText = 0x59
DeclareRecipes = 0x5a SetTitleTime = 0x5a
Tags = 0x5b EntitySoundEffect = 0x5b
SoundEffect = 0x5c
StopSound = 0x5d
PlayerlistHeader = 0x5e
NbtQueryResponse = 0x5f
Collect = 0x60
EntityTeleport = 0x61
Advancements = 0x62
EntityUpdateAttributes = 0x63
EntityEffect = 0x64
DeclareRecipes = 0x65
Tags = 0x66
// Serverbound // Serverbound
TeleportConfirm = 0x0 TeleportConfirm = 0x0
@ -132,29 +143,29 @@ const (
ClientCommand = 0x4 ClientCommand = 0x4
Settings = 0x5 Settings = 0x5
TabCompleteServerbound = 0x6 TabCompleteServerbound = 0x6
TransactionServerbound = 0x7 EnchantItem = 0x7
EnchantItem = 0x8 WindowClick = 0x8
WindowClick = 0x9 CloseWindowServerbound = 0x9
CloseWindowServerbound = 0xa CustomPayloadServerbound = 0xa
CustomPayloadServerbound = 0xb EditBook = 0xb
EditBook = 0xc QueryEntityNbt = 0xc
QueryEntityNbt = 0xd UseEntity = 0xd
UseEntity = 0xe GenerateStructure = 0xe
GenerateStructure = 0xf KeepAliveServerbound = 0xf
KeepAliveServerbound = 0x10 LockDifficulty = 0x10
LockDifficulty = 0x11 PositionServerbound = 0x11
PositionServerbound = 0x12 PositionLook = 0x12
PositionLook = 0x13 Look = 0x13
Look = 0x14 Flying = 0x14
Flying = 0x15 VehicleMoveServerbound = 0x15
VehicleMoveServerbound = 0x16 SteerBoat = 0x16
SteerBoat = 0x17 PickItem = 0x17
PickItem = 0x18 CraftRecipeRequest = 0x18
CraftRecipeRequest = 0x19 AbilitiesServerbound = 0x19
AbilitiesServerbound = 0x1a BlockDig = 0x1a
BlockDig = 0x1b EntityAction = 0x1b
EntityAction = 0x1c SteerVehicle = 0x1c
SteerVehicle = 0x1d Pong = 0x1d
DisplayedRecipe = 0x1e DisplayedRecipe = 0x1e
RecipeBook = 0x1f RecipeBook = 0x1f
NameItem = 0x20 NameItem = 0x20

View File

@ -12,7 +12,7 @@ import (
) )
const ( const (
protocolURL = "https://pokechu22.github.io/Burger/1.16.5.json" protocolURL = "https://pokechu22.github.io/Burger/1.17.json"
) )
type sound struct { type sound struct {

File diff suppressed because it is too large Load Diff