I want to add item in block inventory.
but error " is not a valid item data " in line "{_type}"
but error " is not a valid item data " in line "{_type}"
code_language.skript:
on right click on chest:
if event-world is "{@world}":
if {{@suffix}::Chests::%block's location%} is not set:
clear the block's inventory
loop {{@suffix}::Item::*}:
set {_type} to "%{{@suffix}::Item::%loop-value%::Type}%"
set {_name} to "%{{@suffix}::Item::%loop-value%::Name}%"
set {_lore} to "%{{@suffix}::Item::%loop-value%::Lore}%"
add 1 {_type} named {_name} with lore {_lore} to the block's inventory