Hello, I've been trying to make a virtual chest skript but I keep failing at it:/ I've tried looking through forums and stuff but still, no luck:/ Here's the code I've tried using:
But I get this error in my console:
Oh and my version of Minecraft is 1.16.4 so I'm not sure if tuske supports it.
Code:
on npc right click:
if citizen is named "&c&lSaugykla":
open chest with 6 rows named "Saugykla" to player
loop 54 times:
set slot {_slot} of player's current inventory to {saugykla::1::%{_slot}%::%player%}
add 1 to {_slot}
on inventory close:
if inventory name of player's current inventory is "Saugykla":
loop 54 times:
set {saugykla::1::%{_slot}%::%player%} to slot {slot.%player%} of player's current inventory
add 1 to {_slot}
But I get this error in my console:
Code:
[05:59:08 ERROR]: [Skript] In 1.13+ you cannot get the title name of an inventory outside of an InventoryClickEvent, Only if this inventory has an InventoryHolder may it be used in this state.
Oh and my version of Minecraft is 1.16.4 so I'm not sure if tuske supports it.
Last edited: