Arqade Asked by HappyGamer3194 on December 31, 2020
In Minecraft, I am making a capture the flag game. However, I am having trouble making commands so that there must be 4 players in order to start; once there are 4 players, the players will push a button that starts the game. If there are less than 4 players, then the button returns an error message saying “Not enough players, there must be 4 players to start!” How do I do this?
This command makes it so if there are less then 4 players and there within a radius of 5 then it will display an error message.
/execute if entity @a[limit=..4,distance=..5] run say Not Enough Players
Answered by ScottyCee04 on December 31, 2020
Impulse Command Block (Power by a pressure plate at the spawn point):
/tag @p add w
Repeating Command Block:
/execute @a[c=4,r=10] ~ ~ ~ tag @a remove w
Repeating Command Block (Delay in ticks set to 100):
/w @a[tag=w] Not enough players, there must be 4 players to start!
Answered by villager1 on December 31, 2020
Try this:
/tag @a add sel
/tag @a add sel
/tag @a add sel
/tag @a add sel
/say 4 players
/tag @a remove sel
Add commands before the last command (the remove command should be last in the chain). Everything should be a chain conditional, except for the first one which should be an impulse unconditional (assuming that’s the start). The very last command block should also be unconditional.
Answered by Penguin on December 31, 2020
Get help from others!
Recent Questions
Recent Answers
© 2024 TransWikia.com. All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP