Skip to content

Entity Has Correct Tool For Block

Checks if an entity has the correct tool for a block.

Type ID: kaya:entity_has_correct_tool_for_block

Format

Field Type Default Description
entity Entity Provider The entity to check if it has the correct tool for the block.
block Block Provider The block to check if the tool is correct for.

Example

{
    "type": "kaya:entity_has_correct_tool_for_block",
    "entity": "this",
    "block": "mining_block"
}

This example will check if the entity provided by the kaya:this_entity context parameter has the correct tool for the block provided by the kaya:mining_block context parameter.

History

Minecraft Mod Changelog
1.21.5 0.1.0 Added the type.