Documentation
Everything you need to build mods for Celestial, in Lua, C or C++.
Getting started
- Overview: what CLight is
- Installing the CLight SDK
- Project layout and templates
- Your first mod in C
- Your first mod in C++
- Your first mod in Lua
Core concepts
5 more Core concepts pagesAPI reference
73 more API reference pagesGuides
- A custom block
- Custom items (tools, food, usable items)
- A shop block (block + menu)
- An entity with AI
- A custom dimension
- A worldgen feature
Language bindings
Advanced
- Event and override internals
- Performance rules
- The job system
- Rendering internals for mods
- Multi-version servers (the compat layer)
- Security, the sandbox and capabilities
Publishing
- Packaging a .clmod
- Writing the manifest
- Versioning and dependencies
- Signing and trust
- Distribution
- Server-required vs client-only mods
Migration
Appendix
- Glossary
- Complete event list
- Registry list
- Value event list
- Error codes
- clight.mod.json manifest schema (schema 1)