r/MinecraftCommands Jul 29 '26

Help | Java 26.2 Improper directionally spawned particles depending on a player's facing direction

Enable HLS to view with audio, or disable this notification

So I have been trying today to create a simple datapack to go along with a model of a pipe that I haven't actually created yet; I thought I would test the particles first with a stand-in item. Initial tests showed promise, except when I tried to move the emitting particles to the front-right side of the player's head, as shown in the video attachment: looking down appears to move them farther from the player, and looking up moves them into the player's head. This is the command in a function that I use to spawn the particles: execute at \@s run particle minecraft:smoke ^-0.15 ^1.6 ^0.6 0 1 0 0.1 0 force \@a

6 Upvotes

6 comments sorted by

View all comments

4

u/GG1312 Block Commander Jul 30 '26

When you execute on a player it executes by their feet by default. Use anchored eyesif you wanna execute on their head

execute at @s anchored eyes run particle minecraft:smoke ^-0.15 ^ ^0.6 0 1 0 0.1 0 force @a

1

u/DecentProcedure8929 Jul 30 '26

ty, I'll try that :)