1. Wiki
  2. /Entities
  3. /minecraft:inside_block_notifier

minecraft:inside_block_notifier

Don't want to write this by hand? GodCraft sets minecraft:inside_block_notifier for you with a switch.Get GodCraft

Overview

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

FieldTypeDefaultDescription
block_listListnoneBlocks 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": {}
  }
}

We use cookies to improve your experience and analyse site traffic. Learn more