MiniBench

MiniBench / Learn

Editor skills Free~4 minutes

Organize your functions into folders

One giant function is hard to read; a pile of loose files is hard to navigate. MiniBench lets you group functions into subfolders inside functions/ — and the folder path becomes part of the /function name. Here's the whole flow on iPad.

  1. Add a file or folder inside functions/

    Touch and hold any folder in the file tree to get its menu: New File Here and New Folder Here create items inside that folder, plus Rename… and Delete. Nest folders as deep as you like — a game folder here, a menus folder there. Folders live inside the functions/ directory — that's where your commands belong.
  2. Name it — and read the /function name

    Give the file a name and, optionally, a subfolder. MiniBench tells you exactly what you've made: a file named win in subfolder game lands at functions/game/ and is “Called via /function game/win.” That's the rule to remember — the folder path is part of the command name.
  3. Each file is its own function

    Write the commands for that one job — here coin.mcfunction awards a coin, plays a sound, and shows a message. Every file becomes a function you can run on its own, and one function can call another with a single line: function game/win (no slash, inside a pack).
Why bother? Small, named files are reusable (call game/give_kit from setup, respawn, and a shop), readable (short files beat a 200-line wall), and easy to find. It's the difference between a project you can grow and one you dread opening.

Now make them talk to each other.

See how to call one function from another and build a real game with them.