Mod

Cpack

Quick rating

Cpack

No reviews yet

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

Mod Loaders
Fabric
Minecraft

Community voices

Reviews

Versions
Loading versions…
Match includes

Click once to include, again to exclude, again to clear

Rating Any
Any 0.5 1.0 1.5 2.0 2.5 3.0 3.5 4.0 4.5 5.0
Min
Max
Play Status
Reviews
Time Played
hrs+
Verified developers only
Has developer response
List view
Grid view
Compact view
Sort by
Date
Rating
Helpful
Unhelpful
Edited
Sort ascending
Delete this review?

This removes your review from the project. You can write a new review after.

Review submitted for moderation

Your review has been sent to moderators, who will check that it meets our guidelines before it appears publicly.

No reviews yet. Be the first to review this project!

Get it on

Available Platforms

Compatibility

Supported Environments

Dev Environment
Client Unsupported
Server Required

About

Project Details

Type
Mod
License
MIT License
Authors

For authors

Embed Badge

If you're the author of this project, you can embed a live badge anywhere that supports HTML or Markdown. It updates automatically whenever ratings change.

Custom banner text
ModDex rating badge preview

Use HTML for any page that supports it, or Markdown for README files and Markdown-based descriptions.

Identifiers

Platform IDs

Modrinth ID

Resources

External Links

Source Issues Wiki Discord

About

Description

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
  • <namespace> 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

Argument Example Description
wait <n> tick wait 5 tick Waits n ticks before executing the next line
wait <n> second wait 2 second Waits n seconds (n × 20 ticks) before the next line
call <namespace:path> call demo:intro.cpack Runs 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.

Command Description
/cp Shows 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/<WorldName>/cpack/<namespace>/

License

MIT — do whatever you want with it.

Screenshots

Gallery

This project has no gallery images yet.

Versions

Files

Relations

Project Relations

More like this

Similar Mods

Suggestions use data such as tags, dependencies, dependents, descriptions, titles, and more to rank how much they overlap with this mod.

On ModDex

Community snapshot

0
Ratings
0
Followers
0
In stacks

By the numbers

Statistics

<1,000
Downloads
Last Updated
CurseForge
Created
Last synced
When ModDex last fetched and imported data for this project from CurseForge or Modrinth. High-traffic and active projects are checked more often.
Next pipeline sync