Learn
Step-by-step courses for building Celestial mods. Pick a language and start from the first lesson.
cl.on("player.join", function(e)
e.player:send_message("Hi!")
end)LuaNever written code? Start here. Lua from the very first line, then your first Celestial mods.67 lessonsCL_ON(CL_EV_PLAYER_JOIN, on_join); /* inside on_join */ cl_easy_send_message(player, "Hi!");CAlready know C? Set up the WebAssembly toolchain and learn the CLight C API, one small mod at a time.50 lessons · the language itself on W3Schools
using namespace clight;
on<ev::PlayerJoin>([](cl_ev_player& e) {
Entity(e.player).send_message("Hi!");
}).detach();C++Modern C++ with clight.hpp: handles that clean up after themselves, lambdas for events and typed errors.50 lessons · the language itself on W3Schools