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 673 mechanisms...
Namefake_health
ObjectPlayerTag
InputElementTag(Decimal)(|ElementTag(Number)(|ElementTag(Decimal)))
DescriptionShows the player a fake health bar, with a number between 0 and 20, where 1 is half of a heart.
Use with no input value to reset to the player's normal health.
Optionally, you can specify a fake food level, between 0 and 20.
You can also optionally specify a food saturation level between 0 and 10.
For example:
- adjust <player> fake_health:1
- adjust <player> fake_health:10|15
- adjust <player> fake_health:<player.health>|3|0
Sourcehttps://github.com/DenizenScript/Denizen/blob/dev/plugin/src/main/java/com/denizenscript/denizen/objects/PlayerTag.java#L3488