#nbt armor adding skript working on 1.20.6 but not 1.20.4
1 messages · Page 1 of 1 (latest)
why are you using {_var::1::1} + {_var::1::2} + {_var::1::3} +{_var::1::4} instead of just + {_var::1::*}?
Anyways, the fix should be nbt of x -> custom NBT compound of x
I would clean it up with a loop:
set {_NBT} to custom NBT compound of loop-value
add int tag "whatever" of {_NBT} to {_coolNamedvariable}
return {_coolNamedvariable}```
i see no reason not to update


broadcast the variables
make sure they are being set correctly
well you cant do it via effect commands as they're local variables
try waiting a tick before calling the funciton
i wouldnt do "nested;tag" since it doesnt signify which kind of tag is nested
id do first:
set {_nbt} to string list tag "sdsds" #idk what type of tag u use, string list is an example
then
set {_value} to string tag "sdsdsd" of {_nbt}```
ok but nvm that's not ur problem
so if u remove var1 everything else works?
so defense is 0 until this line happens:
set {defense::%uuid of {_p}%} to {_def} + {_var::1::1} + {_var::1::2} + {_var::1::3} + {_var::1::4}```
?
so if he wears a chestplate but not helmet
it doesnt count?
pretty sure u can add nones together
is the final piece of code even being run at all?
because you're not wearing anything it might giivng errors but u just dont know
@jaunty matrix
beofre the set defense line brroadcast all the variables