#how to add a tag to the last spawned entity with the players uuid so the last spawned entity has a

1 messages · Page 1 of 1 (latest)

gritty scaffold
#

set string tag "custom;x" of nbt of ... to "..."

languid ginkgo
#

so like wtf does that mean

#

set string tag "custom;x" of nbt of last spawned entity to "%player%"

#

like that???

gritty scaffold
#

prob gonna want to specify the tag name so its not just x

#

but beyond that yeah

languid ginkgo
#

K

#

Thx

languid ginkgo
#
    set {_l::*} to all blocks within location(98,70,497) and location(102,72,497)
    set {_l} to random element out of {_l::*}
    spawn 1 of block display at {_l} with nbt nbt compound from "{{scale:[0.5f,0.5f,0.5f]},block_state:{Name:"minecraft:pink_concrete"}}"
    set tag "linked_player" of last spawned entity to uuid of {_p}
    spawn 1 of interaction at {_l} with nbt compund from "{width:0.5f,height:0.5f}"
    set tag "linked_player" of last spawned entity to uuid of {_p}

``` is this right