Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- if(e.getBlockPlaced().getType() == Material.WOOL)
- {
- if(e.getBlockPlaced().getTypeId() == 15)
- {
- if(e.getBlock().getRelative(BlockFace.DOWN, 1).getType() == Material.WOOL)
- {
- if(e.getBlock().getRelative(BlockFace.DOWN, 1).getTypeId() == 15)
- {
- if(e.getBlock().getRelative(BlockFace.DOWN, 2).getType() == Material.WOOL)
- {
- if(e.getBlock().getRelative(BlockFace.DOWN, 2).getTypeId() == 15)
- {
- e.getBlock().getRelative(BlockFace.DOWN, 1).setType(Material.AIR);
- e.getBlock().getRelative(BlockFace.DOWN, 2).setType(Material.AIR);
- e.getBlockPlaced().setType(Material.AIR);
- e.getPlayer().getWorld().spawnCreature(e.getBlock().getRelative(BlockFace.DOWN, 2).getLocation(), CreatureType.ENDERMAN);
- }
- }
- }
- }
- }
- }
Add Comment
Please, Sign In to add comment