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<LocationTag.sherds>
ReturnsMapTag
MechanismLocationTag.sherds
DescriptionReturns a decorated pot's sherds as a map of sides to ObjectType:MaterialTags of the sherds.
The map will always contain every side, with a brick being the default value for when a side has no sherd.
Valid sides are: 🔗https://hub.spigotmc.org/javadocs/spigot/org/bukkit/block/DecoratedPot.Side.html.
Valid sherd materials are either a brick or any pottery sherd.
Example
# Tells the player if they're looking at a pot that has any sherds.
- if <player.cursor_on.sherds.values.contains_match[!brick].if_null[false]>:
  - narrate "That pot has sherds in it! You should check!"
- else:
  - narrate "Try looking somewhere else."
Sourcehttps://github.com/DenizenScript/Denizen/blob/dev/plugin/src/main/java/com/denizenscript/denizen/objects/LocationTag.java#L4346