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

NameTypeDescription
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

KeyTypeDefaultDescription
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.

  1. Add a Material node, set name to minecraft:diamond_ore
  2. Connect Material → name → Compare (block output from Block Break Trigger)
  3. Execute custom logic on the true branch