turt2live

Untitled

Feb 25th, 2013
172
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.30 KB | None | 0 0
  1.     @EventHandler (priority = EventPriority.HIGHEST, ignoreCancelled = true)
  2.     public void onEntityChangeBlock(EntityChangeBlockEvent event){
  3.         if(event.getEntity() instanceof FallingBlock){
  4.             FallingBlock sand = (FallingBlock) event.getEntity(); // May not be sand
  5.             sand.setDropItem(false);
  6.         }
  7.     }
Advertisement
Add Comment
Please, Sign In to add comment