Dokumentation
entity
Any entity: a mob, an item, a player...
Har også alt fra sender.
Egenskaber 16
Unique id.
Entity type, such as zombie.
Name of the entity.
Where the entity is.
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.
Metoder 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.