minecraft:inside_block_notifier for you with a switch.Get GodCraftOverview
minecraft:inside_block_notifier is an entity component: it goes in the components object of a custom mob, or in one of its component groups. Fires events when the entity enters or leaves any of the listed blocks.
Fields
| Field | Type | Default | Description |
|---|---|---|---|
block_list | List | none | Blocks to watch, with optional states and the enter and exit events. |
Example
Inside the components object of BP/entities/<name>.json (values are the defaults or placeholders):
BP/entities/<name>.json
{
"minecraft:inside_block_notifier": {
"block_list": {}
}
}