Entity

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

General behavior
All entities have these properties:
 * A position, velocity, and rotation (as according to ordinary Newtonian physics).
 * A specific volume they occupy, which is a 3-dimensional box with a fixed height and width (square when viewed from the top, and not rotating).
 * Current health.
 * Whether they are on fire. Fire reduces health gradually and displays flames covering the entity.
 * Effects, caused mainly by splash potions. Spiders can also spawn with effects when playing on hard mode.

Most entities can be pushed around by water currents.

Entities cannot pass through solid blocks. 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. Also, if an entity does overlap a block, (due to falling sand or a door being swung), 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 will turn black (since solid blocks always have a light level of 0); arrows are also sometimes seen to turn black (especially if fired shallowly into the ceiling).

Types of entities
The following types of entities currently exist in Minecraft.

Entities listed as “solid” obstruct the passage of other entities.

The size is in block lengths (usually considered to be 1 meter), and is the size of an axis-aligned bounding box with the specified width in both horizontal dimensions (X and Z) and the specified height in the Y dimension. This box does not rotate as the object rotates visually.

For a listing of numeric entity IDs, see Data values.

Motion of entities
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.

Note that when thrown objects and arrows are simulated, the drag is applied before the acceleration, rather than after; this is why their terminal velocities are whole numbers where the others aren't.

Further notes
Item frames, paintings, Armor stands, Ender Crystals and lead knots are entities, but they are unusual in that they are aligned to the block grid and completely immobile. Doors, portals, chests, and beds, the other objects larger than a single block, are actually groups of adjacent blocks.

Arrows, TNT and falling sand (and its variants) are assumed to have infinite health because they are not destroyed by multiple TNT explosions (they can be fired out of cannons), nor by being on fire for long periods.

Boats and Minecarts

 * See also: Transportation (contains information about speeds)

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

Falling Blocks
The following description refers to sand for brevity, but gravel, anvils, and dragon eggs behave in exactly the same way.

Sand normally exists as a block. When a sand block's support is removed, it turns into a sand entity and falls down until it hits another object, at which point it places itself as a block in the nearest on-grid position, or turns into a sand resource if that position is occupied. While sand ordinarily falls straight down, it can be redirected while falling by explosions and pistons. It is also possible to modify the velocity and direction of falling sand by using third party programs.

If when the world is created, a cave is generated underneath sand, Minecraft will fail to update the block (as said in the code to not make sand fall when it is generated) and the sand will remain floating until a block is changed under, above, or beside it. This latter fact means that a single falling sand block can trigger the collapse of an entire region of sand; therefore, sand ceilings should not be disturbed unless one is outside the area, standing over a torch, or prepared to dig out quickly once the sand has fallen.

Right-clicking
Entities with right-click actions (boats, minecarts, ocelots, villagers and wolves), unlike blocks with right-click actions (such as chests), do not stop the right-click action of a tool you are holding. For example, if you right-click on a tamed wolf with a water bucket in your hand, the wolf will sit, but you will also empty the bucket at the wolf.

Riding
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. The currently possible combinations in vanilla survival are:


 * A mob or player in a minecart or boat.
 * A player on a saddled pig.
 * A skeleton on a spider (Spider Jockey).
 * A player on a horse.
 * A mob on a lead.
 * A baby zombie (pigman) (villager) on a chicken (Chicken Jockey).

It is possible to have multiple levels, such as a player on a pig in a minecart.

Entities can also be stacked on top of each other with the command.

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. Since Minecraft smooths out movements by showing entities at locations between new and old positions, this may result in seeing the entity at several locations between riding the other entity and their teleport location.