Advertisement
iZeeron

HELP ME

Mar 26th, 2019
150
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 5.01 KB | None | 0 0
  1. on right click:
  2. if name of event-item is "&eGenerator (&7Tier 1)":
  3. set {_l} to random element out of {tier1::*}
  4. set {_l} to "%{_l}%" parsed as item
  5. execute console command "/give %player% %{_l}%"
  6. else if event-item's name is "&eGenerator (&7Tier 2)":
  7. set {_x} to random integer between 1 and 2
  8. if {_x} = 1:
  9. set {_l} to random element out of {tier1::*}
  10. set {_l} to "%{_l}%" parsed as item type
  11. add {_l} to player's inventory
  12. execute console command "/give %player% %{_l}%"
  13. else if {_x} = 2:
  14. set {_l} to random element out of {tier2::*}
  15. set {_l} to "%{_l}%" parsed as item
  16. add {_l} to player's inventory
  17. execute console command "/give %player% %{_l}%"
  18. else if event-item's name is "&eGenerator (&7Tier 3)":
  19. set {_x} to random integer between 1 and 3
  20. if {_x} = 1:
  21. set {_l} to random element out of {tier1::*}
  22. set {_l} to "%{_l}%" parsed as item
  23. add {_l} to player's inventory
  24. execute console command "/give %player% %{_l}%"
  25. else if {_x} = 2:
  26. set {_l} to random element out of {tier2::*}
  27. set {_l} to "%{_l}%" parsed as item
  28. add {_l} to player's inventory
  29. execute console command "/give %player% %{_l}%"
  30. else if {_x} = 3:
  31. set {_l} to random element out of {tier3::*}
  32. set {_l} to "%{_l}%" parsed as item
  33. add {_l} to player's inventory
  34. execute console command "/give %player% %{_l}%"
  35. else if event-item's name is "&eGenerator (&7Tier 4)":
  36. set {_x} to random integer between 1 and 4
  37. if {_x} = 1:
  38. set {_l} to random element out of {tier1::*}
  39. set {_l} to "%{_l}%" parsed as item
  40. add {_l} to player's inventory
  41. execute console command "/give %player% %{_l}%"
  42. else if {_x} = 2:
  43. set {_l} to random element out of {tier2::*}
  44. set {_l} to "%{_l}%" parsed as item
  45. add {_l} to player's inventory
  46. execute console command "/give %player% %{_l}%"
  47. else if {_x} = 3:
  48. set {_l} to random element out of {tier3::*}
  49. set {_l} to "%{_l}%" parsed as item
  50. add {_l} to player's inventory
  51. execute console command "/give %player% %{_l}%"
  52. else if {_x} = 4:
  53. set {_l} to random element out of {tier4::*}
  54. set {_l} to "%{_l}%" parsed as item
  55. add {_l} to player's inventory
  56. execute console command "/give %player% %{_l}%"
  57. else if event-item's name is "&eGenerator (&7Tier 5)":
  58. set {_x} to random integer between 1 and 5
  59. if {_x} = 1:
  60. set {_l} to random element out of {tier1::*}
  61. set {_l} to "%{_l}%" parsed as item
  62. add {_l} to player's inventory
  63. execute console command "/give %player% %{_l}%"
  64. else if {_x} = 2:
  65. set {_l} to random element out of {tier2::*}
  66. set {_l} to "%{_l}%" parsed as item
  67. add {_l} to player's inventory
  68. execute console command "/give %player% %{_l}%"
  69. else if {_x} = 3:
  70. set {_l} to random element out of {tier3::*}
  71. set {_l} to "%{_l}%" parsed as item
  72. add {_l} to player's inventory
  73. execute console command "/give %player% %{_l}%"
  74. else if {_x} = 4:
  75. set {_l} to random element out of {tier4::*}
  76. set {_l} to "%{_l}%" parsed as item
  77. add {_l} to player's inventory
  78. execute console command "/give %player% %{_l}%"
  79. else if {_x} = 5:
  80. set {_l} to random element out of {tier5::*}
  81. set {_l} to "%{_l}%" parsed as item
  82. add {_l} to player's inventory
  83. execute console command "/give %player% %{_l}%"
  84.  
  85. command /add <number>:
  86. permission: op
  87. permission message: no Permissions
  88. trigger:
  89. if arg-1 = 1:
  90. player is not holding air
  91. add "%player's held item%" to {tier1::*}
  92. send "{@prefix} &cSucessfully added &4%player's held item% &cto the items"
  93. if arg-1 = 2:
  94. player is not holding air
  95. add "%player's held item%" to {tier2::*}
  96. send "{@prefix} &cSucessfully added &4%player's held item% &cto the items"
  97. if arg-1 = 3:
  98. player is not holding air
  99. add "%player's held item%" to {tier3::*}
  100. send "{@prefix} &cSucessfully added &4%player's held item% &cto the items"
  101. if arg-1 = 4:
  102. player is not holding air
  103. add "%player's held item%" to {tier4::*}
  104. send "{@prefix} &cSucessfully added &4%player's held item% &cto the items"
  105. if arg-1 = 5:
  106. player is not holding air
  107. add "%player's held item%" to {tier5::*}
  108. send "{@prefix} &cSucessfully added &4%player's held item% &cto the items"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement