Entity Documentation - minecraft:inside_block_notifier

Verifies whether the entity is inside any of the listed blocks.

Inside Block Notifier Properties

Name Default Value Type Description Example Values
block_list not set Array of strings List of blocks, with certain block states, that we are monitoring to see if the entity is inside. Boat: [{"block":{"name":"minecraft:bubble_column","states":{"drag_down":true}},"entered_block_event":{"event":"minecraft:entered_bubble_column_down","target":"self"},"exited_block_event":{"event":"minecraft:exited_bubble_column","target":"self"}},{"block":{"name":"minecraft:bubble_column","states":{"drag_down":false}},"entered_block_event":{"event":"minecraft:entered_bubble_column_up","target":"self"},"exited_block_event":{"event":"minecraft:exited_bubble_column","target":"self"}}]

Samples

Boat

"minecraft:inside_block_notifier": {
  "block_list": [
    {
      "block": {
        "name": "minecraft:bubble_column",
        "states": {
          "drag_down": true
        }
      },
      "entered_block_event": {
        "event": "minecraft:entered_bubble_column_down",
        "target": "self"
      },
      "exited_block_event": {
        "event": "minecraft:exited_bubble_column",
        "target": "self"
      }
    },
    {
      "block": {
        "name": "minecraft:bubble_column",
        "states": {
          "drag_down": false
        }
      },
      "entered_block_event": {
        "event": "minecraft:entered_bubble_column_up",
        "target": "self"
      },
      "exited_block_event": {
        "event": "minecraft:exited_bubble_column",
        "target": "self"
      }
    }
  ]
}