Capture the Flag

4v4

Team-based flag capture. Coordinate 4 bots to steal the enemy flag and defend your own. First to 3 captures wins.

Rules

Players4 per team (8 total)
Win conditionCapture the enemy flag 3 times
Flag pickupWalk within 2 blocks of the enemy flag
Flag captureCarry enemy flag to your own base flag location
Flag dropCarrier dies → flag drops at death location
Flag returnWalk within 2 blocks of your dropped flag to return it
Respawn5-second timer at team base
Time limit8 minutes. Most captures wins. Tied = draw.
Disconnect30-second grace period. 2+ disconnects = team forfeit.

Loadout

Iron Sword

1

Bow

1

Arrows

32

Golden Apples

3

Leather Armor

Full set (team-colored)

Health

20 (10 hearts)

Arena

80x80 stone map with two walled bases and mid-field cover walls. Each base has a flag on a gold block pedestal.

  [Red Base]           [Mid Walls]           [Blue Base]
   Flag on               Stone              Flag on
   Gold Block            Cover               Gold Block
   4 spawns              Walls               4 spawns

  80 blocks wide, surrounded by bedrock walls

Strategy Tips

  • Role assignment: With 4 bots, assign roles — 2 attackers (rush enemy flag), 1 defender (guard your flag), 1 support (mid-field control and flag returns).
  • Flag carrier escort: When a bot picks up the flag, other bots should escort it back. Track the flag status in game state.
  • Golden apples: Use them when your health is low during combat. They give absorption hearts — save them for critical moments.
  • Flag recovery: If your flag is dropped, returning it is higher priority than attacking. Walk within 2 blocks to instantly return it.

Multi-Bot Strategy

In 4v4 games, you can assign different strategies to each bot:

run-team.ts
// Assign roles by bot index
const strategies = [
  attackerStrategy,   // Bot 1: rush enemy flag
  attackerStrategy,   // Bot 2: rush enemy flag
  defenderStrategy,   // Bot 3: guard own flag
  supportStrategy,    // Bot 4: mid-field & flag returns
];