I'm trying to make a line of particles from where the player is looking to 5 blocks in front of them, wherever they're facing.
I tried this command:
/execute as at @s run particle minecraft:end_rod ^ ^1.5 ^5 0.0 0.0 2.5 0.01 20 force
it seems like I have multiple problems:
Firstly, it makes the line 5 blocks in front of the player, from ~2.5 positive Z to ~2.5 negative Z, it only works the way I want if you're facing negative Z, but I want it to work in all directions.
Secondly, if I look up or down, it's not straight in front of the player anymore, but 1.5 blocks forwards. I hope there is a workaround for this, but I don't have my hopes up.
I think the first problem would be easily solved if the second coords in the command (the "0.0 0.0 0.0" after the "^ ^1.5 ^5") could be relative to the player, is there any way to make it so? Any help is appreciated.
That fixes the second problem (thanks a lot, I feel stupid that I didn't do that in the first place) but it's just a dot 5 blocks in front of me, not a line from me to the dot...
That fixes the second problem (thanks a lot, I feel stupid that I didn't do that in the first place) but it's just a dot 5 blocks in front of me, not a line from me to the dot...
Bumping this, having the same problem in 1.14.4, no fix yet?
You could always just have a bunch of execute commands
execute as @a at @s anchored eyes run particle end_rod ^ ^ ^1 0 0 0 0.01 20 force
execute as @a at @s anchored eyes run particle end_rod ^ ^ ^2 0 0 0 0.01 20 force
execute as @a at @s anchored eyes run particle end_rod ^ ^ ^3 0 0 0 0.01 20 force
execute as @a at @s anchored eyes run particle end_rod ^ ^ ^4 0 0 0 0.01 20 force
execute as @a at @s anchored eyes run particle end_rod ^ ^ ^5 0 0 0 0.01 20 force
You could always just have a bunch of execute commands
execute as @a at @s anchored eyes run particle end_rod ^ ^ ^1 0 0 0 0.01 20 force
execute as @a at @s anchored eyes run particle end_rod ^ ^ ^2 0 0 0 0.01 20 force
execute as @a at @s anchored eyes run particle end_rod ^ ^ ^3 0 0 0 0.01 20 force
execute as @a at @s anchored eyes run particle end_rod ^ ^ ^4 0 0 0 0.01 20 force
execute as @a at @s anchored eyes run particle end_rod ^ ^ ^5 0 0 0 0.01 20 force
This worked but not very well for me someblocks it was missing others it wouldn't go away how would you do it with just 1 command block btw im in 1.16.5
This worked but not very well for me someblocks it was missing others it wouldn't go away how would you do it with just 1 command block btw im in 1.16.5
I'm trying to make a line of particles from where the player is looking to 5 blocks in front of them, wherever they're facing.
I tried this command:
it seems like I have multiple problems:
Firstly, it makes the line 5 blocks in front of the player, from ~2.5 positive Z to ~2.5 negative Z, it only works the way I want if you're facing negative Z, but I want it to work in all directions.
Secondly, if I look up or down, it's not straight in front of the player anymore, but 1.5 blocks forwards. I hope there is a workaround for this, but I don't have my hopes up.
I think the first problem would be easily solved if the second coords in the command (the "0.0 0.0 0.0" after the "^ ^1.5 ^5") could be relative to the player, is there any way to make it so? Any help is appreciated.
Try:
execute as @a at @s anchored eyes run particle end_rod ^ ^ ^5 0 0 0 0.01 20 force
==Links==
๐๐๐๐จ๐ง๐ ๐๐ก๐๐ง๐ง๐๐ฅ- https://www.youtube.com/channel/UCQYroXqdZtYBnyspneetBGA/featured
๐๐ง๐ฌ๐ญ๐๐ ๐ซ๐๐ฆ- https://www.instagram.com/cowsdabest_yt/?hl=en
๐๐ฐ๐ข๐ญ๐ญ๐๐ซ- https://twitter.com/cowsdabestyt
๐๐ข๐ฌ๐๐จ๐ซ๐- https://discord.gg/H2NfhpQ
==DISCLAIMER!==
Please credit me if you are going to use it in a video or a map!
That fixes the second problem (thanks a lot, I feel stupid that I didn't do that in the first place) but it's just a dot 5 blocks in front of me, not a line from me to the dot...
Bumping this, having the same problem in 1.14.4, no fix yet?
You could always just have a bunch of execute commands
==Links==
๐๐๐๐จ๐ง๐ ๐๐ก๐๐ง๐ง๐๐ฅ- https://www.youtube.com/channel/UCQYroXqdZtYBnyspneetBGA/featured
๐๐ง๐ฌ๐ญ๐๐ ๐ซ๐๐ฆ- https://www.instagram.com/cowsdabest_yt/?hl=en
๐๐ฐ๐ข๐ญ๐ญ๐๐ซ- https://twitter.com/cowsdabestyt
๐๐ข๐ฌ๐๐จ๐ซ๐- https://discord.gg/H2NfhpQ
==DISCLAIMER!==
Please credit me if you are going to use it in a video or a map!
This worked but not very well for me someblocks it was missing others it wouldn't go away how would you do it with just 1 command block btw im in 1.16.5
There is no way to do it in just one command.
Use this:
To do a line you could do a raycast where it makes particles at each step. For instance:
particle_line.mcfunction:
This will recursively create particles every .5 blocks and stop 5 blocks from the player