Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- on RightClick on a monster:
- Player is Sneaking
- Player has permission "admin.sk"
- set {MobName.%Player%} to name of event-entity
- open chest with 3 row named "&A&lSetting" to player
- loop 27 time:
- add 1 to {_n}
- set {_b} to {_n}-1
- if {_b} is not between 9 and 16:
- set slot {_b} of Player's current inventory to dark gray glass pane
- else if {_b} is 10 or 12 or 14 or 16:
- set slot {_b} of Player's current inventory to {Drop.%{_b}%::%name of event-entity%}
- else if {_b} is 9:
- set slot {_b} of Player's current inventory to white glass pane named "&7&lDrop Chance: &e&l60%%"
- else if {_b} is 11:
- set slot {_b} of Player's current inventory to light blue glass pane named "&7&lDrop Chance: &e&l30%%"
- else if {_b} is 13:
- set slot {_b} of Player's current inventory to magenta stained glass pane named "&7&lDrop Chance: &e&l9%%"
- else if {_b} is 15:
- set slot {_b} of Player's current inventory to yellow stained glass pane named "&7&lDrop Chance: &e&l1%%"
- on inventory Click:
- if name of Player's current inventory contains "&A&lSetting":
- if clicked item is dark gray glass pane or white glass pane or light blue glass pane or magenta stained glass pane or yellow stained glass pane:
- cancel event
- on inventory close:
- name of Player's current inventory contains "&A&lSetting"
- loop 16 time:
- add 1 to {_n}
- if {_n} is 10 or 12 or 14 or 16:
- set {Drop.%{_n}%::%{MobName.%Player%}%} to slot {_n} of player's current inventory
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement