So, I am playing with my friend. For a few days, we have been working in a PVP arena. I also decided that I would use commands to do so. I would have a wall to separate the two players and when they click the start button, it removes the wall. So, I want to replace the wall when someone dies so the other person doesn't get unfair hits before the other person is ready. Please help!
Minecraft – Fill blocks when someone dies in minecraft
minecraft-bedrock-editionminecraft-commands
Related Topic
- Minecraft – How to create a custom border using the same material as the world boundary
- Minecraft – Make a blocks placeable on any blocks in adventure mode with shorter command
- Minecraft – Add players to team if they are within range
- Minecraft – How to give half of a player’s emeralds to their killer
- Minecraft – How to make a value-dependent variable scoreboard objective? (Command Blocks, 1.16.5)
Best Answer
You Need To Know
How chain command blocks work.
What
At spawn, have a pressure plate. Have each team tagged so we can identify them! I will use tags “blue” and “red”. When this pressure plate is pressed, have it run the commands:
Make a brick wall from 7, 2, 9 to 7, 10, 10. Now an always active chain:
If red died, teleport them to where they need to go (I used 4, 5, 5). Do nothing if a blue player. Then another always active chain:
Do the same for blue, let’s say blue needs to go to 10, 5, 5. Then, this is optional, but another always active chain:
If somehow someone without an assigned team spawns, let’s put them at 30, 20, 25. This could be a spectator area, lobby, etc.