array {entityID} Returns an associative array containing all the data of the given entity that are too specific to have its own function. ----

{| width="80%" cellspacing="1" cellpadding="1" border="1" class="wikitable"
|-
! scope="col" width="10%" | Entity type
! scope="col" width="70%" | Data
|-
| AREA_EFFECT_CLOUD
|
* %KEY_AREAEFFECTCLOUD_COLOR%: The color array of the particle, if applicable (eg. SPELL_MOB particle type).
* %KEY_AREAEFFECTCLOUD_DURATION%: The duration of the cloud in ticks.
* %KEY_AREAEFFECTCLOUD_DURATIONONUSE%: The amount the duration will change when the effects are applied.
* %KEY_AREAEFFECTCLOUD_PARTICLE%: The particle type which comprises the cloud (can be %PARTICLE%).
Can also accept a particle array for specific particle data. See spawn_particle().
* %KEY_AREAEFFECTCLOUD_POTIONMETA%: An associative array of potion item meta.
* %KEY_AREAEFFECTCLOUD_RADIUS%: The radius of the cloud.
* %KEY_AREAEFFECTCLOUD_RADIUSONUSE%: The distance the radius will change when the effects are applied.
* %KEY_AREAEFFECTCLOUD_RADIUSPERTICK%: The distance the radius will change per tick.
* %KEY_AREAEFFECTCLOUD_REAPPLICATIONDELAY%: The interval in ticks for how often effects are applied to entities in cloud.
* %KEY_AREAEFFECTCLOUD_SOURCE%: The source of the cloud. Can be living entity, dispenser location array, or null.
* %KEY_AREAEFFECTCLOUD_WAITTIME%: The age of the cloud in ticks before effects can be applied.
|-
| ARROW
| 
* %KEY_ARROW_CRITICAL%: If this arrow is critical. (boolean)
* %KEY_ARROW_KNOCKBACK%: The knockback strength. (int) (before MC 1.21)
* %KEY_ARROW_DAMAGE%: The amount of damage. (double)
* %KEY_ARROW_PIERCE_LEVEL%: The remaining times that this arrow can pierce through an entity. (int from 0 and 127)
* %KEY_ARROW_PICKUP%: Whether picking up this arrow is ALLOWED, DISALLOWED, or CREATIVE_ONLY.
* %KEY_TIPPEDARROW_POTIONMETA%: An associative array of potion item meta for a tipped arrow.
|-
| ARMOR_STAND
|
Armor stands are sometimes treated like mobs. As such, get_mob_equipment() is used for getting the items in its slots.
* %KEY_ARMORSTAND_ARMS%: Whether or not the ArmorStand has arms. Defaults to false.
* %KEY_ARMORSTAND_BASEPLATE%: Whether or not the ArmorStand has a base plate. Defaults to true.
* %KEY_ARMORSTAND_GRAVITY%: If the ArmorStand has gravity (falls) or not (floats in midair). Defaults to true.
* %KEY_ARMORSTAND_MARKER%: Whether or not it has a tiny collision box and disables interaction. Defaults to false.
* %KEY_ARMORSTAND_SMALLSIZE%: Whether or not the ArmorStand is scaled to child-size. Defaults to false.
* %KEY_ARMORSTAND_VISIBLE%: Whether or not the ArmorStand is visible. Defaults to true.
* %KEY_ARMORSTAND_POSES%: An array where the keys are body parts, and the values are 3D vector arrays.
Each component of the 'poses' arrays is the angle (in radians) of the rotation of that body part around the corresponding axis,
relative to the default position (where all angles are 0). Setting these values uses an update method,
where only values specified will be changed. This allows you to rotate a single body part around a single axis
without knowing the rotations on the other axis or of other body parts beforehand.
|-
| AXOLOTL
|
* %KEY_AXOLOTL_TYPE%: The type of the axolotl. (can be %AXOLOTL_TYPE%)
|-
| BEE
|
* %KEY_BEE_ANGER%: The remaining time in ticks that the bee is angry.
* %KEY_BEE_FLOWER_LOCATION%: The location array of the flower the bee is targeting, or null.
* %KEY_BEE_HIVE_LOCATION%: The location array of the bee's hive, or null.
* %KEY_BEE_NECTAR%: Whether or not the bee is carrying pollen.
* %KEY_BEE_STUNG%: Whether or not the bee has stung something.
|-
| BLOCK_DISPLAY
|
* %KEY_DISPLAY_BLOCK%: A blockdata array (or optionally string) for the block to be displayed.
|-
| BOAT
|
* %KEY_BOAT_TYPE%: Which tree species the boat is composed of. (can be ACACIA, BIRCH, DARK_OAK, JUNGLE, OAK, or SPRUCE) (prior to MC 1.21.2)
|-
| CAT
|
* %KEY_CAT_TYPE%: The type of the cat. (can be %CAT_TYPE%)
* %KEY_GENERIC_SITTING%: Whether or not the cat is sitting.
|-
| CREEPER
| 
* %KEY_CREEPER_POWERED%: If the Creeper is powered or not.
* %KEY_CREEPER_MAXFUSETICKS%: The max amount of time in server ticks that the Creeper can be primed before exploding. (must not be negative)
* %KEY_CREEPER_FUSETICKS%: The amount of time in server ticks that the Creeper has been primed. (must below or equals maxfuseticks and not negative)
* %KEY_CREEPER_EXPLOSIONRADIUS%: The radius of the Creeper's explosion.
|-
| DONKEY, MULE
|
* %KEY_HORSE_CHEST%: Whether the horse has a chest equipped.
* %KEY_HORSE_DOMESTICATION%: The domestication level of the horse (can't be higher than the maximum domestication level).
* %KEY_HORSE_JUMP%: The jump strength (between 1.0 and 2.0).
* %KEY_HORSE_MAXDOMESTICATION%: The maximum domestication level of the horse.
* %KEY_HORSE_SADDLE%: An item pertaining to the saddle a horse has put on. Can be anything.
|-
| DROPPED_ITEM
| 
* %KEY_DROPPED_ITEM_ITEMSTACK%: An array representing the item.
* %KEY_DROPPED_ITEM_PICKUPDELAY%: The delay before the item is available to be picked up.
* %KEY_DROPPED_ITEM_OWNER%: The UUID of the player that owns this item, or null. Prevents other players from picking up item.
* %KEY_DROPPED_ITEM_THROWER%: The UUID of the entity that threw this item, or null.
* %KEY_DROPPED_ITEM_DESPAWN%: Whether or not the item will despawn after a time. (modifiable in MC 1.18.2+)
|-
| ENDER_CRYSTAL
|
* %KEY_ENDERCRYSTAL_BASE%: If the EnderCrystal base is showing or not.
* %KEY_ENDERCRYSTAL_BEAMTARGET%: The location the EnderCrystal beam is targeting, or null if there's no target.
|-
| ENDER_DRAGON
|
* %KEY_ENDERDRAGON_PHASE%: What AI phase the EnderDragon is in. (can be %ENDERDRAGON_PHASE%)
|-
| ENDER_EYE
|
* %KEY_ENDEREYE_DESPAWNTICKS%: The number of ticks counted until despawn. (will despawn after 80 ticks)
* %KEY_ENDEREYE_DROP%: Whether or not the EnderEye will drop an item on despawn.
* %KEY_ENDEREYE_ITEM%: The item the EnderEye entity displays and drops.
* %KEY_ENDEREYE_TARGET%: The target location array that the EnderEye will travel towards.
|-
| ENDERMAN
| 
* %KEY_ENDERMAN_CARRIED%: The block that the Enderman is carrying.
|-
| EVOKER_FANGS
|
* %KEY_EVOKERFANGS_SOURCE%: The UUID of the living entity, usually an Evoker, that is the source of the fangs. Can be null.
|-
| EXPERIENCE_ORB
| 
* %KEY_EXPERIENCE_ORB_AMOUNT%: How much experience is contained within the orb.
|-
| FALLING_BLOCK
| 
* %KEY_FALLING_BLOCK_BLOCK%: The falling block. Not editable.
* %KEY_FALLING_BLOCK_DROPITEM%: If the falling block will break into an item if it cannot be placed.
* %KEY_FALLING_BLOCK_DAMAGE%: If the falling block can damage entities.
|-
| FIREBALL, DRAGON_FIREBALL, SMALL_FIREBALL
| 
* %KEY_FIREBALL_DIRECTION%: The direction the fireball is heading toward.
|-
| FIREWORK
| 
* %KEY_FIREWORK_STRENGTH%: The firework rocket's flight time.
* %KEY_FIREWORK_EFFECTS%: An array of firework effect arrays. (see {{function|launch_firework}})
* %KEY_FIREWORK_ANGLED%: Whether or not the rocket was fired at an angle. (i.e. from a crossbow or dispenser)
|-
| FOX
| 
* %KEY_GENERIC_SITTING%: Whether or not the fox is sitting.
* %KEY_FOX_CROUCHING%: Whether or not the fox is crouching.
* %KEY_FOX_TYPE%: The type of fox. (can be %FOX_TYPE%)
|-
| FROG
|
* %KEY_FROG_TYPE%: The type of frog. (can be %FROG_TYPE%)
|-
| GOAT
|
* %KEY_GOAT_SCREAMING%: Whether or not this is a screaming goat
|-
| HORSE
| 
* %KEY_HORSE_ARMOR%: An item pertaining to the armor a horse has put on.
* %KEY_HORSE_COLOR%: The horse's color (can be %HORSE_COLOR%).
* %KEY_HORSE_DOMESTICATION%: The domestication level of the horse (can't be higher than the maximum domestication level).
* %KEY_HORSE_JUMP%: The jump strength (between 1.0 and 2.0).
* %KEY_HORSE_MAXDOMESTICATION%: The maximum domestication level of the horse.
* %KEY_HORSE_SADDLE%: An item pertaining to the saddle a horse has put on. Can be anything.
* %KEY_HORSE_STYLE%: The horse's style (can be %HORSE_STYLE%).
|-
| INTERACTION
|
* %KEY_INTERACTION_WIDTH%: The width of the interaction's hit box on the X and Z axis.
* %KEY_INTERACTION_HEIGHT%: The height of the interaction's hit box on the Y axis.
* %KEY_INTERACTION_RESPONSE%: Whether vanilla responses occur such as sound and arm swing when interacting with the entity.
* %KEY_INTERACTION_ATTACK%, %KEY_INTERACTION_INTERACTION%: An associative array containing the keys 'puuid' and 'timestamp' which is updated when a player attacks or right clicks the interaction respectively. Cannot be updated with set_entity_spec().
|-
| IRON_GOLEM
| 
* %KEY_IRON_GOLEM_PLAYERCREATED%: Whether the iron golem was built by a player or not.
|-
| ITEM_DISPLAY
|
* %KEY_DISPLAY_ITEM%: The item array for the item to be displayed.
* %KEY_DISPLAY_ITEM_DISPLAY%: The item display model transform to use. Can be %ITEM_DISPLAY%.
|-
| ITEM_FRAME, GLOW_ITEM_FRAME
| 
* %KEY_ITEM_FRAME_FIXED%: If true, the item frame cannot be manipulated. (destroyed, rotated, removed, etc) (default false)
* %KEY_ITEM_FRAME_ITEM%: The item in the frame.
* %KEY_ITEM_FRAME_ROTATION%: The rotation of the frame's item (can be %ROTATION%).
* %KEY_ITEM_FRAME_VISIBLE%: If the frame is visible. (default true)
|-
| LLAMA, TRADER_LLAMA
|
* %KEY_HORSE_CHEST%: Whether the horse has a chest equipped.
* %KEY_HORSE_DOMESTICATION%: The domestication level of the horse (can't be higher than the maximum domestication level).
* %KEY_HORSE_MAXDOMESTICATION%: The maximum domestication level of the horse.
* %KEY_HORSE_COLOR%: The llama's color (can be %LLAMA_COLOR%).
* %KEY_HORSE_SADDLE%: An item pertaining to the saddle a horse has put on. Can be anything.
|-
| LIGHTNING
| 
* %KEY_LIGHTNING_EFFECT%: Whether the strike is an effect that does no damage. Not editable.
|-
| MAGMA_CUBE
| 
* %KEY_SLIME_SIZE%: The size of the magma cube.
|-
| MINECART, MINECART_FURNACE, MINECART_HOPPER, MINECART_MOB_SPAWNER, MINECART_TNT
|
* %KEY_MINECART_BLOCK%: The material name of the block being displayed.
* %KEY_MINECART_OFFSET%: The offset of the block being displayed.
|-
| MINECART_COMMAND
| 
* %KEY_MINECART_COMMAND_COMMAND%: The command that the command minecart will run when activated.
* %KEY_MINECART_COMMAND_CUSTOMNAME%: The name of the command minecart.
* %KEY_MINECART_BLOCK%: The material name of the block being displayed.
* %KEY_MINECART_OFFSET%: The offset of the block being displayed.
|- 
| MUSHROOM_COW
| 
* %KEY_MUSHROOM_COW_TYPE%: The type of mushroom cow. (can be %MUSHROOM_COW_TYPE%).
|-
| PAINTING
| 
* %KEY_PAINTING_ART%: The art on the painting (can be %ART%).
|- 
| PANDA
| 
* %KEY_PANDA_MAINGENE%: The dominant trait for this panda (can be %PANDA_GENE%).
* %KEY_PANDA_HIDDENGENE%: The recessive trait for this panda.
* %KEY_PANDA_EATING%: Whether the panda is eating. (MC 1.19+)
* %KEY_PANDA_ONBACK%: Whether the panda is laying on its back. (MC 1.19+)
* %KEY_PANDA_ROLLING%: Whether the panda is rolling. (MC 1.19+)
* %KEY_PANDA_SNEEZING%: Whether the panda is sneezing. (MC 1.19+)
|- 
| PARROT
| 
* %KEY_GENERIC_SITTING%: If the parrot is sitting.
* %KEY_PARROT_TYPE%: The type of the parrot (can be %PARROT_TYPE%).
|- 
| PHANTOM
| 
* %KEY_PHANTOM_SIZE%: The size of the phantom. Clamped to 0 - 64 (default: 0). Phantoms deal (6 + size) damage.
|- 
| PIG, STRIDER
| 
* %KEY_STEERABLE_SADDLED%: If the steerable mob has a saddle.
|-
| PIGLIN
|
* %KEY_GENERIC_BABY%: Whether the piglin is a baby.
* %KEY_PIGLIN_ZOMBIFICATION_IMMUNE%: Whether the piglin is immune to zombification in the overworld.
|- 
| PRIMED_TNT
| 
* %KEY_PRIMED_TNT_FUSETICKS%: The number of ticks until the explosion.
* %KEY_PRIMED_TNT_SOURCE%: The source of the primed TNT.
|-
| PUFFERFISH
|
* %KEY_PUFFERFISH_SIZE%: How puffed it is, from 0 - 2.
|-
| RABBIT
|
* %KEY_RABBIT_TYPE%: The type of the rabbit (can be %RABBIT_TYPE%).
|-
| SHEEP
| 
* %KEY_SHEEP_COLOR%: The color of the sheep (can be %DYE_COLOR%).
* %KEY_SHEEP_SHEARED%: Whether the sheep is sheared.
|-
| SHULKER
|
* %KEY_SHULKER_COLOR%: The color of the shulker (can be %DYE_COLOR%).
|-
| SHULKER_BULLET
|
* %KEY_SHULKERBULLET_TARGET%: The UUID of the entity the bullet will head toward, or null if there is no target.
|-
| SKELETON_HORSE, ZOMBIE_HORSE
|
* %KEY_HORSE_DOMESTICATION%: The domestication level of the horse (can't be higher than the maximum domestication level).
* %KEY_HORSE_JUMP%: The jump strength (between 1.0 and 2.0).
* %KEY_HORSE_MAXDOMESTICATION%: The maximum domestication level of the horse.
* %KEY_HORSE_SADDLE%: An item pertaining to the saddle a horse has put on. Can be anything.
|-
| SLIME
| 
* %KEY_SLIME_SIZE%: The size of the slime.
|-
| SNOWMAN
| 
* %KEY_SNOWMAN_DERP%: With derp mode set to true the snowman wears no pumpkin
|-
| SPECTRAL_ARROW
| 
* %KEY_ARROW_CRITICAL%: If this spectral arrow is critical. (boolean)
* %KEY_ARROW_KNOCKBACK%: The knockback strength. (double)
* %KEY_ARROW_DAMAGE%: The amount of damage. (double)
* %KEY_SPECTRAL_ARROW_GLOWING_TICKS%: The number of ticks the hit entity will glow. (int)
|-
| SPLASH_POTION, LINGERING_POTION
| 
* %KEY_SPLASH_POTION_ITEM%: The item for the thrown potion.
|-
| TEXT_DISPLAY
|
* %KEY_DISPLAY_TEXT_ALIGNMENT%: The text alignment. Can be CENTER (default), LEFT or RIGHT.
* %KEY_DISPLAY_TEXT%: The text for this display entity.
* %KEY_DISPLAY_TEXT_LINE_WIDTH%: The max width for a line of text before splitting. (default: 200)
* %KEY_DISPLAY_TEXT_SEE_THROUGH%: Whether the text is visible through blocks and entities are visible through the background. (default: false)
* %KEY_DISPLAY_TEXT_SHADOW%: Whether the text has a shadow. (default: false) Not to be confused with an entity shadow.
* %KEY_DISPLAY_TEXT_OPACITY%: The alpha opacity of the text from 0 to 255. (default: 255) If value is less than 26, the text will not be rendered.
* %KEY_DISPLAY_TEXT_BACKGROUND_COLOR%: An transparent color array for the background. ("r", "g", "b" and "a" keys with 0-255 integer values) If null, it will use the default text background. If alpha channel is less than 26, the background will not be rendered.
|-
| TRIDENT
| 
* %KEY_ARROW_CRITICAL%: If this trident is critical. (boolean)
* %KEY_ARROW_KNOCKBACK%: The knockback strength. (double)
* %KEY_ARROW_DAMAGE%: The amount of damage. (double)
|-
| TROPICAL_FISH
|
* %KEY_TROPICALFISH_COLOR%: The base color of the fish (can be %DYE_COLOR%).
* %KEY_TROPICALFISH_PATTERNCOLOR%: The color of the pattern on the fish.
* %KEY_TROPICALFISH_PATTERN%: The pattern type on the fish (can be %FISH_PATTERN%).
|-
| VEX
| 
* %KEY_VEX_CHARGING%: Whether or not this vex is charging.
|-
| VILLAGER
| 
* %KEY_VILLAGER_PROFESSION%: The profession of the villager (can be %PROFESSION%).
* %KEY_VILLAGER_EXPERIENCE%: The amount of experience in the villager's profession towards the next level.
* %KEY_VILLAGER_LEVEL%: The level of villager's profession. Can be 1-5.
|-
| WITHER_SKULL
| 
* %KEY_WITHER_SKULL_CHARGED%: Whether or not the wither skull is charged.
* %KEY_FIREBALL_DIRECTION%: The direction the wither skull is heading toward.
|- 
| WOLF
| 
* %KEY_WOLF_ANGRY%: If the wolf is angry.
* %KEY_WOLF_COLOR%: The collar color of the wolf (can be %DYE_COLOR%).
* %KEY_WOLF_INTERESTED%: Whether the wolf is interested, tilting its head. (MC 1.19+)
* %KEY_GENERIC_SITTING%: If the wolf is sitting.
* %KEY_WOLF_TYPE%: The type of wolf (can be %WOLF_TYPE%) (MC 1.20.5+)
|-
| ZOGLIN
|
* %KEY_GENERIC_BABY%: Whether the zoglin is a baby.
|- 
| ZOMBIE, HUSK, DROWNED
| 
* %KEY_GENERIC_BABY%: Whether the zombie is a baby.
* %KEY_ZOMBIE_BREAK_DOORS%: Whether the zombie can break doors. (MC 1.19+)
|-
| ZOMBIE_VILLAGER
|
* %KEY_GENERIC_BABY%: Whether the zombie is a baby.
* %KEY_VILLAGER_PROFESSION%: The profession of the villager (can be %PROFESSION%).
* %KEY_ZOMBIE_BREAK_DOORS%: Whether the zombie villager can break doors. (MC 1.19+)
|- 
| ZOMBIFIED_PIGLIN (PIG_ZOMBIE before 1.16)
| 
* %KEY_ZOMBIFIED_PIGLIN_ANGER%: The zombified piglin's anger level.
* %KEY_ZOMBIFIED_PIGLIN_ANGRY%: Whether the zombified piglin is angry.
* %KEY_GENERIC_BABY%: Whether the zombified piglin is a baby.
* %KEY_ZOMBIE_BREAK_DOORS%: Whether the zombified piglin can break doors. (MC 1.19+)
|}
