Advertisement
pz_neko

Untitled

Aug 12th, 2019
102
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.81 KB | None | 0 0
  1. on RightClick on a monster:
  2. Player is Sneaking
  3. Player has permission "admin.sk"
  4. open chest with 3 row named "&A&lSetting" to player
  5. loop 27 time:
  6. add 1 to {_n}
  7. if {_n}-1 is not 10 or 12 or 14 or 16:
  8. set slot {_n}-1 of Player's current inventory to dark gray glass pane
  9. else:
  10. set slot {_n}-1 of Player's current inventory to {Drop.%{_n}-1%::%name of event-entity%}
  11.  
  12. on inventory Click:
  13. if name of Player's current inventory contains "&A&lSetting":
  14. set {MobName.%Player%} to name of event-entity
  15. if clicked item is dark gray glass pane:
  16. cancel event
  17.  
  18. on inventory close:
  19. name of Player's current inventory contains "&A&lSetting"
  20. loop 16 time:
  21. add 1 to {_n}
  22. if {_n} is 10 or 12 or 14 or 16:
  23. set {Drop.%{_n}%::%{MobName.%Player%}%} to slot {_n} of player's current inventory
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement