MinecrafNinja

invsee.sk

Jan 4th, 2019
125
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.30 KB | None | 0 0
  1. options:
  2. #Do not change arg-player
  3. guiname: &a%arg-player%...
  4. Perm: skript.op
  5. H: &a
  6. C: &c
  7.  
  8.  
  9. command /invsee [<player>]:
  10. permission: {@Perm}
  11. trigger:
  12. open chest with 6 rows named "{@guiname}" for player
  13. wait 1 tick
  14. add player to {invsee::*}
  15. add arg-1 to {inventoryseeing::*}
  16. delete {inv::%argument-1%::*}
  17. loop all items in argument-1's inventory:
  18. add loop-item to {inv::%argument-1%::*}
  19. loop 36 times:
  20. set {_item} to {inv::%argument-1%::%loop-number%}
  21. format slot loop-number -1 of player with {_item} to be unstealable
  22. loop integers from 36 to 44:
  23. format slot loop-integer of player with purple stained glass pane named " " to be unstealable
  24. if helmet slot of arg-player is not air:
  25. format slot 47 of player with helmet slot of arg-player to be unstealable
  26. else:
  27. format slot 47 of player with yellow glass pane named "{@C}Helmet" to be unstealable
  28. if chestplate slot of arg-player is not air:
  29. format slot 48 of player with chestplate slot of arg-player to be unstealable
  30. else:
  31. format slot 48 of player with yellow glass pane named "{@C}Chestplate" to be unstealable
  32. if legging slot of arg-player is not air:
  33. format slot 50 of player with legging slot of arg-player to be unstealable
  34. else:
  35. format slot 50 of player with yellow glass pane named "{@C}Leggings" to be unstealable
  36. if boots slot of arg-player is not air:
  37. format slot 51 of player with boots slot of arg-player to be unstealable
  38. else:
  39. format slot 51 of player with yellow glass pane named "{@C}Boots" to be unstealable
  40. loop integers from 45 to 46:
  41. format slot loop-integer of player with purple stained glass pane named " " to be unstealable
  42. format slot 52 of player with purple stained glass pane named " " to be unstealable
  43. format slot 53 of player with purple stained glass pane named " " to be unstealable
  44. set {_hearts} to health of argument-1
  45. set {_health} to ({_hearts}*10)
  46. set {_food} to argument-1's food level
  47. set {_exp} to level of argument-1
  48. set {_location} to argument-1's location
  49. format slot 49 of player with emerald named "&5&lI&6&ln&5&lf&6&lo" with lore "{@H}Health: {@C}%{_health}% || {@H}Hearts: {@C}%{_hearts}% || {@H}Hunger: {@C}%{_food}% || {@H}Levels: {@C}%{_exp}% || {@H}Potion Effects: {@C}%{_potion::*}%" to be unstealable
Add Comment
Please, Sign In to add comment