MiniBench

MiniBench / Learn

Interactive Labs Free 5 Labs

Learn by doing: interactive Labs

New to Minecraft commands? MiniBench Labs teach one idea at a time — and you learn by building it yourself, in a real pack. Each Lab sets a goal, walks you through the steps, and checks your work with a friendly nudge when you're close. Here's how a Lab works, and the full Track A lineup.

Open Labs in the MiniBench app

Got MiniBench? Jump straight into the Learn track. No app yet? Get it free on the App Store.

How a Lab works

  1. Open the Learn track

    Tap Learn on the home screen — it's a toolbar button when you're starting out, and moves into the ••• (More) menu once you have projects. You'll see Track A: a short ladder of Labs, each teaching one command or idea. They're always free.
  2. Pick a Lab and follow the steps

    Tap a Lab — Your first function is a great start. It opens a real practice pack with a step-rail across the top: the goal, your progress (1 of 3), and a Check button. Do what the step says right in the editor, then tap the ▸ arrow to move to the next step. On iPhone the lesson rides a sheet you can slide up for the full details.
  3. Check your work — and get a hint if you're stuck

    Tap Check. Green means you nailed it. Amber is a friendly hint that shows what's off — and Fix it for me will make the edit for you if you'd rather see the answer. You can't fail a Lab; a wrong try just coaches you and lets you keep going.
  4. Finish and ship it

    Finish the last step to earn the Lab's concept badge. MiniBench then offers to ship it to Minecraft — export your pack and run what you just built in-game. Then come back and take the next Lab.

Track A · the Labs

5 hands-on Labs, in order — each builds on the last. This is exactly what you'll find in the app; open them in MiniBench to actually do them.

Your first function

Write a greeting with tellraw, then run it yourself with /function greet.

saytellrawfunction
  1. 1

    Open greet.mcfunction and find the tellraw line that shows a welcome message.

    tellraw sends formatted text to a player. Bedrock uses the "rawtext" shape — an array of text parts.

  2. 2

    Make sure the function has no errors before you run it.

Run it automatically

Use tick.json so your function runs every tick, and gate it with a tag so it doesn't spam.

tick.jsontagfunction
  1. 1

    Open tick.json and confirm it lists the function that should run every tick.

    tick.json's "values" array names the functions Minecraft runs on every game tick (20 times per second).

  2. 2

    In tick.mcfunction, find the tag that stops the greeting from repeating.

    The selector tag=!greeted matches only players who haven't been greeted yet; tag @s add greeted marks them afterwards.

  3. 3

    Make sure tick.mcfunction has no errors.

Target the right players

Point commands at exactly who you mean with selectors: @p, @a, @e, @s.

@a@e@sselectors
  1. 1

    Add a command that targets every player with @a.

    @a = all players, @p = nearest, @s = the executor, @e = any entity. @a is great for broadcasts.

  2. 2

    Add an @e selector that filters by type, e.g. @e[type=armor_stand].

    Selector arguments narrow the match: type= by entity, r= by radius, c= by count.

  3. 3

    Make sure the function has no errors.

Where things happen

Place and build with coordinates: absolute, relative ~, and local ^.

~^setblockfillsummon
  1. 1

    Use setblock with relative coordinates (~) to place a block near you.

    ~ means "relative to the executor": ~ ~1 ~ is one block up. Plain numbers are absolute world coordinates.

  2. 2

    Use fill to place a region of blocks between two corners.

    fill takes two coordinate triples — the opposite corners of the box to fill.

  3. 3

    Summon an entity at a coordinate.

    summon <entity> <x> <y> <z> spawns it; ~ ~ ~ spawns at the executor's feet.

  4. 4

    Make sure the function has no errors.

Run as, run at

Chain context with /execute as … at … run to run a command from each target's position.

executeasatrun
  1. 1

    Use /execute as @a at @s run … to run a command from every player's position.

    as changes who "@s" is; at moves the execution origin there, so ~ ~ ~ follows them.

  2. 2

    Open the 3D preview to confirm your build appears in the scene.

    The preview follows your commands and shows the result — a quick visual check before you export.

  3. 3

    Make sure the function has no errors.

Prefer to dive straight in?

Labs teach you commands as you write them. When you're ready to write your own, here's the editor in full.

Write your first .mcfunction