Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- case 1:
- event.setCancelled(true);
- block.setType(Material.AIR);
- block.getWorld().dropItem(block.getLocation(), new ItemStack(Material.IRON_INGOT));
- break;
- case 2:
- event.setCancelled(true);
- block.setType(Material.AIR);
- block.getWorld().dropItem(block.getLocation(), new ItemStack(Material.GOLD_INGOT));
- break;
- case 3:
- event.setCancelled(true);
- block.setType(Material.AIR);
- block.getWorld().dropItem(block.getLocation(), new ItemStack(Material.GLASS));
- break;
- case 4:
- event.setCancelled(true);
- block.setType(Material.AIR);
- block.getWorld().dropItem(block.getLocation(), new ItemStack(Material.STONE));
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement