How to make it so that if all the players on a team are knocked out, the game ends?

I need this for a Bedwars map

I think you could put a button that says don’t press it until one team is KNOCKED OUT!!! idk if this is a great idea or not!

that was my first idea

but then I would think players would want 2 ruin other’s experiences by pressing the button

2 Likes

Sorry to break it to ya, it’s not.
People don’t abide to the rules sometimes.


@cirE
I suggest you wanna take a peek at this:

1 Like

@CustomCoaster this only works if the team only has 1 player

1 Like

@cirE Um so basically make then spawn in a box and when they enter zone increment counter and deactivate that zone when they teleport to map with another zone under it and then deactivate it when bed destroyed and activate a zone that activates when bed destroyed and decrements counter and when it reaches 0 end game but make one for each team

1 Like

wat… I don’t get it at all

1 Like

Okay so is it platformer

2 Likes

yep, gravity is on, that make it a platformer

1 Like

I don’t have time rn bc i gtg but I’ll make a guide and link it here tomorrow

1 Like

kk do u have a discord?

1 Like

Uhh no sadly but I’ll get it soon but I actually have to go and I’ll show you tmrw

1 Like

k but check 4 new posts this one will be gone in 3 hours

1 Like

What do you mean by check 4 new posts? I’ll just ping you on the guide when I’m done

1 Like

Ender’s Game reference?

1 Like

Grab a knockout manager and connect it to an end game device. Theory, untested, I don’t know the settings, but this is probably the most likely to work.

1 Like

I haven’t touched GKC for a while, but what you could have is a trigger constantly relay on behalf of said team to increment a counter, then check to see if the counter equals 0. If it does, end the game, if it doesn’t, activate the trigger to relay on the behalf of everyone on the team again.

2 Likes

The above solution uses this concept btw if you want to learn more about it.

2 Likes

Okay, I will show you how to make a memory efficient player counter. All game codes a invalid

Materials:

Zone x3
Barrier x1
trigger x1
counter x1
Spawn pad x1


Live player counter

Okay you will first want to place down the spawn pad and a zone and barrier like this:

Then change these settings on the zone so it is like this then dont change anything on the barrier :


Then place a trigger and make it like this:

wire the trigger to the zone and barrier and make it when triggered deactivate barrier and zone
then you will place a counter like this:


then wire the zone to the counter like this:

then put another zone under that and set it to this:

and make it deactivate when something happens.
then place another zone and make it not active on game start and activate when something happened

then wire it to the same counter:

Optional (Bedwars version)

Materials:
Just add another bed prop

Okay so make the bed like this and you are done!

This is what I remember from my old one but it might not work tell me if it does you will need one per team