Exported Project Templates
When you finish building a project in CCraft Studio, you export it to a set of Lua files that run directly inside the CC: Tweaked Minecraft mod (or in CraftOS-PC).
This section is a map of the export. Start here to choose a mode, then dive into the page for that mode. For a file‑by‑file breakdown of what lands on disk, see the Generated File Reference.
You open the export window from the toolbar. It lets you pick an export mode, toggle a couple of options, preview every file, and write them to a folder.
Export modes
CCraft Studio exports a project in one of three modes. Each mode decides which files
are generated and how startup.lua ends.
| Mode | In‑app label | What it includes | Best for |
|---|---|---|---|
| Full Export | Full Export | UI rendering + block logic + the interactive event loop | A finished, ready‑to‑run app |
| UI Only Export | UI Only | UI rendering only — screens are drawn once, no logic and no event loop | Designers who want to write their own Lua logic |
| Logic Only Export | Code Only | Block logic only — no UI components and no screen drawing | Headless programs (turtles, redstone controllers, network nodes) |
Which files each mode writes:
| Folder / file | Full | UI Only | Logic Only |
|---|---|---|---|
components/* | ✅ | ✅ | — |
screens/* | ✅ | ✅ | — |
logic/* | ✅ | — | ✅ |
utils/vars.lua | ✅ | ✅ | ✅ |
utils/functions.lua | ✅ | ✅ | ✅ |
startup.lua | ✅ | ✅ | ✅ |
| Ends with | event loop | drawScreens() | logic loop |
What each of those files actually contains is documented once in the Generated File Reference.
Export options
Two checkboxes change the shape of the output without changing the mode you picked:
- Minify output — strips comments and extra whitespace for a smaller, identical program.
- All‑In‑One File — combines everything into a single paste‑able
startup.lua.
Both are explained in detail in Generated File Reference → Export options.
Next steps
- Full Export — the complete, runnable program
- UI Only Export — render the UI, code your own logic
- Logic Only Export — headless logic, no UI
- Generated File Reference — every file, the folder tree, load order
- Runtime API — functions you can call from your own Lua