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 651 mechanisms...
Nameshear
ObjectEntityTag
InputNone
DescriptionShears entities in the same way as a player can do using shears, including drops.
If the entity is not ready to be sheared, there will be no drops but the sound will still play.

This mech will:
- Shear a sheep
- harvest a bogged
- harvest a mushroom cow (note: entity data will be lost as Minecraft will remove the entity and spawn an entirely new cow instead)
- derp a snowman (i.e. remove the pumpkin)

Optionally, specify a sound source to change the source of the sound.
Valid sound sources can be found here: 🔗https://jd.advntr.dev/api/latest/net/kyori/adventure/sound/Sound.Source.html.
Example
# Shears the entity you're looking at.
- adjust <player.target> shear
Grouppaper
Requirespaper
Sourcehttps://github.com/DenizenScript/Denizen/blob/dev/paper/src/main/java/com/denizenscript/denizen/paper/properties/PaperEntityExtensions.java#L190