#Is there a way to edit location message thing?

1 messages · Page 1 of 1 (latest)

left stratus
#

I don't need help with a code or something but:

i have a code where it spawns a chest randomly in a world. it works, theres no errors but I also want to broadcast the location so its like:
"A chest has spawned at %{_loc}%" but there's a problem, the message says:

A chest has spawned at 'chest' at <x>, <y>, <z> in world 'world'

(replace <x> <y> <z> with actual coords)

is there any way to change the message to say "<x>, <y>, <z>" without the 'chest' at , in world 'world' ?

tranquil meadow
#

Yes

#

Use the replace effect or just get the components individually

ancient cargo
#

how are you setting {_loc}?
but x8ight's solution is prob the best
something like set {_x} to x-coordinate of {_loc}