Can someone tell me what's wrong with this code:
Code:
set {_location} to location 462, -24, 500 in "WardenSK"
spawn warden at {_location}
set {_warden} to the last spawned entity
add "{CustomName:""\""&a[GREEN]&a\"""",CustomNameVisible:1,NoAI:1b,CanPickUpLoot:1b}" to nbt of {_warden}
I am trying to spawn a warden in that location with that NBT.
Also this is the error I get:
Code:
set {_location} to location 462, -24, 500 in "WardenSK"
spawn warden at {_location}
set {_warden} to the last spawned entity
add "{CustomName:""\""&a[GREEN]&a\"""",CustomNameVisible:1,NoAI:1b,CanPickUpLoot:1b}" to nbt of {_warden}
I am trying to spawn a warden in that location with that NBT.
Also this is the error I get: