Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- on inventory close:
- if {container::current::%player%} is set:
- if "%event-inventory%" is "inventory of <none>":
- set {container::%{container::current::%player%}%::%player%} to event-inventory's serialized contents
- clear {container::current::%player%}
- command /open:
- trigger:
- set {_inv} to chest with 3 rows named "Whatever"
- #{container::%ID%::%player%} it will hold the serialized contents of the virtual chest.
- if {container::Test::%player%} is set:
- set {_inv}'s serialized contents to {container::Test::%player%}
- open {_inv} to player
- #{container::current::%player%} should be set to the ID of the currently open inventory.
- set {container::current::%player%} to "Test"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement