How can I make command: "run summon skeleton x y z" activates only once after command: "execute if entity @p[x=*,y=*,z=*,dy=2].." wchich all is obviously in repeating command block
execute if entity @p[x=*,y=*,z=*,dy=2] run summon skeleton x y z
Once and then wait x minutes before checking again?
Once per entity?
Not being very good with commands, I would change this command so it places a redstone block or torch in a circuit that runs another command block that has the summon command.
For only once, ever, I'd just have the second command block setup so it only runs once.
For once in a while I'd have it run once per activation and have a timer (also activated by the redstone torch) that controls a piston that removes the torch.
(I don't really know how to do it once per entity, I'd expect you'd use a scoreboard.)
Once ever I meant, I wanted to do a trap that detectes player is standing in specific coordinates so the skeleton appears and you would have to fight him and I wanted this command activates once to summon only one skeleton instead of hundreds..
Anyways I can do it by adding chain command block placing redstone block next to the repeating command block and instead of putting "run summon skeleton x y z" - "run setblock ~ ~ ~1 air" to delete the source of repeating command block instantly (wchich is that redstone block)
I was just thinking if there was any option or sth to make it even more simple
How can I make command: "run summon skeleton x y z" activates only once after command: "execute if entity @p[x=*,y=*,z=*,dy=2].." wchich all is obviously in repeating command block
Would that be only once ever?
Once and then wait x minutes before checking again?
Once per entity?
Not being very good with commands, I would change this command so it places a redstone block or torch in a circuit that runs another command block that has the summon command.
For only once, ever, I'd just have the second command block setup so it only runs once.
For once in a while I'd have it run once per activation and have a timer (also activated by the redstone torch) that controls a piston that removes the torch.
(I don't really know how to do it once per entity, I'd expect you'd use a scoreboard.)
Just testing.
Once ever I meant, I wanted to do a trap that detectes player is standing in specific coordinates so the skeleton appears and you would have to fight him and I wanted this command activates once to summon only one skeleton instead of hundreds..
Anyways I can do it by adding chain command block placing redstone block next to the repeating command block and instead of putting "run summon skeleton x y z" - "run setblock ~ ~ ~1 air" to delete the source of repeating command block instantly (wchich is that redstone block)
I was just thinking if there was any option or sth to make it even more simple
Btw thanks for help