| Name | hanging breaks because cause |
| Event Lines | <hanging> breaks (because <cause>) |
| Triggers | when a hanging entity (painting, item_frame, or leash_hitch) is broken. |
| Generated Examples | after hanging breaks because cause:
on hanging breaks because cause: |
| Contexts | <context.cause> returns the cause of the entity breaking. Causes: https://hub.spigotmc.org/javadocs/spigot/org/bukkit/event/hanging/HangingBreakEvent.RemoveCause.html.
<context.entity> returns the EntityTag that broke the hanging entity, if any.
<context.hanging> returns the EntityTag of the hanging.
|
| 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 | Entity |
| Source | https://github.com/DenizenScript/Denizen/blob/dev/plugin/src/main/java/com/denizenscript/denizen/events/entity/HangingBreaksScriptEvent.java#L16 |