I Have a problem that i find very weird.
in my test world i have 3 chests set up 2 double chest, and 1 single chest. They are spread about as to not interfere with the search. The skript works.... but only on one of the chests... And if i try to message the contetns of the {_itemlist::*} i just get back <none> even when the items apear in the chest as planned.
(Just to clarify, i know im copying the items at this point, its just for proof of concept)
Im stumped.
Code:
command /item_test:
trigger:
# Locate chest
loop all blocks in radius 2 around player:
if loop-block is chest:
set {_chest} to loop-block
if {_chest} is set:
loop all items in player's inventory:
add loop-item to {_itemlist::*}
loop {_itemlist::*}:
add loop-value to {_chest}
else:
message "Something went wrong, there is no chest"
in my test world i have 3 chests set up 2 double chest, and 1 single chest. They are spread about as to not interfere with the search. The skript works.... but only on one of the chests... And if i try to message the contetns of the {_itemlist::*} i just get back <none> even when the items apear in the chest as planned.
(Just to clarify, i know im copying the items at this point, its just for proof of concept)
Im stumped.