Entity format

Entities are stored in the entities folder of respective dimension folders. It is stored like regional Minecraft Anvil files, which are named in the form r.x.z.mca.
== Folder Structure ==
*(world save directory)
**entities
***r.x.z.mca
**DIM-1
***entities
****r.x.z.mca
**DIM1
***entities
****r.x.z.mca
== NBT Structure ==
Every entity is an unnamed contained in the Entities list of a chunk file. The sole exception is the Player entity, stored in level.dat, or in <player>.dat files on servers.
* The root tag.
** : Version of the chunk data.
** : Position of this chunk.
*** : X coordinate.
*** : Z coordinate.
** : All the entities. Each TAG_Compound in this list defines an entity in this chunk.
*** : An entity. See #Entity Format below.
== Entity Format ==
All entities are with the following structure:
* Entity data
=== Mobs ===
Mob Entities 	Mob Entities
Entity ID 	Name
allay 	Allay
axolotl 	Axolotl
bat 	Bat
bee 	Bee
blaze 	Blaze
cat 	Cat
cave_spider 	Cave Spider
chicken 	Chicken
cod 	Cod
cow 	Cow
creeper 	Creeper
dolphin 	Dolphin
donkey 	Donkey
drowned 	Drowned
elder_guardian 	Elder Guardian
ender_dragon 	Ender Dragon
enderman 	Enderman
endermite 	Endermite
evoker 	Evoker
fox 	Fox
frog 	Frog
ghast 	Ghast
giant 	Giant
glow_squid 	Glow Squid
goat 	Goat
guardian 	Guardian
hoglin 	Hoglin
horse 	Horse
husk 	Husk
illusioner 	Illusioner
iron_golem 	Iron Golem
llama 	Llama
magma_cube 	Magma Cube
mooshroom 	Mooshroom
mule 	Mule
ocelot 	Ocelot
panda 	Panda
parrot 	Parrot
phantom 	Phantom
pig 	Pig
piglin 	Piglin
piglin_brute 	Piglin Brute
pillager 	Pillager
polar_bear 	Polar Bear
pufferfish 	Pufferfish
rabbit 	Rabbit
ravager 	Ravager
salmon 	Salmon
sheep 	Sheep
shulker 	Shulker
silverfish 	Silverfish
skeleton 	Skeleton
skeleton_horse 	Skeleton Horse
slime 	Slime
snow_golem 	Snow Golem
spider 	Spider
strider 	Strider
squid 	Squid
stray 	Stray
tadpole 	Tadpole
trader_llama 	Trader Llama
tropical_fish 	Tropical Fish
turtle 	Turtle
vex 	Vex
villager 	Villager
villager_v2 	Villager
vindicator 	Vindicator
wandering_trader 	Wandering Trader
warden 	Warden
witch 	Witch
wither 	Wither
wither_skeleton 	Wither Skeleton
wolf 	Wolf
zoglin 	Zoglin
zombie 	Zombie
zombie_horse 	Zombie Horse
zombie_villager 	Zombie Villager
zombie_villager_v2	Zombie Villager
zombified_piglin 	Zombified Piglin
Mobs are a subclass of Entity with additional tags to store their health, attacking/damaged state, potion effects, and more depending on the mob. Players are a subclass of Mob.
=== Projectiles ===
Projectile Entities	Projectile Entities
Entity ID 	Name
arrow 	Arrow
dragon_fireball 	Ender Dragon Fireball
egg 	Egg
ender_pearl 	Ender Pearl
experience_bottle 	Bottle o' Enchanting
fireball 	Fireball
firework_rocket 	Firework Rocket
llama_spit 	Llama spit
potion 	Splash Potion
small_fireball 	Small Fireball
shulker_bullet 	Shulker Bullet
snowball 	Snowball
spectral_arrow 	Spectral Arrow
trident 	Trident
wither_skull 	Wither Skull
Projectiles are a subclass of Entity.
=== Items and XP Orbs ===
Item Entities 	Item Entities
Entity ID 	Name
experience_orb	Experience Orb
item 	Item
Items and XPOrbs are a subclass of Entity.
=== Vehicles ===
Vehicle Entities 	Vehicle Entities
Entity ID 	Name
boat 	Boat
chest_boat 	Boat with Chest
minecart 	Minecart
chest_minecart 	Minecart with Chest
command_block_minecart	Minecart with Command Block
furnace_minecart 	Minecart with Furnace
hopper_minecart 	Minecart with Hopper
spawner_minecart 	Minecart with Spawner
tnt_minecart 	Minecart with TNT
Vehicles are subclasses of Entity.
=== Dynamic tiles ===
Dynamic Block Entities	Dynamic Block Entities
Entity ID 	Name
falling_block 	Dynamic Tile
tnt 	TNT
Dynamic tiles are a subclass of Entity and are used to simulate realistically moving blocks.
=== Other ===
Other Entities 	Other Entities
Entity ID 	Name
area_effect_cloud	Area Effect Cloud
armor_stand 	Armor Stand
end_crystal 	End Crystal
evoker_fangs 	Evoker Fangs
eye_of_ender 	Eye of Ender
fishing_bobber 	Fishing Bobber
item_frame 	Item Frame
leash_knot 	Lead Knot
lightning_bolt 	Lightning Bolt
marker 	Marker
painting 	Painting
Other entity types that are a subclass of Entity but do not fit into any of the above categories.
== History ==
Category:Development
de:Objektdaten
ja:エンティティフォーマット
pt:Formato de entidade
zh:实体格式