minecraft:inside_block_notifier

Dynamic value

Properties

This component has no properties in the official schema: add it as an empty object {} to switch the behaviour on.

Example from the game files

This is how vanilla Boat uses it in Minecraft Bedrock 1.26.60.5:

{
  "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"
        }
      }
    ]
  }
}

Used by 2

Vanilla entities with minecraft:inside_block_notifier in their definition:

Related components