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.components_patch>
ReturnsMapTag
MechanismItemTag.components_patch
Description(Property) Returns the item's internal component patch. That is, the changes in components on top of the item type's default components.
The map is in Language:Raw NBT Encoding format.
This is mainly intended for item data persistence, and scripts should prefer using proper item properties instead of setting raw data directly.
If you're trying to control custom data (such as data set by other plugins), use Property:ItemTag.custom_data.
Note that this is just data that isn't already controlled by other ItemTag properties, see Tag:ItemTag.full_components_patch for the complete component patch.
Generated Example
- foreach <player.item_in_hand.components_patch> key:key as:val:
    - narrate "<[key]> is set as <[val]>"
GroupProperties
Warning(s)Due to this being a direct representation of internal data, compatibility for script usage across versions is not guaranteed.
Sourcehttps://github.com/DenizenScript/Denizen/blob/dev/plugin/src/main/java/com/denizenscript/denizen/objects/properties/item/ItemComponentsPatch.java#L21