I want to spawn particles in a certain place and if you touch them you die. I already have the particles. How do I make it fatal now? The whole thing should run with commando blocks. Minecraft Java 1.16.4
You do / kill and specify in the target selector the area or that the player has to stand in the certain type of particle.
The easiest way is of course a radius, if the place with the particles is round and you can hide the command block underneath
/ kill @a [r = 10]
E.g. Kills Every player within 10 blocks.
You can also specify an area within coordinates. A cuboid. X, y, z is one corner, and dx, dy, dz specifies how many blocks the area should go in x / y / z direction from the corner.
/ kill @a [x = 10, y = 50, z = 10, dx = -20, dy = 20, dz = -20]
Would e.g. Kill every player between 10.50,10 and -10.70, -10.
How is it that the player has to stand in certain particles?
It's just a wall.
One wall is square, the second method that I just added would be suitable for this. A cuboid area selection.
Let's say the wall goes from -1000,0,100 to 1000,300,100, then it should e.g. Ring:
/ kill @a [x = -1000, y = 0, z = 100, dx = 2000, dy = 300, dz = 0]
@a [r = 10]
* distance = 10;)
As if they changed that o.O.
r was so nice and short.