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...
Namevanilla_tags
ObjectMaterialTag
InputListTag
Related Tags<MaterialTag.vanilla_tags> Returns a list of vanilla tags that apply to this material. See also 🔗https://minecraft.wiki/w/Tag.
DescriptionSets a material's vanilla tags.
Any tag name will be accepted - meaning, any tag name input will be added to the material, regardless of whether it previously existed or not.
Note that this gets reset once server resources are reloaded (see Event:server resources reloaded).
Example
# Adds the guarded_by_piglins tag to Netherrack, without removing its other tags.
- adjust <material[netherrack]> vanilla_tags:<material[netherrack].vanilla_tags.include[guarded_by_piglins]>
Example
# Removes the dead_bush_may_place_on tag from <[material]>, while keeping its other tags.
- adjust <[material]> vanilla_tags:<[material].vanilla_tags.exclude[dead_bush_may_place_on]>
Example
# Removes all vanilla tags from <[material]>, leaving it with only the wither_summon_base_blocks tag.
- adjust <[material]> vanilla_tags:wither_summon_base_blocks
Sourcehttps://github.com/DenizenScript/Denizen/blob/dev/plugin/src/main/java/com/denizenscript/denizen/objects/MaterialTag.java#L706