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 2454 tags...
Name<ItemTag.effects_data>
ReturnsListTag(MapTag)
MechanismItemTag.potion_effects
DescriptionReturns a list of all potion effects on this item, in the same format as the MapTag input to the mechanism.
This applies to Potion items, Tipped Arrow items, and Suspicious Stews.
Note that for potions or tipped arrows (not suspicious stew) the first value in the list is the potion's base type.
All subsequent entries are effect data.
Generated Example
- foreach <player.item_in_hand.effects_data> as:entry:
    - narrate "found <[entry]>"
Groupproperties
Sourcehttps://github.com/DenizenScript/Denizen/blob/dev/plugin/src/main/java/com/denizenscript/denizen/objects/properties/item/ItemPotion.java#L218