diff --git a/src/main/java/net/aufdemrand/denizen/scripts/containers/core/WorldScriptHelper.java b/src/main/java/net/aufdemrand/denizen/scripts/containers/core/WorldScriptHelper.java index 11837ed3e0..66d070923c 100644 --- a/src/main/java/net/aufdemrand/denizen/scripts/containers/core/WorldScriptHelper.java +++ b/src/main/java/net/aufdemrand/denizen/scripts/containers/core/WorldScriptHelper.java @@ -167,6 +167,24 @@ public static String doEvents(List eventNames, dNPC npc, Player player, // BLOCK EVENTS ///////////////// + // <--[event] + // @Events + // player breaks block + // player breaks + // player breaks block with + // player breaks with + // + // @Triggers when a player breaks a block. + // @Context + // will return the location the block was broken at. + // will return the material of the block that was broken. + // + // @Determine + // CANCELLED to stop the block from breaking. + // NOTHING to make the block drop no items. + // dList(dItem) to make the block drop a specified list of items. + // + // --> @EventHandler public void blockBreak(BlockBreakEvent event) { @@ -230,6 +248,20 @@ else if (Argument.valueOf(determination).matchesArgumentList(dItem.class)) { } } + // <--[event] + // @Events + // block burns + // burns + // + // @Triggers when a block is destroyed by fire. + // @Context + // will return the location the block was burned at. + // will return the material of the block that was burned. + // + // @Determine + // CANCELLED to stop the block from being destroyed. + // + // --> @EventHandler public void blockBurn(BlockBurnEvent event) { @@ -247,6 +279,20 @@ public void blockBurn(BlockBurnEvent event) { event.setCancelled(true); } + // <--[event] + // @Events + // block ignites + // ignites + // + // @Triggers when a block is destroyed by fire. + // @Context + // will return the location the block was burned at. + // will return the material of the block that was burned. + // + // @Determine + // CANCELLED to stop the block from being destroyed. + // + // --> @EventHandler public void blockIgnite(BlockIgniteEvent event) {