Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- @EventHandler (priority = EventPriority.HIGHEST, ignoreCancelled = true)
- public void onEntityChangeBlock(EntityChangeBlockEvent event){
- if(event.getEntity() instanceof FallingBlock){
- FallingBlock sand = (FallingBlock) event.getEntity(); // May not be sand
- sand.setDropItem(false);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment