Skip to main content

Prevent Block Use (Power Type)

Stops the player who has the power from using blocks, meaning they can't interact with a block by right-clicking it.

Type ID: apoli:prevent_block_use

Fields

FieldTypeDefaultDescription
block_conditionBlock Condition TypeIf set, only blocks that pass this condition are affected.

The power covers both halves of a right-click: using the block itself, like opening a chest, and using an item on it, like bonemealing a crop. It also applies on the client, so the game never predicts the interaction and nothing flickers.

Examples

{
    "type": "apoli:prevent_block_use",
    "block_condition": {
      "type": "apoli:block",
      "block": "minecraft:crafting_table"
    }
}

This stops the player from using crafting tables.