Advertisement
Guest User

Custom Inventory

a guest
Nov 7th, 2014
454
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.71 KB | None | 0 0
  1. on inventory close:
  2. if {container::current::%player%} is set:
  3. if "%event-inventory%" is "inventory of <none>":
  4. set {container::%{container::current::%player%}%::%player%} to event-inventory's serialized contents
  5. clear {container::current::%player%}
  6.  
  7. command /open:
  8. trigger:
  9. set {_inv} to chest with 3 rows named "Whatever"
  10.  
  11. #{container::%ID%::%player%} it will hold the serialized contents of the virtual chest.
  12.  
  13. if {container::Test::%player%} is set:
  14. set {_inv}'s serialized contents to {container::Test::%player%}
  15. open {_inv} to player
  16.  
  17. #{container::current::%player%} should be set to the ID of the currently open inventory.
  18.  
  19. set {container::current::%player%} to "Test"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement