MiniBench

MiniBench / Learn

Project ~6 min read

Build a game lobby

You've built a few minigames — now give them a home. A lobby is a hub room with labeled pads: step on one and it launches that game. It's the same tick.json trick you already know, pointed at the functions from your other projects.

1. Set up the lobby

Drop players into Adventure mode (so they can't break the hub), clear their gear, teleport them to the lobby platform, and welcome them.

# functions/lobby/setup.mcfunction
gamemode adventure @a
clear @a
tp @a 0 70 0
title @a title Welcome!
title @a subtitle Step on a pad to play
The lobby setup function in the MiniBench editor putting players in Adventure mode and welcoming them

2. Build the pads

Place a distinct block for each game with a sign above it — gold for coins, redstone for PvP, emerald for spleef. The tick function launches the matching game when a player stands on a pad. These call the setup/start functions from your other projects.

# functions/tick.mcfunction (via tick.json)
execute as @a at @s if block ~ ~-1 ~ gold_block run function coin/setup
execute as @a at @s if block ~ ~-1 ~ redstone_block run function pvp/start
execute as @a at @s if block ~ ~-1 ~ emerald_block run function spleef/start

Each line reuses a function you already wrote — the lobby is just a router. Add a pad per game.

3. A way back

Give every game a "return to lobby" — a command block or a pad that runs this, resetting players to the hub. Have each game's win function call lobby/back when it ends.

# functions/lobby/back.mcfunction
gamemode adventure @a
clear @a
effect @a clear
tp @a 0 70 0

Make it a real server hub

See it in Minecraft

Players land in the hub to a friendly welcome — then step on a pad to launch any of your games.

A 'Welcome!' title with 'Step on a pad to play' subtitle in Minecraft

The plaza and colored launch pads in the shot are a few fills — run this once:

# functions/lobby/build.mcfunction — plaza + launch pads
fill ~-9 ~-1 ~-9 ~9 ~-1 ~9 polished_andesite
fill ~-6 ~-1 ~-2 ~-4 ~-1 ~0 gold_block
fill ~-1 ~-1 ~-2 ~1 ~-1 ~0 redstone_block
fill ~5 ~-1 ~-2 ~7 ~-1 ~0 emerald_block

Fill the lobby with games.

Browse every worked project and wire them into your hub.

All tutorials