Entity Inside Block (Event) — SkBee
Addon: SkBee · Category: Event · Since: 3.4.0
Syntax
[on] entity inside blockDescription
Called when an entity enters the hitbox of a block. Only called for blocks that react when an entity is inside. If cancelled, any action that would have resulted from that entity being in the block will not happen (such as extinguishing an entity in a cauldron). Currently called for: Big dripleaf, Bubble column, Buttons, Cactus, Campfire, Cauldron, Crops, Ender Portal, Fires, Frogspawn, Honey, Hopper, Detector rails, Nether portals, Pitcher crop, Powdered snow, Pressure plates, Sweet berry bush, Tripwire, Waterlily, Web, Wither rose
Event Values
- event-block
- event-commandsender
- event-entity
- event-entitydata
- event-location
- event-world
Examples
on entity inside block:
if event-block is a cactus:
cancel event
broadcast "OUCHIE"