| Name | entity steps on block |
| Event Lines | entity steps on block
<entity> steps on <material> |
| Triggers | when a non-player entity steps onto a specific block material. For players, use Event:player steps on block. |
| Example |
on entity steps on block:
- announce "<context.entity.name> stepped on a <context.location.material.name>!"
|
| Example |
on sheep steps on block:
- announce "A sheep has stepped on a <context.location.material.name>!"
|
| Example |
on sheep steps on diamond_block:
- announce "A sheep has stepped on a diamond block! Must be a wealthy sheep!"
|
| Contexts | <context.entity> returns an EntityTag of the entity stepping onto the block.
<context.location> returns a LocationTag of the block the entity is stepping on.
<context.previous_location> returns a LocationTag of where the entity was before stepping onto the block.
<context.new_location> returns a LocationTag of where the entity is now.
|
| Cancellable | True - This adds <context.cancelled> and determine 'cancelled' or 'cancelled:false' |
| Has Location | True - This adds the switches 'in:<area>', 'location_flagged:<flag>', ... |
| Group | Paper |
| Requires | Paper |
| Warning(s) | This event may fire very rapidly. |
| Source | https://github.com/DenizenScript/Denizen/blob/dev/paper/src/main/java/com/denizenscript/denizen/paper/events/EntityStepsOnScriptEvent.java#L15 |