mojira.dev
MC-123201

Using the ^ symbol in an execute command as an entity does not work propperly

Using execute as @p offset ^ ^1 ^1 run summon minecraft:arrow will execute as if its being run off the command block. If its used with functions in the game's datapack, it won't do anything.

Attachments

Comments 1

The command is adding an offset based on the player's rotation to the command position, which is at the command block. To fix this, add at @s like so:

execute as @p at @s offset ^ ^1 ^1 run summon minecraft:arrow

Mappy175 Gaming

(Unassigned)

Unconfirmed

Minecraft 17w50a

Retrieved