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 656 mechanisms...
Namemax_temper
ObjectEntityTag
InputElementTag(Number)
Related Tags<EntityTag.max_temper> (Property) Returns the upper-bound for a horse-type entity's chance to be tamed. (...)
Description(Property) Sets the upper-bound for a horse-type entity's chance to be tamed.

When a player mounts an entity, a number between 0 and the entity's max temper is generated.
The entity becomes tamed if this value is less than the entity's temper value.
Otherwise, the player gets bucked and increases the entity's temper by 5.

Because an entity must have a level to reach before it can be tamed, value must be 1 or higher.
Default value for llamas and trader llamas is 30.
Default value for all other entities is 100.

To control the entity's current temper, see Mechanism:EntityTag.temper.
To automatically tame an entity, see Mechanism:EntityTag.tame.
Generated Example
- adjust <player> max_temper:3
GroupProperties
Sourcehttps://github.com/DenizenScript/Denizen/blob/dev/plugin/src/main/java/com/denizenscript/denizen/objects/properties/entity/EntityMaxTemper.java#L10