Entity

From Minecraft Wiki
(Redirected from Entities)
Jump to navigation Jump 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[edit | edit source]

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
  • The ability to be on fire, displayed as flames on or around the entity
  • The ability to have a status effect, such as from potions
  • A view point, even if it has no eyes

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 health. Entities that do have a health status include mobs, players, armor stands, boats, boat with chests and minecarts.

Entities cannot pass through solid blocks, excluding vexes and ender dragons. Most types of entities prevent blocks from being placed in the space they occupy, except for 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 the player, player 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[edit | edit source]

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 blocks 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[edit | edit source]

See also: Transportation (contains information about speed)

Boats, boats 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[edit | edit source]

Main article: Falling Block
Falling sand that collapsed into a monster room.

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 are updated in a chain reaction that can cause the collapse of an entire region of gravity-affected blocks.

Interactions with "use" control[edit | edit source]

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 the player is 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[edit | edit source]

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, boats 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 even more levels, such as a baby piglin on another baby piglin who is riding a hoglin in a minecart in a boat.

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][Java Edition only]

Types of entities[edit | edit source]

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

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

Type Solid Health Resource location Living entity
EntitySprite player.png: Sprite image for player in Minecraft linking to PlayerPlayer[note 1] Yes 20♥ × 10 (Varies with attributes) player Yes
EnvSprite mob.png: Sprite image for mob in Minecraft linking to MobMob Yes Varies see Java Edition data values § Entities Yes
EntitySprite armor-stand.png: Sprite image for armor-stand in Minecraft linking to Armor StandArmor Stand[note 1] No 20♥ × 10 armor_stand Yes
EntitySprite arrow.png: Sprite image for arrow in Minecraft linking to ArrowArrow Yes (to boats, boat with chests and minecarts) arrow, spectral_arrow[JE only] No
EntitySprite balloon.png: Sprite image for balloon in Minecraft linking to BalloonBalloon[edu & BE only] Yes balloon No
Block display[JE only] No block_display No
EntitySprite boat.png: Sprite image for boat in Minecraft linking to BoatBoat Yes 6♥♥♥
Recovers health quickly over time.
boat No
EntitySprite boat-with-chest.png: Sprite image for boat-with-chest in Minecraft linking to Boat with ChestBoat with Chest Yes 6♥♥♥
Recovers health quickly over time.
chest_boat No
EntitySprite egg.png: Sprite image for egg in Minecraft linking to EggEgg Yes egg No
EntitySprite end-crystal.png: Sprite image for end-crystal in Minecraft linking to End CrystalEnd Crystal No 5♥♥♥ end_crystal[JE only], ender_crystal[BE only] No
EntitySprite ender-pearl.png: Sprite image for ender-pearl in Minecraft linking to Ender PearlEnder Pearl Yes ender_pearl No
EntitySprite evoker-fangs.png: Sprite image for evoker-fangs in Minecraft linking to Evoker FangsEvoker Fangs No ?​[more information needed] evoker_fangs[JE only], evocation_fang[BE only] No
EntitySprite eye-of-ender.png: Sprite image for eye-of-ender in Minecraft linking to Eye of EnderEye of Ender No eye_of_ender[JE only], eye_of_ender_signal[BE only] No
EntitySprite experience-orb.png: Sprite image for experience-orb in Minecraft linking to Experience OrbExperience Orb No 5♥♥♥ experience_orb[JE only], xp_orb[BE only] No
EntitySprite falling-block.png: Sprite image for falling-block in Minecraft linking to Falling BlockFalling Block No falling_block No
EntitySprite fishing-bobber.png: Sprite image for fishing-bobber in Minecraft linking to Fishing BobberFishing Bobber Yes (to boats, boat with chests and minecarts) fishing_bobber[JE only], fishing_hook[BE only] No
EntitySprite fireball.png: Sprite image for fireball in Minecraft linking to FireballFireball
EntitySprite small-fireball.png: Sprite image for small-fireball in Minecraft linking to Small FireballSmall Fireball
EntitySprite wither-skull.png: Sprite image for wither-skull in Minecraft linking to Wither#Wither SkullWither skull
EntitySprite dragon-fireball.png: Sprite image for dragon-fireball in Minecraft linking to Dragon FireballDragon Fireball
Yes fireball, small_fireball, wither_skull, wither_skull_dangerous[BE only], dragon_fireball No
ItemSprite firework-rocket.png: Sprite image for firework-rocket in Minecraft linking to Firework RocketFirework Rocket No fireworks_rocket No
EntitySprite ice-bomb.png: Sprite image for ice-bomb in Minecraft linking to Ice BombIce Bomb[edu & BE only] Yes ice_bomb No
Interaction[JE only] No interaction No
EnvSprite item.png: Sprite image for item in Minecraft linking to Item (entity)Item Yes (to boats, boat with chests and minecarts) 5♥♥♥ item No
Item display[JE only] No item_display No
EntitySprite item-frame.png: Sprite image for item-frame in Minecraft linking to Item frameItem frame[JE only] No item_frame, glow_item_frame No
EntitySprite lightning-bolt.png: Sprite image for lightning-bolt in Minecraft linking to Lightning BoltLightning Bolt No lightning_bolt No
EntitySprite leash-knot.png: Sprite image for leash-knot in Minecraft linking to Leash KnotLeash Knot No leash_knot No
EntitySprite llama-spit.png: Sprite image for llama-spit in Minecraft linking to Llama SpitLlama Spit Yes llama_spit No
Marker[JE only] No marker No
EntitySprite minecart.png: Sprite image for minecart in Minecraft
Minecart
Yes (to other entities) 6♥♥♥
Recovers health quickly over time.
minecart No
EntitySprite 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_minecart No
EntitySprite 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_minecart No
EntitySprite 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_minecart No
EntitySprite 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_minecart No
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_minecart No
EntitySprite 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_minecart No
EntitySprite painting.png: Sprite image for painting in Minecraft linking to PaintingPainting No painting No
BlockSprite tnt.png: Sprite image for tnt in Minecraft Primed TNT No tnt No
Text display[JE only] No text_display No
EntitySprite shulker-bullet.png: Sprite image for shulker-bullet in Minecraft linking to Shulker BulletShulker Bullet Yes shulker_bullet No
EntitySprite snowball.png: Sprite image for snowball in Minecraft linking to SnowballSnowball Yes snowball No
EntitySprite trident.png: Sprite image for trident in Minecraft linking to TridentTrident Yes trident[JE only], thrown_trident[BE only] No
EntitySprite wind-charge.png: Sprite image for wind-charge in Minecraft linking to Wind ChargeWind Charge Yes wind_charge[JE only], breeze_wind_charge[JE only], wind_charge_projectile[BE only] No

Motion of entities[edit | edit source]

"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.

This is a GitHub repository with some in-depth explanation about the topic.

Kind Acceleration Drag

(vertical)

Drag

(horizontal)

Terminal velocity
m/tick
Terminal velocity
m/s
Applies drag:
EntitySprite player.png: Sprite image for player in Minecraft EnvSprite mob.png: Sprite image for mob in Minecraft EntitySprite armor-stand.png: Sprite image for armor-stand in Minecraft Players and other living entities [note 2][note 3] 0.08 0.02 0.09 3.92 78.4 After
Players/mobs with EffectSprite slow-falling.png: Sprite image for slow-falling in Minecraft linking to Slow FallingSlow Falling [note 2] 0.01 0.02 0.09 0.49 9.8 After
EnvSprite items.png: Sprite image for items in Minecraft EntitySprite sand.png: Sprite image for sand in Minecraft EntitySprite tnt.png: Sprite image for tnt in Minecraft Items, falling blocks, and TNT[note 4] 0.04 0.02 0.02 1.96 39.2 After
ItemSprite minecart.png: Sprite image for minecart in Minecraft Minecarts[note 5][note 4] 0.04 0.05 0.05 0.76 16.0 After
ItemSprite oak-boat.png: Sprite image for oak-boat in Minecraft ItemSprite oak-boat-with-chest.png: Sprite image for oak-boat-with-chest in Minecraft Boats and boat with chests[note 6][note 4] 0.04 0.00 0.10 -
EntitySprite egg.png: Sprite image for egg in Minecraft EntitySprite snowball.png: Sprite image for snowball in Minecraft EntitySprite ender-pearl.png: Sprite image for ender-pearl in Minecraft Thrown eggs, snowballs, and ender pearls 0.03 0.01 0.01 3.00 60.0 Before
EntitySprite splash-potion.png: Sprite image for splash-potion in Minecraft Thrown potions 0.05 0.01 0.01 5.00 100.0 Before
EntitySprite bottle-o'-enchanting.png: Sprite image for bottle-o'-enchanting in Minecraft Thrown bottles o' enchanting 0.07 0.01 0.01 7.00 140.0 Before
EntitySprite experience-orb.png: Sprite image for experience-orb in Minecraft Experience orbs[note 4] 0.03 0.02 0.02 1.47 29.4 After
EntitySprite fishing-hook.png: Sprite image for fishing-hook in Minecraft Thrown fishing bobbers[note 4] 0.03 0.08 0.08 0.345 6.9 After
EntitySprite llama-spit.png: Sprite image for llama-spit in Minecraft Llama spit 0.06 0.01 0.01 6.00 120.0 Before
EntitySprite arrow.png: Sprite image for arrow in Minecraft EntitySprite trident.png: Sprite image for trident in Minecraft Fired arrows, and thrown tridents 0.05 0.01 0.01 5.00 100.0 Before
EntitySprite fireball.png: Sprite image for fireball in Minecraft EntitySprite wither-skull.png: Sprite image for wither-skull in Minecraft EntitySprite dragon-fireball.png: Sprite image for dragon-fireball in Minecraft Fireballs, small fireballs, wither skulls, and dragon fireballs [note 2][note 7] 0.10 0.05[note 8] 0.05 1.90 38.0 After
EntitySprite wind-charge.png: Sprite image for wind-charge in Minecraft Wind charges[note 7] 0.10 0.00 0.00 -

Applying an initial upward velocity initialVelocity on an entity, the entity's vertical velocity after falling for a number of ticks ticksPassed can be given by the formulas:

Drag applied before acceleration:
  • finalVelocity=(initialVelocity×(1drag)ticksPassed)(acceleration×1(1drag)ticksPasseddrag)
Drag applied after acceleration[note 2]:
  • finalVelocity=(initialVelocity×(1drag)ticksPassed)(acceleration×1(1drag)ticksPasseddrag×(1drag))
  1. a b In Bedrock Edition, these entities are under the mob category.
  2. a b c d Note 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.
  3. Players, mobs and armor stands whose OnGround property is set to 1 have an horizontal drag force of ~0.454.
  4. a b c d e In each tick, items, falling blocks, primed TNTs, minecarts, boats, experience orbs and fishing bobbers apply acceleration together with velocity to update the position. This means that the new position is calculated by subtracting the acceleration from the current velocity.
  5. Minecarts have a maximum horizontal velocity of 0.4. Any greater value is reset to that number.
  6. Boats' horizontal position gets updated using next tick's velocity instead of the current one.
  7. a b Explosive projectiles and wind charges are not affected by gravity but instead get acceleration from getting damaged.
  8. Dangerous wither skulls have drag force of 0.27.

Data values[edit | edit source]

Java Edition:

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

Bedrock Edition:

See Bedrock Edition level format/Entity format.

Video[edit | edit source]

History[edit | edit source]

This section is missing information about: early history. 
Please expand the section to include this information. Further details may exist on the talk page.
?Added entities.
Java Edition Infdev
20100227-1Removed entities.
?Reimplemented entity display.
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.[2]
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[edit | edit source]

Issues relating to "Entity" are maintained on the bug tracker. Issues should be reported and viewed there.

See also[edit | edit source]

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

References[edit | edit source]

Navigation[edit | edit source]