Material
A property type for storing a specific Minecraft material type.
The Material property type stores a reference to a Minecraft material, such as DIAMOND, OAK_LOG, or STONE_SWORD. It does not store item details like name, amount, or enchantments—only the base type.
- Default Value:
AIR
Common Use Cases
- Storing a player's block selection for a building game.
- A quest where a player must find and interact with a specific type of block.
- Randomly selecting a block type from a list to be used in a
Change Blockaction.
Operators (in Change Property action)
- Set: Sets the property to a specific material chosen from a menu.
Checks (in Property Condition)
- Equals: Checks if the stored material is the same as another material.