Advertisement
mrkeith782

Untitled

Apr 18th, 2014
59
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.51 KB | None | 0 0
  1. command /block <text>:
  2. permission: tps.block
  3. usage: /block <iron/diamond/emerald/redstone/lapis/snow/clay> or /bl <i/d/e/r/l/s/c>
  4. aliases: /bl
  5. trigger:
  6. arg is "emerald" or "e":
  7. set {_temp} to amount of emerald in player's inventory
  8. set {_temp} to {_temp}/9
  9. set {_temp2} to 0
  10. remove 10000 emeralds from the player
  11. send "<gray>You have replaced your emeralds to emerald blocks"
  12. loop 1000 times:
  13. set {_temp2} to {_temp2}+1
  14. {_temp2} > {_temp}:
  15. stop trigger
  16. give player an emerald block
  17. arg is "iron" or "i":
  18. set {_temp} to amount of iron ingots in player's inventory
  19. set {_temp} to {_temp}/9
  20. set {_temp2} to 0
  21. remove 10000 iron ingots from the player
  22. send "<gray>You have replaced your iron to iron blocks"
  23. loop 1000 times:
  24. set {_temp2} to {_temp2}+1
  25. {_temp2} > {_temp}:
  26. stop trigger
  27. give player an iron block
  28. arg is "diamond" or "d":
  29. set {_temp} to amount of diamond in player's inventory
  30. set {_temp} to {_temp}/9
  31. set {_temp2} to 0
  32. remove 10000 diamonds from the player
  33. send "<gray>You have replaced your diamonds to diamond blocks"
  34. loop 1000 times:
  35. set {_temp2} to {_temp2}+1
  36. {_temp2} > {_temp}:
  37. stop trigger
  38. give player an diamond block
  39. arg is "redstone" or "r":
  40. set {_temp} to amount of redstone in player's inventory
  41. set {_temp} to {_temp}/9
  42. set {_temp2} to 0
  43. remove 10000 redstone from the player
  44. send "<gray>You have replaced your redstone to redstone blocks"
  45. loop 1000 times:
  46. set {_temp2} to {_temp2}+1
  47. {_temp2} > {_temp}:
  48. stop trigger
  49. give player an redstone block
  50. arg is "lapis" or "l":
  51. set {_temp} to amount of lapis lazuli in player's inventory
  52. set {_temp} to {_temp}/9
  53. set {_temp2} to 0
  54. remove 10000 lapis lazuli from the player
  55. send "<gray>You have replaced your lapis lazuli to lapis blocks"
  56. loop 1000 times:
  57. set {_temp2} to {_temp2}+1
  58. {_temp2} > {_temp}:
  59. stop trigger
  60. give player an lapis block
  61. arg is "clay" or "c":
  62. set {_temp} to amount of 337 in player's inventory
  63. set {_temp} to {_temp}/4
  64. set {_temp2} to 0
  65. remove 10000 337 from the player
  66. send "<gray>You have replaced your clay to clay blocks"
  67. loop 1000 times:
  68. set {_temp2} to {_temp2}+1
  69. {_temp2} > {_temp}:
  70. stop trigger
  71. give player an clay block
  72. arg is "snow" or "s":
  73. set {_temp} to amount of snowballs in player's inventory
  74. set {_temp} to {_temp}/4
  75. set {_temp2} to 0
  76. remove 10000 snowballs from the player
  77. send "<gray>You have replaced your snow to snow blocks"
  78. loop 1000 times:
  79. set {_temp2} to {_temp2}+1
  80. {_temp2} > {_temp}:
  81. stop trigger
  82. give player an snow block
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement