Hey guys,
I want to write a code that if i run a command like /chest, that it checks if the chest is a double chest.
This is the piece of code that i have:
But this code doesn't seem to work, because if i put one chest down, it also sees it that if there is a chest next to is.
Also it spams the else message a lot, which i also do not want.
Can you guys help?
I want to write a code that if i run a command like /chest, that it checks if the chest is a double chest.
This is the piece of code that i have:
code_language.skript:
command /chest:
permission: fill.chests
permission message: &aDenied.
trigger:
if targeted block is a chest:
loop all blocks in radius 1 around targeted block:
if loop-block is a chest:
clear targeted block's inventory
add {chest::items} to targeted block's inventory
send "&aLoot added!"
else:
send "&aThis is not a doublechest!"
But this code doesn't seem to work, because if i put one chest down, it also sees it that if there is a chest next to is.
Also it spams the else message a lot, which i also do not want.
Can you guys help?