Data / Materials
data/material
Material
Resolves and validates a Bukkit material name.
Note: Use minecraft: namespaced IDs (e.g. minecraft:diamond) or Bukkit enum names (e.g. DIAMOND). The name output always returns the canonical Bukkit enum name.
Outputs
| Name | Type | Description |
|---|---|---|
name |
string | Canonical Bukkit enum name (e.g. DIAMOND, STONE). |
found |
boolean | True if the name matched a known Bukkit Material. |
isBlock |
boolean | True if this material can be placed as a block in the world. |
isItem |
boolean | True if this material can exist as an item in an inventory. |
Properties
| Key | Type | Default | Description |
|---|---|---|---|
material |
string | "minecraft:stone" |
Material name (e.g. minecraft:diamond, DIAMOND). |
Examples
Check block material before breaking
Use a material constant to compare against a block-break trigger output.
- Add a Material node, set name to minecraft:diamond_ore
- Connect Material → name → Compare (block output from Block Break Trigger)
- Execute custom logic on the true branch