#(resolved) runCommand not working
1 messages · Page 1 of 1 (latest)
ig you cant runCommand in dimension
you can
so here's actually what happened
That command you're running.
Is being called... at 0, 0, 0 (XYZ Coordinate)
Command blocks or Entities, however, automatically run the command in their position.
k, interesting
I think more code would help to debug the issue since we don't know how dimension is being defined in that screenshot.
The function command was to change that block into a different one as well as spawn a particle. I did eventually found a workaround though, and everything works
(resolved) runCommand not working
I did do block.location after the command, but nothing happened
Probably because you didn't even use it in the command as coordinate to specify it
`execute positioned ${x} ${y} ${z} run function ...`
I guess I’ll try something similar if I need a block to run a command next time
Preferably use native methods over commands.
Yeah