Entity

From Minecraft Wiki
(Redirected from Entities)
Jump to navigationJump to search
The size of six entities (a chicken, a player, evoker, camel, warden, and oak boat) relative to four blocks

Entities encompass all dynamic, moving objects throughout the Minecraft world.

General behavior

Properties all entities have are:

  • A position, rotation, and velocity.
  • A volume consisting of one or more non-rotating, three-dimensional boxes with a fixed height and width
  • Whether they are on fire, displayed as flames on or around the entity
  • Whether they have any status effect, such as from potions

Most entities can be pushed around by water currents, and some can have their trajectory altered by explosions if already traveling at speed. Some entities can be renamed by using a name tag on them. Entity tiles, items, shot or thrown projectiles, area effect clouds, and experience orbs do not have a current health. Entities that do have a health status include mobs, players, boats, boat with chests and minecarts.

Entities cannot pass through solid blocks, excluding vexes. Most types of entities prevent blocks from being placed in the space they occupy, except for resources (dropped items) and experience orbs, which are automatically pushed out of the block to open air. If a solid block enters an entity's space, such as falling sand or a swinging door, then it is free to move out of the solid block but not back in. For example, if a door is closed on you, you can jump up and stand on top of the bottom-half door block, if there is air above the door.

Entities are lit according to the light level of the block their position is in. For example, if a minecart runs over a non-straight track directly into a solid block, it turns black because solid blocks always have a light level of 0; arrows are also sometimes seen to turn black, especially if fired shallowly into the ceiling.

Further notes

Item frames, glow item frames, paintings, and lead knots, unlike most entities, align to the block grid, and are completely immobile.

Arrows, TNT and falling sand (and its variants, including other falling blocks like anvils and dragon eggs) are assumed to have infinite health because they are neither destroyed by explosions (although they can be moved by explosions, and they can also be fired out of TNT cannons), nor by being on fire for long periods. However, they can still be "killed" with the use of the /kill command.

Boats, boat with chests and minecarts

See also: Transportation (contains information about speed)

Boats, boat with chests and minecarts appear to recover health over time. For example, they can be broken by hitting them quickly, but cannot be destroyed by hits with unarmed hand with a pause after each hit. The amount of wobbling displayed by boats and minecarts when struck appears to indicate their current health. All minecart, boat and boat with chest variants have 6♥♥♥.

Gravity-affected blocks

Main article: Falling Block
Falling sand that collapsed into a dungeon.

Gravity-affected blocks include sand, gravel, anvils, red sand, dragon eggs, concrete powder, scaffolding, and pointed dripstone, along with snow layers in Bedrock Edition.

A gravity-affected block normally exists as a block, but when its support is removed, it becomes a falling block entity and falls down until hitting the top surface of another block. If there is valid space, it places itself as a block at the nearest on-grid position, or drops as an item if that position is occupied by a block without a solid top surface, such as a torch or a bottom slab.

While a falling block ordinarily falls straight down, its trajectory can be affected by explosions, bubble columns, pistons, reeling it in, and moving slime blocks, and can slide down the side of honey blocks. It is also possible to modify the velocity and direction of a falling block by using commands such as /data[Java Edition only] or third-party programs. A falling block despawns and drops as an item if it does not land after existing for 600 ticks (30 seconds), or 100 ticks (5 seconds) if falling into the void[verify].

If a cave generates underneath sand, gravel, or red sand, the blocks remain stationary until it receives a block update. If a single block is updated and falls down, neighboring blocks will be updated in a chain reaction which can cause the collapse of an entire region of gravity-affected blocks.

Interactions with "use" control

Entities with use interactions (such as boats, boat with chests, minecarts, cats, villagers, tamed parrots, and tamed wolves) do not stop the use action of a tool you are holding. For example, using a water bucket on a tamed wolf causes the wolf to sit, but also empties the bucket near or onto the wolf.

Riding

A spider jockey.

Entities may be riding on, or attached to, other entities. When this is the case, only the lower/"outer" entity's volume collides with other things, and only that entity can control movement.‌[Java Edition only] However, there are exceptions: players riding minecarts, boats, boat with chests, or saddled horses, baby zombies riding chickens, and skeletons riding horses or boats.

The only current legitimate combinations of riding entities are:

Note that a parrot on player shoulder isn't considered as riding.

It is possible to have multiple levels, such as a baby piglin on another baby piglin who is riding a hoglin in a minecart in a boat or a boat with chest.

Entities can also be stacked on top of each other with the use of the /summon and /data commands in Java Edition. For example, using /summon spider ~ ~ ~ {Passengers:[{id:skeleton}]} summons a spider jockey, or using /ride in Bedrock Edition.

If an entity is riding another entity, the top entity cannot teleport because as soon as the teleport is made, the entity is teleported back to riding the other entity.‌[Java Edition only]

Starting from the Nether Update, entities that are riders or passengers of other entities cannot despawn.[verify]

Types of entities

The table below lists types of entities that currently exist in Minecraft.

Entities listed as "solid" obstruct the passage of other entities.

TypeSolidHealthResource locationLiving Entity
EntitySprite player.png: Sprite image for player in Minecraft linking to PlayerPlayersYes20♥ × 10 (Varies with attributes)playerYes
EnvSprite mobs.png: Sprite image for mobs in Minecraft linking to MobsMobsYesVariessee Java Edition data values#EntitiesYes
EntitySprite camera.png: Sprite image for camera in Minecraft linking to CameraCamera[edu & BE only]Yes?cameraNo
EntitySprite ice-bomb.png: Sprite image for ice-bomb in Minecraft linking to Ice BombIce Bomb[edu & BE only]?ice_bombNo
EntitySprite balloons.png: Sprite image for balloons in Minecraft linking to BalloonBalloon[edu & BE only]YesballoonNo
File:EntitySprite chalkboard.pngChalkboard[BE only]No?chalkboardNo
ItemSprite oak-boat.png: Sprite image for oak-boat in MinecraftItemSprite spruce-boat.png: Sprite image for spruce-boat in MinecraftItemSprite birch-boat.png: Sprite image for birch-boat in MinecraftItemSprite jungle-boat.png: Sprite image for jungle-boat in MinecraftItemSprite acacia-boat.png: Sprite image for acacia-boat in MinecraftItemSprite dark-oak-boat.png: Sprite image for dark-oak-boat in MinecraftItemSprite mangrove-boat.png: Sprite image for mangrove-boat in MinecraftItemSprite cherry-boat.png: Sprite image for cherry-boat in MinecraftItemSprite bamboo-raft.png: Sprite image for bamboo-raft in Minecraft
Boats
Yes6♥♥♥
Recovers health quickly over time.
boatNo
ItemSprite oak-boat-with-chest.png: Sprite image for oak-boat-with-chest in MinecraftItemSprite spruce-boat-with-chest.png: Sprite image for spruce-boat-with-chest in MinecraftItemSprite birch-boat-with-chest.png: Sprite image for birch-boat-with-chest in MinecraftItemSprite jungle-boat-with-chest.png: Sprite image for jungle-boat-with-chest in MinecraftItemSprite acacia-boat-with-chest.png: Sprite image for acacia-boat-with-chest in MinecraftItemSprite dark-oak-boat-with-chest.png: Sprite image for dark-oak-boat-with-chest in MinecraftItemSprite mangrove-boat-with-chest.png: Sprite image for mangrove-boat-with-chest in MinecraftItemSprite cherry-boat-with-chest.png: Sprite image for cherry-boat-with-chest in MinecraftItemSprite bamboo-raft-with-chest.png: Sprite image for bamboo-raft-with-chest in Minecraft
Boats with Chests
Yes6♥♥♥
Recovers health quickly over time.
chest_boatNo
ItemSprite minecart.png: Sprite image for minecart in Minecraft
Minecart
Yes (to other entities)6♥♥♥
Recovers health quickly over time.

minecart

No
ItemSprite minecart-with-chest.png: Sprite image for minecart-with-chest in Minecraft
Minecart with Chest
Yes (to other entities)6♥♥♥
Recovers health quickly over time.
chest_minecartNo
ItemSprite minecart-with-furnace.png: Sprite image for minecart-with-furnace in Minecraft
Minecart with Furnace[JE only]
Yes (to other entities)6♥♥♥
Recovers health quickly over time.
furnace_minecartNo
ItemSprite minecart-with-tnt.png: Sprite image for minecart-with-tnt in Minecraft
Minecart with TNT
Yes (to other entities)6♥♥♥
Recovers health quickly over time.
tnt_minecartNo
ItemSprite minecart-with-hopper.png: Sprite image for minecart-with-hopper in Minecraft
Minecart with Hopper
Yes (to other entities)6♥♥♥
Recovers health quickly over time.
hopper_minecartNo
EntitySprite minecart-with-monster-spawner.png: Sprite image for minecart-with-monster-spawner in Minecraft
Minecart with Monster Spawner[JE only]
Yes (to other entities)6♥♥♥
Recovers health quickly over time.
spawner_minecartNo
ItemSprite minecart-with-command-block.png: Sprite image for minecart-with-command-block in Minecraft
Minecart with Command Block
Yes (to other entities)6♥♥♥
Recovers health quickly over time.
command_block_minecartNo
EnvSprite items.png: Sprite image for items in MinecraftItemsYes (to boats, boat with chests and minecarts)5♥♥♥itemNo
EntitySprite experience-orb.png: Sprite image for experience-orb in Minecraft linking to Experience orbExperience orbsNo5♥♥♥experience_orb[JE only], xp_orb[BE only]No
EntitySprite arrow.png: Sprite image for arrow in Minecraft linking to ArrowArrowsYes (to boats, boat with chests and minecarts)arrow, spectral_arrow[JE only]No
EntitySprite trident.png: Sprite image for trident in Minecraft linking to TridentTridentsYestrident[JE only], thrown_trident[BE only]No
EntitySprite snowball.png: Sprite image for snowball in Minecraft linking to SnowballSnowballYessnowballNo
EntitySprite egg.png: Sprite image for egg in Minecraft linking to EggEggYeseggNo
EntitySprite llama-spit.png: Sprite image for llama-spit in Minecraft linking to Llama spitLlama spitYesllama_spitNo
EntitySprite ender-pearl.png: Sprite image for ender-pearl in Minecraft linking to Ender pearlEnder pearlsYesender_pearlNo
EntitySprite eye-of-ender.png: Sprite image for eye-of-ender in Minecraft linking to Eye of enderEye of enderNoeye_of_ender[JE only], eye_of_ender_signal[BE only]No
ItemSprite firework-rocket.png: Sprite image for firework-rocket in Minecraft linking to Firework rocketFirework rocketNo

fireworks_rocket

No
BlockSprite tnt.png: Sprite image for tnt in Minecraft Primed TNTNotntNo
BlockSprite sand.png: Sprite image for sand in MinecraftFalling blockNofalling_blockNo
EntitySprite fishing-bobber.png: Sprite image for fishing-bobber in MinecraftFishing rod bobbersYes (to boats, boat with chests and minecarts)fishing_bobber[JE only], fishing_hook[BE only]No
EntitySprite lightning.png: Sprite image for lightning in MinecraftLightning boltsNolightning_boltNo
EntitySprite leash-knot.png: Sprite image for leash-knot in MinecraftLead knotNoleash_knotNo
EntitySprite painting.png: Sprite image for painting in Minecraft linking to PaintingPaintingNopaintingNo
EntitySprite item-frame.png: Sprite image for item-frame in Minecraft linking to Item frameItem frame[JE only]Noitem_frame, glow_item_frameNo
ItemSprite armor-stand.png: Sprite image for armor-stand in Minecraft linking to Armor standArmor standNoarmor_standYes
EntitySprite fireball.png: Sprite image for fireball in Minecraft linking to FireballFireballs
EntitySprite wither-skull.png: Sprite image for wither-skull in Minecraft linking to Wither#Wither SkullWither skulls
EntitySprite dragon-fireball.png: Sprite image for dragon-fireball in Minecraft linking to Dragon FireballDragon Fireballs
Yesfireball, small_fireball, wither_skull, wither_skull_dangerous[BE only], dragon_fireballNo
EntitySprite shulker-bullet.png: Sprite image for shulker-bullet in Minecraft linking to Shulker bulletShulker bulletYesshulker_bulletNo
EntitySprite end-crystal.png: Sprite image for end-crystal in Minecraft linking to End crystalEnd crystalsNo5♥♥♥end_crystal[JE only], ender_crystal[BE only]No
EntitySprite evoker-fangs.png: Sprite image for evoker-fangs in Minecraft linking to Evoker fangsEvoker fangsNo?evoker_fangs[JE only], evocation_fang[BE only]No
Marker[JE only]NomarkerNo
Block display[JE only]Noblock_displayNo
Item display[JE only]Noitem_displayNo
Text display[JE only]Notext_displayNo
Interaction[JE only]NointeractionNo

Motion of entities

"Gravity" redirects here. For the Minecraft Dungeons enchantment, see MCD:Gravity.

Gravity works differently in Minecraft than the real world, as not everything is subject to the same acceleration. Additionally, there is a drag force proportional to velocity, again dependent on the entity.

KindAcceleration
blocks/tick2
Acceleration
m/s2
Drag
1/tick
Terminal velocity
m/tick
Terminal velocity
m/s
EntitySprite player.png: Sprite image for player in Minecraft Players and other living entities [note 1]0.08320.023.9278.4
Players/mobs with EffectSprite slow-falling.png: Sprite image for slow-falling in Minecraft linking to Slow FallingSlow Falling[note 1]0.0140.020.499.8
EnvSprite items.png: Sprite image for items in MinecraftEntitySprite sand.png: Sprite image for sand in MinecraftEntitySprite tnt.png: Sprite image for tnt in MinecraftItems, falling blocks, and TNT0.04160.022.0040.0
ItemSprite minecart.png: Sprite image for minecart in MinecraftMinecarts0.04160.050.7616.0
ItemSprite oak-boat.png: Sprite image for oak-boat in MinecraftItemSprite oak-boat-with-chest.png: Sprite image for oak-boat-with-chest in MinecraftBoats and boat with chests0.04160.00
EntitySprite egg.png: Sprite image for egg in MinecraftEntitySprite snowball.png: Sprite image for snowball in MinecraftEntitySprite splash-potion.png: Sprite image for splash-potion in MinecraftEntitySprite ender-pearl.png: Sprite image for ender-pearl in Minecraft Thrown eggs, snowballs, potions, and ender pearls0.03120.013.0060.0
EntitySprite experience-orb.png: Sprite image for experience-orb in MinecraftExperience orbs0.03120.021.5030.0
EntitySprite fishing-hook.png: Sprite image for fishing-hook in Minecraft Thrown fishing bobbers0.03120.080.3757.5
EntitySprite llama-spit.png: Sprite image for llama-spit in MinecraftLlama spit0.06240.016.00120.0
EntitySprite arrow.png: Sprite image for arrow in MinecraftEntitySprite trident.png: Sprite image for trident in Minecraft Fired arrows, and thrown tridents0.05200.015.00100.0
EntitySprite fireball.png: Sprite image for fireball in MinecraftEntitySprite wither-skull.png: Sprite image for wither-skull in MinecraftEntitySprite dragon-fireball.png: Sprite image for dragon-fireball in MinecraftFireballs, Wither skulls, and dragon fireballs[note 1][note 2]0.10400.05[note 3]1.9038.0

Starting at an initial upwards velocity , an entity's velocity after falling for a number of ticks can be given by the formulas:

Drag applied before acceleration:
Drag applied after acceleration[note 1][note 4]:
Note: initialVelocity is in blocks/tick, finalVelocity is in m/tick, and acceleration is in blocks/tick^2.
  1. abcdNote that when living entities and explosive projectiles are simulated, the drag is applied after the acceleration, rather than before; this is why their terminal velocities aren't whole numbers while the others are.
  2. Explosive projectiles are not affected by gravity but instead get acceleration from getting damaged.
  3. Dangerous wither skulls have drag force of 0.27.
  4. For living entities that cannot fly, use (ticksPassed+1).

Data values

Java Edition:

Main article: Entity format
  • : Root tag.
    • Tags common to all entities

Bedrock Edition:

See Bedrock Edition level format/Entity format.

Video

History

Java Edition
1.1?Players cannot interact with entities from far away in Creative mode.
1.4.212w34aEntities can now use portals.
1.915w31aProjectile motion has now been changed slightly.[1]
15w36aMost entities (exceptions being items and experience orbs) can now be pushed by other entities.
15w45aEntities bunched up in a 1×1 hole together no longer push away entities touching adjacent corners.
15w49aProjectiles now take the thrower's momentum into account when the player is falling, flying with elytra, or taking knockback; but not when the player is walking, riding an entity, or flying in Creative mode.
1.1116w32aEntity IDs have now been changed to have underscores and no capital letters. They can also be used by typing minecraft: before the IDs, similar to block IDs.
The ID for mobs (Mob), and monsters (Monster) have now been removed.
Pocket Edition Alpha
?The insides of mobs no longer render.
Bedrock Edition
?The insides of mobs now render again.

Issues

Issues relating to "Entity" are maintained on the bug tracker. Report issues there.

See also

  • Block entity – unlike the entities mentioned above, these are simply blocks that store additional data.

References