Setting ~ ~ ~ in a function spawns mobs at the world spawn instead of the player position.
This is inconsistent with commands and also, I now can't create my datapack as @p doesn't work and ~ ~ ~ spawns the mobs at world spawn.
Setting ~ ~ ~ in a function spawns mobs at the world spawn instead of the player position.
This is inconsistent with commands and also, I now can't create my datapack as @p doesn't work and ~ ~ ~ spawns the mobs at world spawn.
What is the expected behavior?
As a workaround, you can explicitly set the execution position with the
executecommand (https://minecraft.fandom.com/wiki/Commands/execute). For example, you can replacewith