Elementium Sign in
Contents

Entities & mobs · Value

Entity health and max

An entity's health, its most, and how full it is as a percent.

Basic plan m.entity.health_of

In a flow

“When a player hurts a boss → Entity health and max → Update the boss bar to the percent.”

When a player hurts a boss → Entity health and max → Update the boss bar to the percent.

What it does

An entity's health, its most, and how full it is as a percent. It's a value node: no white pins, it works out its answer when a step wired to it needs it. It gives 3 values later steps can use. Find it under Entities & mobs in the palette.

When to use it

Use it when the flow needs to: an entity's health, its most, and how full it is as a percent.

When not to

For a value that never changes, type it into the setting instead of wiring a node.

Typical wiring

Sockets: settings you can wire

Entity Entity

The entity it's about: wire one in, like Entity from Spawn an entity.

What goes there: Type it in the side panel, or wire in an entity. e.g. Zombie

If it's empty: Optional. Left empty and unwired, the step runs without it.

Values it gives

Health Number

In half hearts. e.g. 14

If it's empty: Empty when the step didn't make one (it stopped early or was skipped); steps reading it get nothing.

Connects toAccount ageActive membersAddAdd answer to formAdd soundboard soundAdd timeAdd to a counterAdd to a leaderboardand 719 more

Max health Number

The most it can have. e.g. 20

If it's empty: Empty when the step didn't make one (it stopped early or was skipped); steps reading it get nothing.

Connects toAccount ageActive membersAddAdd answer to formAdd soundboard soundAdd timeAdd to a counterAdd to a leaderboardand 719 more

Percent Number

From 0 to 100. e.g. 70

If it's empty: Empty when the step didn't make one (it stopped early or was skipped); steps reading it get nothing.

Connects toAccount ageActive membersAddAdd answer to formAdd soundboard soundAdd timeAdd to a counterAdd to a leaderboardand 719 more

Often next

Related in Entities & mobs

Wires and sockets · Data values · Plans