Skip to content

In Block

apace100 edited this page Mar 10, 2021 · 3 revisions

Entity Condition. Checks whether the player is in a block (at the player's lower body half) that matches a specified block condition.

Type ID: origins:in_block

Fields:

block_condition, Block Condition: The block condition which is applied to the block at the player's lower body half.

Example:

"condition": {
  "type": "origins:in_block",
  "block_condition": {
    "type": "origins:and",
    "conditions": [
      {
        "type": "origins:block",
        "block": "minecraft:sand"
      },
      {
        "type": "origins:offset",
        "y": 1,
        "condition": {
          "type": "origins:block",
          "block": "minecraft:sand"
        }
      }
    ]
  }
}

This condition applied to a power will make sure it's only active while the player is buried in sand.

Clone this wiki locally