Skip to content

Breaking Block

Entity Condition Type

Checks if the player is currently breaking a block.

Type ID: eggolib:breaking_block

Fields

Field Type Default Description
block_condition Block Condition Type optional If specified, the condition will only evaluate to true if this condition is fulfilled by the block being broken.
using_effective_tool Boolean false Determines if the condition should check if the player is using the effective tool for the block being broken.

Examples

"condition": {
    "type": "eggolib:breaking_block",
    "block_condition": {
        "type": "apoli:block",
        "block": "minecraft:diamond_block"
    }
}

This example will check if the player is currently mining a Diamond Block.

"condition": {
    "type": "eggolib:breaking_block",
    "using_effective_tool": true
}

This example will check if the player is currently mining a block using its effective tool.