Advertisement
mrkeith782

Untitled

Apr 18th, 2014
53
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.49 KB | None | 0 0
  1. command /block <text>:
  2. permission: tps.block
  3. usage: /block <iron/diamond/emerald/redstone/lapis>
  4. trigger:
  5. arg is "emerald":
  6. set {_temp} to amount of emerald in player's inventory
  7. set {_temp} to {_temp}/9
  8. set {_temp2} to 0
  9. remove 10000 emeralds from the player
  10. send "<gray>You have replaced your emeralds to emerald blocks"
  11. loop 1000 times:
  12. set {_temp2} to {_temp2}+1
  13. {_temp2} > {_temp}:
  14. stop trigger
  15. give player an emerald block
  16. arg is "iron":
  17. set {_temp} to amount of iron ingots in player's inventory
  18. set {_temp} to {_temp}/9
  19. set {_temp2} to 0
  20. remove 10000 iron ingots from the player
  21. send "<gray>You have replaced your iron to iron blocks"
  22. loop 1000 times:
  23. set {_temp2} to {_temp2}+1
  24. {_temp2} > {_temp}:
  25. stop trigger
  26. give player an iron block
  27. arg is "diamond":
  28. set {_temp} to amount of diamond in player's inventory
  29. set {_temp} to {_temp}/9
  30. set {_temp2} to 0
  31. remove 10000 diamonds from the player
  32. send "<gray>You have replaced your diamonds to diamond blocks"
  33. loop 1000 times:
  34. set {_temp2} to {_temp2}+1
  35. {_temp2} > {_temp}:
  36. stop trigger
  37. give player an diamond block
  38. arg is "redstone":
  39. set {_temp} to amount of redstone in player's inventory
  40. set {_temp} to {_temp}/9
  41. set {_temp2} to 0
  42. remove 10000 redstone from the player
  43. send "<gray>You have replaced your redstone to redstone blocks"
  44. loop 1000 times:
  45. set {_temp2} to {_temp2}+1
  46. {_temp2} > {_temp}:
  47. stop trigger
  48. give player an redstone block
  49. arg is "lapis":
  50. set {_temp} to amount of lapis lazuli in player's inventory
  51. set {_temp} to {_temp}/9
  52. set {_temp2} to 0
  53. remove 10000 lapis lazuli from the player
  54. send "<gray>You have replaced your lapis lazuli to lapis blocks"
  55. loop 1000 times:
  56. set {_temp2} to {_temp2}+1
  57. {_temp2} > {_temp}:
  58. stop trigger
  59. give player an lapis block
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement