Harvest Level
Checks whether the material of the item has a certain harvest level value. Refer to this page on the Minecraft Wiki for the harvest level of the materials (there it's called "mining level"). Items without a material are considered to have a harvest level of 0.
Type ID: origins:harvest_level
Fields:
Field | Type | Default | Description |
---|---|---|---|
comparison |
Comparison | How to compare the item's harvest level to the specified value. | |
compare_to |
Integer | Which value to compare the item's harvest level to. |
Example
"item_condition": {
"type": "origins:harvest_level",
"comparison": ">",
"compare_to": 1
}
This example checks if the item has a harvest level higher than 1, which is the value for stone tools.