Skip to content
Flint
Documentation

living

typePaper

An entity with health.

Also has everything from sender, entity.

Properties 5

Current health (20 is ten hearts).

Maximum health.

living.is_dead: bool
read-onlyPaper

True if dead.

living.ai: bool
settablePaper

Whether the mob moves and attacks on its own.

What a mob is attacking, or none.

Methods 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.

Also has everything from sender

Also has everything from entity