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 632 mechanisms...
Namesherds
ObjectLocationTag
InputMapTag
Related Tags<LocationTag.sherds> Returns a decorated pot's sherds as a map of sides to ObjectType:MaterialTags of the sherds. (...)
DescriptionSets a decorated pot's sherds, input is a map of sides to ObjectType:MaterialTags of the sherds.
You only need to specify the sides you want to set, and the default value (for removing a side's sherd) is a brick.
Valid sides are: 🔗https://hub.spigotmc.org/javadocs/spigot/org/bukkit/block/DecoratedPot.Side.html.
Valid materials are either a brick or any pottery sherd.
Example
# Sets a decorated pot's left side to a random sherd.
- adjust <[potLocation]> sherds:[left=<server.vanilla_tagged_materials[decorated_pot_sherds].random>]
Example
# Removes a decorated pot's sherds.
- adjust <[potLocation]> sherds:[left=brick;right=brick;front=brick;back=brick]
Sourcehttps://github.com/DenizenScript/Denizen/blob/dev/plugin/src/main/java/com/denizenscript/denizen/objects/LocationTag.java#L4373