How can I build a circuit with command blocks where you get damage when you touch minecraft particles? Minecraft Java 1.16.4
There are three ways to do this:
The not elegant way: Place a pressure plate under the particle that executes a CMD block, which @p adds a certain number of DMG.
The elegant but complex way: You take the coordinates of the particle. Then you ask in a CMD block with the / testfor command whether @p is on the coordinates of the particle. If so, then do X DMG to @p. If not, don't do anything.
The elegant and simple way: program a simple plugin.
Have a good time
Here's what you can do with Area Effect Clouds:
/ summon area_effect_cloud ~ ~ ~ {Particle: "cloud", Radius: 3f, Duration: 199980, WaitTime: 3, Effects: [{Id: 7b, Amplifier: 1b, Duration: 1}]}
From which version was the cmd introduced? O.o
/ summon has been around since 1.7 and the Area Effect Cloud since 1.9
I actually don't know the Area Effect Cloud, as I've only played up to 1.8.9. I've never tried anything about it.
I would have done it with a plugin.
Somehow that doesn't work
It works but I can't get the particles off.
Then enter / kill @e [type = area_effect_cloud].
Thanks. Worked