Denizen Script Mechanisms


Mechanisms are found in object properties, the 'adjust' command, and similar. These are used to change the state of an object.
Learn about how mechanisms work in The Beginner's Guide.


Showing 1 out of 625 mechanisms...
Namemax_health
ObjectEntityTag
InputElementTag(Decimal)
Related Tags<EntityTag.health> Returns the current health of the entity.
<EntityTag.health_max> Returns the maximum health of the entity.
DescriptionSets the maximum health the entity may have.
The entity must be living.
Note to change the current health at the same time as max_health (might be needed when setting max health higher rather than lower),
use Mechanism:EntityTag.health_data.
Generated Example
- adjust <player> max_health:0
Sourcehttps://github.com/DenizenScript/Denizen/blob/dev/plugin/src/main/java/com/denizenscript/denizen/objects/properties/entity/EntityHealth.java#L176