Advertisement
zuhir__

Break redstoneblock v2

Feb 17th, 2017
139
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.30 KB | None | 0 0
  1. on break redstone block:
  2. if player's tool is stone pickaxe:
  3. If player can hold 9 redstone:
  4. if data value of player's tool is equal to 131:
  5. cancel event
  6. set block to air
  7. give 9 redstone to player
  8. add 11 to level progress of player
  9. delete player's tool
  10. else:
  11. cancel event
  12. set block to air
  13. give 9 redstone to player
  14. add 1 to the data value of the player's tool
  15. add 11 to level progress of player
  16. else if player's tool is iron pickaxe:
  17. If player can hold 9 redstone:
  18. if data value of player's tool is equal to 250:
  19. cancel event
  20. set block to air
  21. give 9 redstone to player
  22. add 11 to level progress of player
  23. delete player's tool
  24. else:
  25. cancel event
  26. set block to air
  27. give 9 redstone to player
  28. add 1 to the data value of the player's tool
  29. add 11 to level progress of player
  30. else if player's tool is diamond pickaxe:
  31. If player can hold 9 redstone:
  32. if data value of player's tool is equal to 1561:
  33. cancel event
  34. set block to air
  35. give 9 redstone to player
  36. add 11 to level progress of player
  37. delete player's tool
  38. else:
  39. cancel event
  40. set block to air
  41. give 9 redstone to player
  42. add 1 to the data value of the player's tool
  43. add 11 to level progress of player
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement