MostFunGuy

Untitled

Jan 22nd, 2014
111
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.55 KB | None | 0 0
  1. options:
  2. pre:<gold>[<yellow>Mines!<gold>] <yellow>
  3.  
  4.  
  5.  
  6.  
  7. on place of stone pressure plate:
  8. lore of player's tool contains "mine":
  9. set {minelocations::%block's location%} to the block's location
  10. set {mineplayer::%block's location%} to the player
  11. set {mineplayername::%block's location%} to the player's display name
  12.  
  13. message "{@pre}Mine set!" to player
  14.  
  15. on break of stone pressure plate:
  16. if {minelocations::%block's location%} is set:
  17. clear {mineplayer::%block's location%}
  18. clear {minelocations::%block's location%}
  19. clear {mineplayername::%block's location%}
  20.  
  21.  
  22. on stepping on a pressure plate:
  23. player is not sneaking:
  24. #message "%{mineplayer::%block's location%}%" to player
  25. if {mineplayer::%block's location%} is set:
  26. #message "Location set!!!" to player
  27. if {mineplayer::%block's location%} is not the player:
  28. #message "not the player!!!!" to player
  29. if {minelocations::%block's location%} is set:
  30. #message "BOOM" to player
  31. set the block to air
  32.  
  33. create a safe explosion of force 1 at the player
  34.  
  35. make a fake explosion at the block
  36.  
  37. set {_randnum} to a random number between 1 and 5
  38. damage the player by {_randnum}
  39.  
  40. clear {minelocations::%block's location%}
  41. clear {mineplayer::%block's location%}
  42. clear {mineplayername::%block's location%}
  43.  
  44.  
  45. on right click on pressure plate:
  46. message "{@pre}Mine owner: <gold>%{mineplayername::%block's location%}%"
  47. player's tool is any hoe:
  48. lore of player's tool contains "disarm":
  49. set block to air
  50. drop a stone pressure plate at the block
  51.  
  52. clear {mineplayer::%block's location%}
  53. clear {minelocations::%block's location%}
  54. clear {mineplayername::%block's location%}
  55. message "{@pre}BLOCK DISARMED" to player
  56.  
  57.  
  58. command /recipeupdate:
  59. trigger:
  60. set {_mine} to named item stack from "stone pressure plate,<gold>Pressure Mine,<gold>Place this mine||<gold>to blow up||<gold>your enemies!"
  61. add 1 of {_mine} to the player's inventory
  62. message "%{_mine}%" to the player
  63. register new shapeless recipe for {_mine} using stone pressure plate, gunpowder, air, air, air, air, air, air, air
  64.  
  65. set {_grinding5} to named item stack from "iron ingot;<gold>Grinding Stone - Lvl 5;Combine this with a lvl 5 sword for ||a sharper sword!"
  66. register new shapeless recipe for {_grinding5} using 1 diamond, diamond sword, air, air, air, air, air, air, air
Advertisement
Add Comment
Please, Sign In to add comment