After all that setup, you can now create your first mod!Documentation Index
Fetch the complete documentation index at: https://mintlify.com/geode-sdk/docs/llms.txt
Use this file to discover all available pages before exploring further.
Creating a New Mod
To do this, open up a terminal where you want to create your project and run:Project Files
You may notice the project already comes with a few files. Let’s go over them:CMakeLists.txt- This is the main file for your CMake project.about.md- Here you can write a very long description page for your mod, in markdown. Think of it as a README for your mod! This file is technically optional, but highly recommended.logo.png- This is the icon for your mod, which shows up in-game. This file is technically optional, but highly recommended.mod.json- This json file contains all the metadata about your mod, such as name, version, custom resources, settings, etc. See this page for detailed info
If you plan on releasing your mod, remember to edit the about.md and logo.png files!
src folder.
Additional Files
Geode will also look for these special files within your mod folder:changelog.md- Lists all of the changes between versions to the mod; see detailed infosupport.md- Free-form info about how to show support to the developer of the mod; see detailed info
Building Your Mod
Now, to build your mod you have a few options:If you’re using an IDE such as CLion, VS Code or Visual Studio, head over to the IDE Setup page.
If you’re building for Android, check out the Android section.
Command Line Build
If you want to build your mods manually from the command line you can do that by simply running these commands in your mod’s folder:Alternative CMake Build
If you have an issue running that command for whatever reason (do let us know!), you can build your mod the same way using these commands:your.mod.geode package should be in your build folder, from where you can manually install it in-game.
Build for Android
Install Android NDK
Download and install the Android NDK. Extract it somewhere and set the
ANDROID_NDK_ROOT environment variable to its path.Building Windows Mods on Linux
If you have followed the steps earlier and installed all the required tools withgeode sdk install-linux, building should be as simple as on Windows: