Randall123459

Invsee [SK]

Nov 19th, 2016
2,613
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.26 KB | None | 0 0
  1. options:
  2. #Do not change arg-player
  3. guiname: &cInventory of &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 slot (loop-number - 1) of player's current inventory to {inv::%argument-1%::%loop-number%}
  21. loop integers from 36 to 44:
  22. format slot loop-integer of player with black stained glass pane named " " to be unstealable
  23. if helmet slot of arg-player is not air:
  24. format slot 47 of player with helmet slot of arg-player to be unstealable
  25. else:
  26. format slot 47 of player with glass pane named "{@C}Helmet" to be unstealable
  27. if chestplate slot of arg-player is not air:
  28. format slot 48 of player with chestplate slot of arg-player to be unstealable
  29. else:
  30. format slot 48 of player with glass pane named "{@C}Chestplate" to be unstealable
  31. if legging slot of arg-player is not air:
  32. format slot 50 of player with legging slot of arg-player to be unstealable
  33. else:
  34. format slot 50 of player with glass pane named "{@C}Leggings" to be unstealable
  35. if boots slot of arg-player is not air:
  36. format slot 51 of player with boots slot of arg-player to be unstealable
  37. else:
  38. format slot 51 of player with glass pane named "{@C}Boots" to be unstealable
  39. loop integers from 45 to 46:
  40. format slot loop-integer of player with black stained glass pane named " " to be unstealable
  41. format slot 52 of player with black stained glass pane named " " to be unstealable
  42. set {_hearts} to health of argument-1
  43. set {_health} to ({_hearts}*10)
  44. set {_food} to argument-1's food level
  45. set {_exp} to level of argument-1
  46. set {_location} to argument-1's location
  47. set {_potion::*} to all of the active potion effects on argument-1
  48. format slot 53 of player with book named "" with lore " {@H}Health: {@C}%{_health}%%% || {@H}Hearts: {@C}%{_hearts}% || {@H}Hunger: {@C}%{_food}% || {@H}Levels: {@C}%{_exp}% || {@H}Location: {@C}%{_location}% || {@H}Potion Effects: {@C}%{_potion::*}%" to be unstealable
Advertisement
Add Comment
Please, Sign In to add comment