Detect Particle command
I am currently working on a map and I want to have particles that gives certain effects to surrounding entities. I was thinking about using the /execute detect command but it only detects blocks! Is there any way to detect the particles and then run a command?
Best Answer
Instead of creating particles then checking for those particles, try creating particles and checking for entities where you are creating the particles.
Have one command block creating your particles at x, y, z then have another checking for an entity at x, y, z instead of looking for the particles. Then apply the desired effect to any entities it detects.
Pictures about "Detect Particle command"
How do you show particles in Minecraft?
The /particle command can be used to create particles. If a player uses the "minimal" particles option in the video settings, some particles may not appear.How do you use the particle command?
In Bedrock Edition, the syntax for the command is: "/particle <effect> <position>." There are tons of different particle effects, including large explosion, angry villager, phantom trails and more.Minecraft /PARTICLE Command Tutorial [1.19]
More answers regarding detect Particle command
Answer 2
well, you could include a recourcepack in the map and re-texture a block with the texture of the block the floor.
For example, a hallway made of iron blocks, place stone where an iron block is supost to go and run the command /execute @a ~ ~ ~ detect ~ ~-1 ~ stone 0 /say 1 and replace /say 1 with whatever command you want, just play the particles over the stone.
Sources: Stack Exchange - This article follows the attribution requirements of Stack Exchange and is licensed under CC BY-SA 3.0.
Images: Ivan Babydov, Anete Lusina, Ivan Babydov, Blue Bird