Skip to content
Flint
Dokumentation

living

typePaper

An entity with health.

Har også alt fra sender, entity.

Egenskaber 5

living.health: number
kan ændresPaper

Current health (20 is ten hearts).

living.max_health: number
skrivebeskyttetPaper

Maximum health.

living.is_dead: bool
skrivebeskyttetPaper

True if dead.

living.ai: bool
kan ændresPaper

Whether the mob moves and attacks on its own.

living.target: entity
kan ændresPaper

What a mob is attacking, or none.

Metoder 6

Deals damage.

Heals fully, or by an amount.

Kills the entity.

Gives a potion effect, e.g. mob.effect("slowness", 10 seconds, 2).

True if the entity has that potion effect.

Removes one potion effect, or all of them.

Har også alt fra sender

Har også alt fra entity