Denizen Script Tags


Tags are always written with a <between these marks>, and are critical to scripts, as the primary way to read data.
Learn about how tags work in The Beginner's Guide.


Showing 1 out of 2437 tags...
Name<ItemTag.trim>
ReturnsMapTag
MechanismItemTag.trim
Description(Property) An armor item's trim.
Allowed keys: material, pattern.
Valid material values can be found here: 🔗https://hub.spigotmc.org/javadocs/spigot/org/bukkit/inventory/meta/trim/TrimMaterial.html
Valid pattern values can be found here: 🔗https://hub.spigotmc.org/javadocs/spigot/org/bukkit/inventory/meta/trim/TrimPattern.html
Valid values also include ones added by datapacks, plugins, etc. as a namespaced key.
For the mechanism, if an item already has a trim, you can omit either material or pattern to keep the original data while also changing the other option.
For example, if you only want to change the pattern and not the material, you can omit the material, and it will use the already existing material.
Generated Example
- foreach <player.item_in_hand.trim> key:key as:val:
    - narrate "<[key]> is set as <[val]>"
GroupProperties
Sourcehttps://github.com/DenizenScript/Denizen/blob/dev/plugin/src/main/java/com/denizenscript/denizen/objects/properties/item/ItemTrim.java#L16