#How do get those variables?

1 messages · Page 1 of 1 (latest)

terse marten
#

I want to iterate through a int tag list, get the corresponding value names and their values.
My structure is "custom;brewery;items;<item-name>;<item-value>" where the stuff inside <> is variable
If I loop through the items i get this (look screenshot 1 and 2)

I'm trying to get the right code since at least 1 hour...

set {_itemList::*} to tag "custom;brewery;items" of {_nbt}

#

How do i get the name and value apart from another

tough crypt
#

set {val::*} to {name} split at ":"

#

val::1 = nbt tag

#

val::2 = nbt value

terse marten
#

did this, but its not working

#

I got that

#

I tried a few different things and now i have this, it works but it really isnt pretty
If anyone has a better solution please tell me

#

i would rather say really ugly