code_language.skript:
command /test:
trigger:
loop all entities:
if name of loop-entity is "testRoom":
set {_armorstand} to location of loop-entity
subtract 1 from y-coordinate of {_armorstand}
set {_structureBlock} to {_armorstand}
broadcast "%{_structureBlock}%"
set block at {_structureBlock} to structure_block
add "{rotation:"CLOCKWISE", name:"testRoom", mode:"LOAD", posY:0}" to NBT of {_structureBlock}
code_language.skript:
[21:33:13 ERROR]: ':"CLOCKWISE", name:"testRoom", mode:"LOAD", posY:0}"' is not a valid item data (a.sk, line 46: add "{rotation:"CLOCKWISE", name:"testRoom", mode:"LOAD", posY:0}" to NBT of {_structureBlock}')
Can't add NBT tags to structure blocks... Not sure if my code is wrong or its skript. Using skStuff to add NBT tags.
Also for some reason this wont work either. I have to go from one variable to another variable or the variable shows up as <none>.
code_language.skript:
command /test:
trigger:
loop all entities:
if name of loop-entity is "test":
set {_structureBlock} to location of loop-entity
subtract 1 from y-coordinate of {_structureBlock}
set block at {_structureBlock} to structure_block