#NBT Compounds Help
1 messages · Page 1 of 1 (latest)
Thanks
I'm still a bit confused, shouldnt this work?
trigger:
set {_c} to (chest inventory with 4 rows named "Inventory of %arg%")
set {_i} to nbt compound of file "Survival/playerdata/%uuid of arg%"
set {_inv::*} to tag "Inventory" of {_i}
loop {_inv::*}:
set {_s} to (tag "Slot" of loop-value)
delete (tag "Slot" of loop-value)
set slot {_s} of {_c} to item from nbt loop-value
open {_c} to player```
It doesnt show the items
can you broadcast {_i} and send a screenshot?
Its outputting this
then evidently it's not getting the tag correctly
are you sure you have the right path?
Oh, I have changed my directory to "Survival/playerdata/%uuid of arg%.dat" and I am now getting the inventory data but the gui is still empty
looks like you're getting recipe names
I've also got inventory data (The message is like 500 lines long)
then you need to speicifcally get the Items tag
you're trying to parse a bunch of random stuff as items right now
Oh I see
set {_inv::*} to tag "Inventory" of {_i}```
How would I specifically get the items tag? This is what I have at the moment
Well it depends on the path
if it's just in the inventory tag, it's tag "Inventory;Items"
I'm just trying to get the inventory data from the .dat file
yes that's what i'm saying
it depends on the path to the items tag
oh i see nvm
that's a shulker box you're showing
oh i'm blind
the main issue is that {_c} is never set
Oh, I completely missed that
yeah me too lol
Welp, that fixed it. Thank you for your time ❤️