Entity

15 nodes in this category.

Get Entity Health paper/entity_health

Returns an entity's health, max health, and dead state.

In: entity Out: health, maxHealth, isDead
Set Entity Health paper/entity_set_health

Sets, kills, or damages an entity.

In: exec, entity, health Out: exec
Entity Type paper/entity_type

Returns information about an entity's type and name.

In: entity Out: typeName, isPlayer, isLiving, name
Entity Location paper/entity_location

Returns an entity's current location and coordinates.

In: entity Out: location, x, y, z, world
Entity Velocity paper/entity_velocity

Gets or sets an entity's velocity vector.

In: exec, entity, velocity Out: exec, velocity
Entity Name paper/entity_name

Gets or sets the custom display name of an entity. Supports & colour codes.

In: exec, entity, name Out: exec, name
Damage Entity paper/entity_damage

Deals a specified amount of damage to a living entity.

In: exec, entity, amount Out: exec, newHealth
Remove Entity paper/entity_remove

Removes (despawns) an entity from the world without triggering death drops or death events.

In: exec, entity Out: exec
Apply Effect paper/entity_effect

Applies a potion effect to a living entity for a given duration.

In: exec, entity, effect, duration, amplifier Out: exec
Entity AI paper/entity_ai

Enables or disables the AI of a living entity. Entities with AI disabled stand still and do not attack.

In: exec, entity, enabled Out: exec, hasAI
Entity Equipment paper/entity_equipment

Gets or sets an equipment slot on a living entity (armour, held item, etc.).

In: exec, entity, item, slot Out: exec, item
Entity Teleport paper/entity_teleport

Teleports any entity (including players) to a location.

In: exec, entity, location Out: exec, entity
Entity UUID paper/entity_uuid

Gets the UUID string and type name of any entity.

In: entity Out: uuid, entityType
Entity Persistent Data paper/entity_pdc

Reads or writes custom persistent data stored on an entity (survives server restarts).

In: exec, entity, key, value Out: exec, value, has
Is Player paper/is_player

Checks whether an entity is a player and extracts the Player reference if so.

In: entity Out: isPlayer, player