MAKER · JAVA
Make Capture the Flag work in vanilla

A complete two-team CTF: Red and Blue bases with flag poles at opposite ends, real grab/carry/capture logic, flags returned when a carrier falls, live team scores and a first-to-target win. Built by the composable game engine, so you can tweak every rule in plain English.
Try it right here
Maps build on a paid plan — trying is free and costs you nothing.
Playable maps are part of Diamond Ore. Building one needs a plan — trying costs you nothing.
Actual generated output
Capture the Flag — 2 teams on a solid arena: capture the enemy flag to win. Spawns you in a real lobby. One command: /function capture_the_flag:play
- Format
- Java datapack
- Edition
- Minecraft Java
- Download
- capture-the-flag.zip
- Version context
- Generated target: 26.3
Included files (27)
README.txt data/capture_the_flag/function/assign_one.mcfunction data/capture_the_flag/function/begin.mcfunction data/capture_the_flag/function/build.mcfunction data/capture_the_flag/function/cap_blue.mcfunction data/capture_the_flag/function/cap_red.mcfunction data/capture_the_flag/function/countdown_sec.mcfunction data/capture_the_flag/function/countdown_tick.mcfunction data/capture_the_flag/function/drop_blue.mcfunction data/capture_the_flag/function/drop_red.mcfunction data/capture_the_flag/function/game_tick.mcfunction data/capture_the_flag/function/grab_blue.mcfunction data/capture_the_flag/function/grab_red.mcfunction data/capture_the_flag/function/kit.mcfunction data/capture_the_flag/function/load.mcfunction data/capture_the_flag/function/lobby.mcfunction data/capture_the_flag/function/play.mcfunction data/capture_the_flag/function/player_down.mcfunction data/capture_the_flag/function/respawn.mcfunction data/capture_the_flag/function/second_tick.mcfunction data/capture_the_flag/function/start.mcfunction data/capture_the_flag/function/tick.mcfunction data/capture_the_flag/function/win.mcfunction data/minecraft/tags/function/load.json data/minecraft/tags/function/tick.json pack.mcmeta pack.png
Installation and verification
- Back up your Java world and confirm the target Minecraft version in pack.mcmeta and README.
- Place the zip in that world's datapacks folder. pack.mcmeta must be at the zip root.
- Run /reload and /datapack list enabled with permission to use commands. Follow the pack's README for its start function and gameplay controls.
Generated entry point: /function capture_the_flag:build. Read the README before running it; map/build functions can change blocks.
This file inventory is produced from the example prompt by the repository generator. Structural checks do not prove every gameplay interaction, performance level, device or future Minecraft version. Generated assets can conflict with other packs.
How pack validation worksHow it works
- 1Describe it: "capture the flag with 2 teams" — add kit, theme or score target to customize.
- 2Install the datapack in your world.
- 3Run /function <name>:play — teams are split, flags are placed, and the match starts.
Questions people ask
What happens when the flag carrier dies?
The flag drops and is returned to its pole after a beat — defenders get a real reason to chase.
Can I combine CTF with other mechanics?
Yes — the composable engine mixes primitives, so "CTF but the floor is snow and everyone has shovels" builds exactly that.
How do wins work?
First team to the capture target wins; live scores show on the sidebar the whole match.
Capabilities and limitations
Arena Forge generation and exports require a paid plan. You can explore the studio before upgrading. Start in an empty test world: build functions place blocks, and players should playtest spawn safety, team balance and win conditions.
Generated files pass structural checks, and representative packs have automated runtime tests. Test your particular creation in a copy of the world. Read the validation methodology.