This is my code:
I want to, when you close the chest, save what you have previously put inside and then restore it when you right click on the chest.
But don't work.
Any idea?
[doublepost=1487547292,1487377873][/doublepost]Any idea?
code_language.skript:
on inventory close:
if inventory name of player's current inventory is "<aqua>Congelador":
set {caducidad.congeladores::%location of target block%} to player's current inventory
on right click:
if target block is a chest:
cancel event
open chest with 2 rows named "<aqua>Congelador" to player
set player's current inventory to {caducidad.congeladores::%location of target block%::*}
I want to, when you close the chest, save what you have previously put inside and then restore it when you right click on the chest.
But don't work.
Any idea?
[doublepost=1487547292,1487377873][/doublepost]Any idea?