minecraft:peek

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 Shulker uses it in Minecraft Bedrock 1.26.60.5:

{
  "minecraft:peek": {
    "on_close": {
      "event": "minecraft:on_close"
    },
    "on_open": {
      "event": "minecraft:on_open"
    },
    "on_target_open": {
      "event": "minecraft:on_open"
    }
  }
}

Used by 1

Vanilla entities with minecraft:peek in their definition:

Related components