Guest User

Untitled

a guest
Jan 19th, 2019
98
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.81 KB | None | 0 0
  1. if(e.getBlockPlaced().getType() == Material.WOOL)
  2. {
  3. if(e.getBlockPlaced().getTypeId() == 15)
  4. {
  5. if(e.getBlock().getRelative(BlockFace.DOWN, 1).getType() == Material.WOOL)
  6. {
  7. if(e.getBlock().getRelative(BlockFace.DOWN, 1).getTypeId() == 15)
  8. {
  9. if(e.getBlock().getRelative(BlockFace.DOWN, 2).getType() == Material.WOOL)
  10. {
  11. if(e.getBlock().getRelative(BlockFace.DOWN, 2).getTypeId() == 15)
  12. {
  13. e.getBlock().getRelative(BlockFace.DOWN, 1).setType(Material.AIR);
  14. e.getBlock().getRelative(BlockFace.DOWN, 2).setType(Material.AIR);
  15. e.getBlockPlaced().setType(Material.AIR);
  16. e.getPlayer().getWorld().spawnCreature(e.getBlock().getRelative(BlockFace.DOWN, 2).getLocation(), CreatureType.ENDERMAN);
  17. }
  18. }
  19. }
  20. }
  21. }
  22. }
Add Comment
Please, Sign In to add comment