Skip to content

Cpack

Run .cpack and .mcfunction scripts per-world with wait , call , and zero-overhead pre-parsing — just like mcfunction, but better.

Fabric
Loaders
Fabric
Downloads on Modrinth
71
Followers on Modrinth
0
version
1
Updated
July 19, 2026Jul 19
Published
in 2026

At a glance

Runs on Fabric
For Minecraft 1.21.11
Server only — players don't need to install it
Latest version — 1.0.0 from July 19, 2026
License MIT — free
Where it's needed
In gamenot neededOn serverrequired

Install on the server only; players don't need it

Game versions1.21.11

Cpack

A Fabric mod for Minecraft 1.21.11+ that lets you run .cpack and .mcfunction files as scripted command sequences — with wait, call, and full tab-completion support.

Made by Westires


What is Cpack?

Cpack works just like .mcfunction files, but stored per-world and with extra arguments (wait, call). You write plain command scripts, load them into your world, and run them with /cp run. All files are pre-parsed on world load — zero overhead at runtime.


File Location

Scripts are stored inside your world folder, not the global config:

saves/<WorldName>/cpack/<namespace>/<your_script>.cpack
saves/<WorldName>/cpack/<namespace>/subfolder/<your_script>.mcfunction
  • `is any folder name you choose (e.g.myproject, demo`)
  • Subfolders are supported at any depth
  • Both .cpack and .mcfunction extensions are supported

Script Format

Identical to .mcfunction — one command per line. Comment lines starting with # are ignored.

# This is a comment
say Hello!
particle minecraft:end_rod ~ ~ ~ 0.5 0.5 0.5 0.1 20 normal
wait 10 tick
say 10 ticks later!
wait 2 second
call myproject:effects/firework.cpack

Extra Arguments

ArgumentExampleDescription
`wait tick`wait 5 tickWaits n ticks before executing the next line
`wait second`wait 2 secondWaits n seconds (n × 20 ticks) before the next line
call <namespace:path>call demo:intro.cpackRuns another cpack/mcfunction file inline

Note: wait suspends only the current script — the server keeps running normally. Multiple scripts can run in parallel.


Commands

All commands require operator level 2 (gamemaster) except /cp list.

CommandDescription
/cpShows the command list
/cp run <namespace:file>Runs a cpack/mcfunction file
/cp stop <all|namespace:file>Stops a running script (or all scripts) immediately
/cp list [page]Lists all loaded files with their status
/cp disable <namespace:file>Disables a file (prevents it from running)
/cp enable <namespace:file>Re-enables a disabled file
/cp reload <all|namespace:file>Reloads files from disk and re-parses them

All arguments support tab completion — loaded file names appear automatically.

Using inside /execute

/execute positioned ~ ~1 ~ run cp run demo:frames/frame_000.cpack

Example

File: saves/MyWorld/cpack/demo/fireworks.cpack

# Launch 3 firework bursts with delays
particle minecraft:firework_rocket ~ ~1 ~ 0.5 0.5 0.5 0.05 30 normal
wait 10 tick
particle minecraft:firework_rocket ~ ~1 ~ 0.5 0.5 0.5 0.05 30 normal
wait 10 tick
particle minecraft:firework_rocket ~ ~1 ~ 0.5 0.5 0.5 0.05 30 normal
say Fireworks done!

Run it:

/cp run demo:fireworks.cpack

Performance

  • All files are pre-parsed on world load using Brigadier's parser — just like vanilla .mcfunction
  • At runtime, only dispatcher.execute() is called — no re-parsing
  • Command feedback (chat messages from commands like particle) is suppressed by default, matching mcfunction behavior
  • Multiple scripts run in parallel with no artificial limits

Requirements


Installation

  1. Install Fabric
  2. Download Fabric API for 1.21.11
  3. Drop cpack-1.0.0.jar into your .minecraft/mods/ folder
  4. Launch the game and open a world
  5. Create scripts in `saves//cpack//`

License

MIT — do whatever you want with it.

FAQ

How to install Cpack?

Install Fabric for your Minecraft version, download Cpack for the same version and loader, put the file into the mods folder and launch the game with the loader profile.

Which Minecraft versions does Cpack support?

Cpack has builds for Minecraft 1.21.11.

Is Cpack needed on the server?

Server only — players don't need to install it

License and source
MIT Licensefree to use and share with credit to the author
Original — Modrinth↗Files unchanged, verified with SHA-512Is this your mod? For rights holders

The site uses cookies: the necessary ones for sign-in and the theme, plus the Yandex Metrica and LiveInternet visit counters — they show us how the site is used. We have no advertising cookies. More