Modify Block Harvestable
Modifies whether a block should be harvestable by the player holding the power or not.
Type ID: kaya:modify/block/harvestable
Info
This type provides the following context parameters:
| Parameter | Description |
|---|---|
kaya:mining_block |
The block being mined by the player. |
Format
| Field | Type | Default | Description |
|---|---|---|---|
allow |
Boolean Provider | Determines whether the player is allowed to harvest the block. | |
priority |
Integer | 0 |
Determines the order of which powers of this type is checked. |
About priorities
The instances of this type will be sorted in its reversed natural order meaning that instances that have a higher priority value will be checked first before those that have lower priority values.
Example
{
"type": "kaya:modify/block/harvestable",
"allow": true,
"active_condition": {
"type": "kaya:check_block_type",
"key": "minecraft:gold_block",
"block": "mining_block"
}
}
This example will make Gold blocks harvestable, regardless if the player is holding any item or not.
History
| Minecraft | Mod | Changelog |
| 1.21.5 | 0.1.0 | Added the type. |