Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- on right click:
- if name of event-item is "&eGenerator (&7Tier 1)":
- set {_l} to random element out of {tier1::*}
- set {_l} to "%{_l}%" parsed as item
- execute console command "/give %player% %{_l}%"
- else if event-item's name is "&eGenerator (&7Tier 2)":
- set {_x} to random integer between 1 and 2
- if {_x} = 1:
- set {_l} to random element out of {tier1::*}
- set {_l} to "%{_l}%" parsed as item type
- add {_l} to player's inventory
- execute console command "/give %player% %{_l}%"
- else if {_x} = 2:
- set {_l} to random element out of {tier2::*}
- set {_l} to "%{_l}%" parsed as item
- add {_l} to player's inventory
- execute console command "/give %player% %{_l}%"
- else if event-item's name is "&eGenerator (&7Tier 3)":
- set {_x} to random integer between 1 and 3
- if {_x} = 1:
- set {_l} to random element out of {tier1::*}
- set {_l} to "%{_l}%" parsed as item
- add {_l} to player's inventory
- execute console command "/give %player% %{_l}%"
- else if {_x} = 2:
- set {_l} to random element out of {tier2::*}
- set {_l} to "%{_l}%" parsed as item
- add {_l} to player's inventory
- execute console command "/give %player% %{_l}%"
- else if {_x} = 3:
- set {_l} to random element out of {tier3::*}
- set {_l} to "%{_l}%" parsed as item
- add {_l} to player's inventory
- execute console command "/give %player% %{_l}%"
- else if event-item's name is "&eGenerator (&7Tier 4)":
- set {_x} to random integer between 1 and 4
- if {_x} = 1:
- set {_l} to random element out of {tier1::*}
- set {_l} to "%{_l}%" parsed as item
- add {_l} to player's inventory
- execute console command "/give %player% %{_l}%"
- else if {_x} = 2:
- set {_l} to random element out of {tier2::*}
- set {_l} to "%{_l}%" parsed as item
- add {_l} to player's inventory
- execute console command "/give %player% %{_l}%"
- else if {_x} = 3:
- set {_l} to random element out of {tier3::*}
- set {_l} to "%{_l}%" parsed as item
- add {_l} to player's inventory
- execute console command "/give %player% %{_l}%"
- else if {_x} = 4:
- set {_l} to random element out of {tier4::*}
- set {_l} to "%{_l}%" parsed as item
- add {_l} to player's inventory
- execute console command "/give %player% %{_l}%"
- else if event-item's name is "&eGenerator (&7Tier 5)":
- set {_x} to random integer between 1 and 5
- if {_x} = 1:
- set {_l} to random element out of {tier1::*}
- set {_l} to "%{_l}%" parsed as item
- add {_l} to player's inventory
- execute console command "/give %player% %{_l}%"
- else if {_x} = 2:
- set {_l} to random element out of {tier2::*}
- set {_l} to "%{_l}%" parsed as item
- add {_l} to player's inventory
- execute console command "/give %player% %{_l}%"
- else if {_x} = 3:
- set {_l} to random element out of {tier3::*}
- set {_l} to "%{_l}%" parsed as item
- add {_l} to player's inventory
- execute console command "/give %player% %{_l}%"
- else if {_x} = 4:
- set {_l} to random element out of {tier4::*}
- set {_l} to "%{_l}%" parsed as item
- add {_l} to player's inventory
- execute console command "/give %player% %{_l}%"
- else if {_x} = 5:
- set {_l} to random element out of {tier5::*}
- set {_l} to "%{_l}%" parsed as item
- add {_l} to player's inventory
- execute console command "/give %player% %{_l}%"
- command /add <number>:
- permission: op
- permission message: no Permissions
- trigger:
- if arg-1 = 1:
- player is not holding air
- add "%player's held item%" to {tier1::*}
- send "{@prefix} &cSucessfully added &4%player's held item% &cto the items"
- if arg-1 = 2:
- player is not holding air
- add "%player's held item%" to {tier2::*}
- send "{@prefix} &cSucessfully added &4%player's held item% &cto the items"
- if arg-1 = 3:
- player is not holding air
- add "%player's held item%" to {tier3::*}
- send "{@prefix} &cSucessfully added &4%player's held item% &cto the items"
- if arg-1 = 4:
- player is not holding air
- add "%player's held item%" to {tier4::*}
- send "{@prefix} &cSucessfully added &4%player's held item% &cto the items"
- if arg-1 = 5:
- player is not holding air
- add "%player's held item%" to {tier5::*}
- send "{@prefix} &cSucessfully added &4%player's held item% &cto the items"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement