Guest User

Save Inventory

a guest
Apr 13th, 2020
83
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.58 KB | None | 0 0
  1. command /showinv:
  2. trigger:
  3. if {stuff:%player%::*} exists:
  4. open chest with 6 rows named "Saved Inventory" to player
  5. set {_slot} to -1
  6. loop {stuff:%player%::*}:
  7. add 1 to {_slot}
  8. set slot {_slot} of player's current inventory to loop-value
  9.  
  10. command /saveinv:
  11. trigger:
  12. loop all items in player's inventory:
  13. add loop-item to {stuff:%player%::*}
  14. send "&a&l[✓] &fSaved &7&o%size of {stuff:%player%::*}%&r&f items."
  15.  
  16. @OBS: Este code é apenas um exemplo.
Advertisement
Add Comment
Please, Sign In to add comment