Name | MaterialTag |
Prefix | m@ |
Base Type | ElementTag |
Implements | FlaggableObject, PropertyHolderObject |
Identity Format | The identity format for materials is the material type name.
For example, 'm@stick'. |
Description | A MaterialTag represents a material (a type of block or item).
Block materials may sometimes also contain property data, for specific values on the block material such as the growth stage of a plant or the orientation of a stair block. Material types: https://hub.spigotmc.org/javadocs/spigot/org/bukkit/Material.html. This object type is flaggable. Flags on this object type will be stored in the server saves file, under special sub-key "__materials" |
Matchable | MaterialTag matchers, sometimes identified as "<material>", associated with "<block>":
"material" plaintext: always matches. "block" plaintext: matches if the material is a block-type material. "item" plaintext: matches if the material is an item-type material. "material_flagged:<flag>": a Flag Matchable for MaterialTag flags. "vanilla_tagged:<tag_name>": matches if the given vanilla tag applies to the material. Allows advanced matchers, for example: "vanilla_tagged:mineable*". If none of the above are used, uses an advanced matcher for the material name, like "stick". |
Source | https://github.com/DenizenScript/Denizen/blob/dev/plugin/src/main/java/com/denizenscript/denizen/objects/MaterialTag.java#L35 |