Advertisement
pz_neko

Untitled

Aug 13th, 2019
183
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.46 KB | None | 0 0
  1. on RightClick on a monster:
  2. Player is Sneaking
  3. Player has permission "admin.sk"
  4. set {MobName.%Player%} to name of event-entity
  5. open chest with 3 row named "&A&lSetting" to player
  6. loop 27 time:
  7. add 1 to {_n}
  8. set {_b} to {_n}-1
  9. if {_b} is not between 9 and 16:
  10. set slot {_b} of Player's current inventory to dark gray glass pane
  11. else if {_b} is 10 or 12 or 14 or 16:
  12. set slot {_b} of Player's current inventory to {Drop.%{_b}%::%name of event-entity%}
  13. else if {_b} is 9:
  14. set slot {_b} of Player's current inventory to white glass pane named "&7&lDrop Chance: &e&l60%%"
  15. else if {_b} is 11:
  16. set slot {_b} of Player's current inventory to light blue glass pane named "&7&lDrop Chance: &e&l30%%"
  17. else if {_b} is 13:
  18. set slot {_b} of Player's current inventory to magenta stained glass pane named "&7&lDrop Chance: &e&l9%%"
  19. else if {_b} is 15:
  20. set slot {_b} of Player's current inventory to yellow stained glass pane named "&7&lDrop Chance: &e&l1%%"
  21.  
  22.  
  23. on inventory Click:
  24. if name of Player's current inventory contains "&A&lSetting":
  25. 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:
  26. cancel event
  27.  
  28. on inventory close:
  29. name of Player's current inventory contains "&A&lSetting"
  30. loop 16 time:
  31. add 1 to {_n}
  32. if {_n} is 10 or 12 or 14 or 16:
  33. set {Drop.%{_n}%::%{MobName.%Player%}%} to slot {_n} of player's current inventory
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement