Skip to content
Flint
Documentation

entity

typePaper

Any entity: a mob, an item, a player...

Also has everything from sender.

Properties 16

entity.uuid: text
read-onlyPaper

Unique id.

entity.type: text
read-onlyPaper

Entity type, such as zombie.

entity.name: text
read-onlyPaper

Name of the entity.

Where the entity is.

entity.world: world
read-onlyPaper

The world the entity is in.

False once the entity is removed or dead.

True if the entity is a player.

Name tag shown above the entity.

Whether the entity has a glowing outline.

Whether gravity pulls the entity down.

Whether the entity makes no sounds.

Whether the entity cannot be hurt.

Ticks the entity keeps burning (0 is not on fire).

True if the entity is standing on a block.

Entities riding this one.

What the entity is riding, or none.

Methods 9

Teleports the entity (to a location, entity or block).

Removes the entity from the world.

Sets the entity's velocity, e.g. player.push(0, 1, 0) launches upwards.

Other entities within a radius.

Makes this entity ride another one.

Throws off every passenger.

Custom data saved on the entity with set_tag, or none.

Saves custom data on the entity (text, number, list, map). none removes it. Survives restarts.

Runs a function on the thread that owns this entity. Needed on Folia when acting on a player from 'every' or from another player's event.

Also has everything from sender