Minecraft – Detect Particle command

minecraft-commandsminecraft-java-edition

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.