Advertisement
mrkeith782

Untitled

Apr 18th, 2014
83
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.76 KB | None | 0 0
  1. command /block <text>:
  2. permission: tps.block
  3. usage: /block <iron/diamond/emerald/redstone/lapis/snow/clay/coal/gold> or /bl <i/d/e/r/l/s/c/cl/g>
  4. aliases: /bl
  5. trigger:
  6. arg is "emerald" or "e":
  7. player does not have 9 emeralds:
  8. send "<red>You need more materials!"
  9. stop trigger
  10. loop 1000 times:
  11. player has 9 emeralds:
  12. remove 9 emeralds from player
  13. give player 1 emerald block
  14. set {_temp} to {_temp}+1
  15. set {_temp2} to {_temp}*9
  16. send "<gray>You traded <green>%{_temp2}% emeralds <gray>for <green>%{_temp}% emerald <gray>blocks!"
  17. arg is "iron" or "i":
  18. player does not have 9 iron ingots:
  19. send "<red>You need more materials!"
  20. stop trigger
  21. loop 1000 times:
  22. player has 9 iron ingots:
  23. remove 9 iron ingots from player
  24. give player 1 iron block
  25. set {_temp} to {_temp}+1
  26. set {_temp2} to {_temp}*9
  27. send "<gray>You traded %{_temp2}% iron ingots for %{_temp}% iron blocks!"
  28. arg is "diamond" or "d":
  29. player does not have 9 diamonds:
  30. send "<red>You need more materials!"
  31. stop trigger
  32. loop 1000 times:
  33. player has 9 diamonds:
  34. remove 9 diamonds from player
  35. give player 1 diamond block
  36. set {_temp} to {_temp}+1
  37. set {_temp2} to {_temp}*9
  38. send "<gray>You traded <aqua>%{_temp2}% diamonds <gray>for <aqua>%{_temp}% diamond <gray>blocks!"
  39. arg is "redstone" or "r":
  40. player does not have 9 redstone:
  41. send "<red>You need more materials!"
  42. stop trigger
  43. loop 1000 times:
  44. player has 9 redstone:
  45. remove 9 redstone from player
  46. give player 1 redstone block
  47. set {_temp} to {_temp}+1
  48. set {_temp2} to {_temp}*9
  49. send "<gray>You traded <light red>%{_temp2}% redstone <gray>for <light red>%{_temp}% redstone <gray>blocks!"
  50. arg is "lapis" or "l":
  51. player does not have 9 lapis:
  52. send "<red>You need more materials!"
  53. stop trigger
  54. loop 1000 times:
  55. player has 9 lapis:
  56. remove 9 lapis from player
  57. give player 1 lapis block
  58. set {_temp} to {_temp}+1
  59. set {_temp2} to {_temp}*9
  60. send "<gray>You traded <blue>%{_temp2}% lapis <gray>for <blue>%{_temp}% lapis <gray>blocks!"
  61. arg is "clay" or "c":
  62. player does not have 4 337:
  63. send "<red>You need more materials!"
  64. stop trigger
  65. loop 1000 times:
  66. player has 4 337:
  67. remove 4 337 from player
  68. give player 1 clay block
  69. set {_temp} to {_temp}+1
  70. set {_temp2} to {_temp}*4
  71. send "<gray>You traded %{_temp2}% clay balls for %{_temp}% clay blocks!"
  72. arg is "snow" or "s":
  73. player does not have 4 snowballs:
  74. send "<red>You need more materials!"
  75. stop trigger
  76. loop 1000 times:
  77. player has 4 snowballs:
  78. remove 4 snowballs from player
  79. give player 1 snow block
  80. set {_temp} to {_temp}+1
  81. set {_temp2} to {_temp}*4
  82. send "<gray>You traded <white>%{_temp2}% snowballs <gray>for <white>%{_temp}% snow <gray>blocks!"
  83. arg is "coal" or "cl":
  84. player does not have 9 coal:
  85. send "<red>You need more materials!"
  86. stop trigger
  87. loop 1000 times:
  88. player has 9 coal:
  89. remove 9 coal from player
  90. give player 1 coal block
  91. set {_temp} to {_temp}+1
  92. set {_temp2} to {_temp}*9
  93. send "<gray>You traded <black>%{_temp2}% coal <gray>for <blacK>%{_temp}% coal <gray>blocks!"
  94. arg is "gold" or "g":
  95. player does not have 9 gold ingots:
  96. send "<red>You need more materials!"
  97. stop trigger
  98. loop 1000 times:
  99. player has 9 gold ingots:
  100. remove 9 gold ingots from player
  101. give player 1 gold block
  102. set {_temp} to {_temp}+1
  103. set {_temp2} to {_temp}*9
  104. send "<gray>You traded <gold>%{_temp2}% gold ingots <gray>for <gold>%{_temp}% gold <gray>blocks!"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement