I'm currently building a map… After killing 2 witches you should be teleported.
Can someone help me and tell me how to do such a command?
I thank you in advance.
Can only explain it to you in one simple way at the moment:
Have a command block continuously check the area where the witches are located for these 2 witches.
This then emits a redstone signal when they are no longer there. Now the player is teleported via / tp.
You can also do all of this in a single command block.
I can't tell you the exact command right now because I don't have access to my cards.
First you need a scoreboard, select the witches killed:
/ scoreboard objectives add witch_kill minecraft.killed: minecraft.witch
Then you test whether a player has killed a witch twice and tap him
/ execute as @a [scores = {witch_kill = 2.}] run tp
/ execute as @a [scores = {witch_kill = 2.}] run scoreboard players reset @s witch_kill
Thank you, is this also possible with version 1.15.2?
And does it all just come in a normal command block or several normal ones that are permanently powered with redstone?
Yes
You only have to execute the first command once. The rest must be in a blue command block and always powered, whether in the command block with Always active or Redstone.
Omg thank you… I've been waiting for someone to help me for about 1 year and you managed to help me so that it works…
No problem