Functions System
Chain commands using .mcfunction files, download pre-made functions, or create your own from templates.
Downloadable Functions (NEW in 3.1.0)
Command Maker now includes an online function library with 88 pre-made functions you can download directly in-game!
How to Download
Use /cmd downloadfunction <name> to download any function, or open the Function Manager GUI with /cmd gui to browse visually. Tab-complete shows descriptions!
Available Categories
- Mini-Games — Spleef, Parkour, Hide & Seek, PvP Arena, Maze Runner, Ice Race, Archery Range, and more
- Combat & Survival — Zombie Siege, Mob Army, Boss Arena, Dragon Fight, Skeleton Siege, Arena of Champions
- Building & Structures — Bridge Builder, Lighthouse, Treehouse, Castle Gate, Windmill, Suspension Bridge, Enchanting Tower
- Visual & Party — Light Show, Bubble Party, Firework Show, Aurora Borealis, Confetti Storm, Rainbow Trail, Fire Tornado
- Chaos & Mayhem — TNT Rain, Meteor Shower, Anvil Rain, Potion Storm, Chicken Plague, Ender Invasion, Void Pull
- Server Utility — Lag Cleaner, Time Locker, Mob Off, Heal All, Feed All, Repair All, Night Vision, Clearing
- Redstone & Machinery — Automatic Door, Piston Elevator, Item Sorter, Secret Passage, TNT Cannon
- Adventure & RPG — Quest Board, Dungeon Entrance, Treasure Hunt, Boss Drop, RPG Shop
- Farming & Nature — Crop Farm, Animal Pen, Flower Garden
- Templates & Examples — Hello World, Example, Sound, Scoreboard Demo, Command Chain
What Are Functions?
Functions allow you to execute multiple commands in sequence from a single alias. Instead of running one command, your alias can reference a .mcfunction file that contains a list of commands to run one after another.
Perfect for server announcements, multi-step setups, chained game mechanics, and automated sequences.
Creating Functions
Automatic Alias Creation
Aliases are automatically created for any .mcfunction file! If you create mobsoff.mcfunction, the command /mobsoff will automatically work.
Via the GUI (Easiest)
- Open with
/cmd gui - Go to the Create tab
- Click a template
- Edit the generated file
Via Commands
/cmd function create my_function
Manually
Create a .mcfunction file in config/CommandMaker/Functions/
spawn rates monster 0
say Monster spawns disabled!
Managing Functions
| Action | Command |
|---|---|
| Run a function | /cmd function <name> |
| Create a function | /cmd function create <name> |
| Delete a function | /cmd function delete <name> |
| Download from library | /cmd downloadfunction <name> |
| Browse library | /cmd listdownloadablefunctions |
| List local functions | /cmd list |
| Open GUI | /cmd gui |
Function File Format
- Each line is a separate command
- Empty lines and lines starting with # are ignored
- Variables like ${player}, ${x}, ${y}, ${z} work in functions
- Commands execute in the order they appear
# Announce the restart
say §c[SERVER] Server restarting in 30 seconds!
save-all
schedule function minecraft:restart_warning 25s
Advanced Usage
Variables in Functions
tp ${player} 0 100 0
say ${player} has been teleported to spawn!
Conditional Logic
execute if entity @a[name=Admin] run say Admin is online!
execute unless entity @a[name=Admin] run say Admin is offline!
Troubleshooting
- Make sure the .mcfunction file exists in the Functions folder
- Check that the filename matches exactly (case-sensitive)
- Verify commands are valid Minecraft commands
- Use
/cmd reloadafter editing files - Downloaded functions go to
config/CommandMaker/Functions/