Like, having particles spawning in front of you and it stays in front even if you turn around. I'm in 1.12.2 by the way. I know how to use execute @p ~ ~ ~ /particle (the rest here), but can I make it follow my rotation?
/execute anchored eyes positioned ^ ^ ^1 run particle minecraft:flame ~ ~ ~ 0 0 0 0 1 normal
Here's an example. This command will always display a flame particle 1 block in front of the executing player's pointer
I hope you're in 1.13 or higher; If not, so it would be a lot more difficult
Rollback Post to RevisionRollBack
I got into chiptune music composition.
You can listen to them on my Youtube channel : https://www.youtube.com/channel/UCjWYbJGk7nvNDbnCvMlZGkw
Descriptions are in french, you'd just need some google translation copy-paste...
Also made some more or less complicated datapacks, shared here (planetminecraft).
Uh... There's only a way, and a realy difficult one, so
I really know a lot about minecraft commands, but as far as I know, in 1.12, the only ways to get the player's rotation are its Rotation[x] tag or the ry/rym/rx/rxm arguments...
So for making something as you want, you'll have to make a huge command block clock where each command block summons the particle for one player rotation position... or use a function to make it smaller...
It's quite long to make, but it have been done before, for gun systems...
However, I guess it would be simpler for you to upgrade to 1.13, in which you could do this with one command block...
Rollback Post to RevisionRollBack
I got into chiptune music composition.
You can listen to them on my Youtube channel : https://www.youtube.com/channel/UCjWYbJGk7nvNDbnCvMlZGkw
Descriptions are in french, you'd just need some google translation copy-paste...
Also made some more or less complicated datapacks, shared here (planetminecraft).
In 1.13, they added "^ ^ ^", which can be used instead of "~ ~ ~", and it's "relative rotation position"...
For example, /execute at @p anchored eyes positioned ^ ^ ^1 run summon minecraft:cow will summon a cow right in front of the player (I guess it's the correct syntax; I'm not sure)
Rollback Post to RevisionRollBack
I got into chiptune music composition.
You can listen to them on my Youtube channel : https://www.youtube.com/channel/UCjWYbJGk7nvNDbnCvMlZGkw
Descriptions are in french, you'd just need some google translation copy-paste...
Also made some more or less complicated datapacks, shared here (planetminecraft).
-The "as" is an argument for setting who is using the command. For exemple, if you want to kill yourself, you could do /kill @s. With "as", you could make that happen for any kind of entity. You can kill all cows with /execute as @e[type=cow] run kill @s (The "run" must be inserted before entering the resullting command)
-The "at" determines where the command is executed. If you do /summon cow, a cow will be summoned at your coords. If you put this in a command block, it's their coords which will be used for summoning the cow. You can tell the game at which entity you want the command to be run. Notice that "at" doesn't mean "running entity". It's only for getting its position for running the command. (Use /execute at @e[type=cow] run setblock ~ ~ ~ lava for placing lava at all cows. However, if you do /execute at @e[type=cow] run kill @s, there's no "as" so the command will only target the original runner.)
You'll need this for your particle system, it could be used for summoning particles (/execute at @a run particle [particle tags])
If you want to use the two arguments, simply do /execute as @a at @s run ... the "as" tells the game who will run the command, so the "at" could always be "@s" ("the entity itself") in that case.
For your particles, I told you to use "/execute as @p at @s anchored eyes positioned ^ ^ ^1 run [command]". The "anchored eyes" will execute the command at your eyes' position. If not precised, it automatically runs at feet position. The "Positioned ^ ^ ^1" is for executing the command in modified coords from the player's eyes. In that case, "^ ^ ^1" means "1 more block in the direction the target entity is facing". In that case, the entity is "each player". As the command is executed as each player, they will all execute the command 1 block in front of themselves, even if they have different positions.
I got into chiptune music composition.
You can listen to them on my Youtube channel : https://www.youtube.com/channel/UCjWYbJGk7nvNDbnCvMlZGkw
Descriptions are in french, you'd just need some google translation copy-paste...
Also made some more or less complicated datapacks, shared here (planetminecraft).
/execute as @p at @s anchored eyes positioned ^ ^ ^1 run particle minecraft:flame ~ ~ ~ 0 0 0 0 1 normal
This will consider your position as well as your rotation
Lol an old post I answered to, I wrote such big paragraphs nobody would ever read
Rollback Post to RevisionRollBack
I got into chiptune music composition.
You can listen to them on my Youtube channel : https://www.youtube.com/channel/UCjWYbJGk7nvNDbnCvMlZGkw
Descriptions are in french, you'd just need some google translation copy-paste...
Also made some more or less complicated datapacks, shared here (planetminecraft).
Like, having particles spawning in front of you and it stays in front even if you turn around. I'm in 1.12.2 by the way. I know how to use execute @p ~ ~ ~ /particle (the rest here), but can I make it follow my rotation?
/execute anchored eyes positioned ^ ^ ^1 run particle minecraft:flame ~ ~ ~ 0 0 0 0 1 normal
Here's an example. This command will always display a flame particle 1 block in front of the executing player's pointer
I hope you're in 1.13 or higher; If not, so it would be a lot more difficult
I got into chiptune music composition.
You can listen to them on my Youtube channel :
https://www.youtube.com/channel/UCjWYbJGk7nvNDbnCvMlZGkw
Descriptions are in french, you'd just need some google translation copy-paste...
Also made some more or less complicated datapacks, shared here (planetminecraft).
Thanks for the reply! Unfortunately, I'm in 1.12.2... Is there any way to do it in this version?
Uh... There's only a way, and a realy difficult one, so
I really know a lot about minecraft commands, but as far as I know, in 1.12, the only ways to get the player's rotation are its Rotation[x] tag or the ry/rym/rx/rxm arguments...
So for making something as you want, you'll have to make a huge command block clock where each command block summons the particle for one player rotation position... or use a function to make it smaller...
It's quite long to make, but it have been done before, for gun systems...
However, I guess it would be simpler for you to upgrade to 1.13, in which you could do this with one command block...
I got into chiptune music composition.
You can listen to them on my Youtube channel :
https://www.youtube.com/channel/UCjWYbJGk7nvNDbnCvMlZGkw
Descriptions are in french, you'd just need some google translation copy-paste...
Also made some more or less complicated datapacks, shared here (planetminecraft).
Wow, they really improved command blocks in the new versions! Thanks for the info!
I'm sorry I couldn't help you for 1.12...
In 1.13, they added "^ ^ ^", which can be used instead of "~ ~ ~", and it's "relative rotation position"...
For example, /execute at @p anchored eyes positioned ^ ^ ^1 run summon minecraft:cow will summon a cow right in front of the player (I guess it's the correct syntax; I'm not sure)
I got into chiptune music composition.
You can listen to them on my Youtube channel :
https://www.youtube.com/channel/UCjWYbJGk7nvNDbnCvMlZGkw
Descriptions are in french, you'd just need some google translation copy-paste...
Also made some more or less complicated datapacks, shared here (planetminecraft).
Oh, that's nice! I remember seeing some "at" and "as" after the /execute, do you know what the "at" and "as" mean? Also, thanks for trying to help me!
Sure!
-The "as" is an argument for setting who is using the command. For exemple, if you want to kill yourself, you could do /kill @s. With "as", you could make that happen for any kind of entity. You can kill all cows with /execute as @e[type=cow] run kill @s (The "run" must be inserted before entering the resullting command)
-The "at" determines where the command is executed. If you do /summon cow, a cow will be summoned at your coords. If you put this in a command block, it's their coords which will be used for summoning the cow. You can tell the game at which entity you want the command to be run. Notice that "at" doesn't mean "running entity". It's only for getting its position for running the command. (Use /execute at @e[type=cow] run setblock ~ ~ ~ lava for placing lava at all cows. However, if you do /execute at @e[type=cow] run kill @s, there's no "as" so the command will only target the original runner.)
You'll need this for your particle system, it could be used for summoning particles (/execute at @a run particle [particle tags])
If you want to use the two arguments, simply do /execute as @a at @s run ... the "as" tells the game who will run the command, so the "at" could always be "@s" ("the entity itself") in that case.
For your particles, I told you to use "/execute as @p at @s anchored eyes positioned ^ ^ ^1 run [command]". The "anchored eyes" will execute the command at your eyes' position. If not precised, it automatically runs at feet position. The "Positioned ^ ^ ^1" is for executing the command in modified coords from the player's eyes. In that case, "^ ^ ^1" means "1 more block in the direction the target entity is facing". In that case, the entity is "each player". As the command is executed as each player, they will all execute the command 1 block in front of themselves, even if they have different positions.
I got into chiptune music composition.
You can listen to them on my Youtube channel :
https://www.youtube.com/channel/UCjWYbJGk7nvNDbnCvMlZGkw
Descriptions are in french, you'd just need some google translation copy-paste...
Also made some more or less complicated datapacks, shared here (planetminecraft).
Oh thanks a lot for the explanations! This will be a lot useful when Ill go on 1.13!
where do i place the @p in the command bc im a noob at commands
nvm i found out
/execute as @p at @s anchored eyes positioned ^ ^ ^1 run particle minecraft:flame ~ ~ ~ 0 0 0 0 1 normal
This will consider your position as well as your rotation
Lol an old post I answered to, I wrote such big paragraphs nobody would ever read
I got into chiptune music composition.
You can listen to them on my Youtube channel :
https://www.youtube.com/channel/UCjWYbJGk7nvNDbnCvMlZGkw
Descriptions are in french, you'd just need some google translation copy-paste...
Also made some more or less complicated datapacks, shared here (planetminecraft).