Prevent Block Selection - apace100/origins-fabric GitHub Wiki

Power Type. Prevents the selection (i.e. targetting) of blocks for a player. This means they are not able to mine them, and attacks, interactions, etc. will pass through the block to whatever's behind it.

Type ID: origins:prevent_block_selection

Fields:

block_condition, Block Condition, optional: When set, only blocks which meet this condition will be unable to be selected.

Example:

{
    "type": "origins:prevent_block_selection",
    "block_condition": {
      "type": "origins:in_tag",
      "tag": "origins:cobwebs"
    },
    "condition": {
      "type": "origins:sneaking",
      "inverted": true
    }
}

This power will prevent the selection of cobweb, allowing to punch through them, unless they sneak.