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 644 mechanisms...
Nameinstrument
ObjectItemTag
InputElementTag
Related Tags<ItemTag.instrument> (Property) A goat horn's instrument, if any. (...)
Description(Property) A goat horn's instrument, if any.
Goat horns will default to playing "ponder_goat_horn" when the instrument is unset, although this is effectively random and shouldn't be relied on.
Valid instruments are: admire_goat_horn, call_goat_horn, dream_goat_horn, feel_goat_horn, ponder_goat_horn, seek_goat_horn, sing_goat_horn, yearn_goat_horn.
For the mechanism: provide no input to unset the instrument.
Example
# This can narrate: "This horn has the ponder_goat_horn instrument!"
- narrate "This horn has the <player.item_in_hand.instrument> instrument!"
Example
# Forces the player's held item to play seek_goat_horn instead of whatever it played before.
# Would break if the player isn't holding a goat horn.
- inventory adjust slot:hand instrument:seek_goat_horn
GroupProperties
Sourcehttps://github.com/DenizenScript/Denizen/blob/dev/plugin/src/main/java/com/denizenscript/denizen/objects/properties/item/ItemInstrument.java#L12