Skip to content
Flint
Dokumentation

entity

typePaper

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

Har også alt fra sender.

Egenskaber 16

entity.uuid: text
skrivebeskyttetPaper

Unique id.

entity.type: text
skrivebeskyttetPaper

Entity type, such as zombie.

entity.name: text
skrivebeskyttetPaper

Name of the entity.

entity.location: location
skrivebeskyttetPaper

Where the entity is.

entity.world: world
skrivebeskyttetPaper

The world the entity is in.

entity.is_valid: bool
skrivebeskyttetPaper

False once the entity is removed or dead.

entity.is_player: bool
skrivebeskyttetPaper

True if the entity is a player.

Name tag shown above the entity.

entity.glowing: bool
kan ændresPaper

Whether the entity has a glowing outline.

entity.gravity: bool
kan ændresPaper

Whether gravity pulls the entity down.

entity.silent: bool
kan ændresPaper

Whether the entity makes no sounds.

Whether the entity cannot be hurt.

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

entity.on_ground: bool
skrivebeskyttetPaper

True if the entity is standing on a block.

entity.passengers: list
skrivebeskyttetPaper

Entities riding this one.

entity.vehicle: entity
skrivebeskyttetPaper

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.

Har også alt fra sender