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 622 mechanisms...
Namein_water_duration
ObjectEntityTag
InputElementTag(Boolean)
Related Tags<EntityTag.in_water_duration> If the entity is a zombie mob, returns the duration of time the zombie has been in water for. (...)
DescriptionIf the entity is a zombie mob, sets the duration of time the zombie has been in water for.
If this value exceeds 600 ticks, the zombie will begin converted to a Drowned mob.
See also Mechanism:EntityTag.conversion_duration
Generated Example
- adjust <player> in_water_duration:true
Sourcehttps://github.com/DenizenScript/Denizen/blob/dev/plugin/src/main/java/com/denizenscript/denizen/objects/properties/entity/EntityInWaterTime.java#L67