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 37 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
- Combat — Zombie Siege, Mob Army, Boss Arena
- Building — Bridge Builder, Underground Base, Lighthouse, Treehouse, Spawn Setup
- Party & Visual — Light Show, Bubble Party, Firework Show, Dance Parties, New Year
- Chaos — TNT Rain, Meteor Shower, Scorched Earth, Gravity Flip
- Utility — Lag Cleaner, Time Locker, Mob Off, Base Protection, Starter Kit
- Seasonal — Halloween Spook, New Year Countdown
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/