does anyone know how to correctly do this? I am trying to take a string from my yml and make it into an item but the item becomes unset after parsing it from a string.
set {_keys::*} to yaml list "genlist_keys" from "genfile"
loop {_keys::*}:
set {_rawItem} to yaml value "genitems.%loop-value%" from "genfile" parsed as an itemstack
if all:
player is sneaking
{_rawItem} is set
then:
cancel event
the yml in question:
genitems:
lime_terracotta: lime terracotta named "&aZombie Generator"