This is a Gradle-based starter template for creating Necesse game mods. Follow the instructions below to set up, configure, test, and build your mod.
root/
│
├─ settings.gradle # Set the root project name here
├─ app/
│ ├─ build.gradle # Optional: configure your game location (default is Windows)
│ ├─ config.gradle # Mod-specific configuration
│ └─ src/ # Build your mod here
Edit the settings.gradle file and set your project name:
rootProject.name = "YourModName"Edit /app/config.gradle to specify your mod’s details. Available fields:
project.ext.modID = "your.unique.modid" // Unique identifier for your mod
project.ext.modName = "Your Mod Name" // Display name of your mod
project.ext.modVersion = "1.0" // Mod version
project.ext.gameVersion = "1.0.2" // Compatible Necesse game version
project.ext.modDescription = "Description..." // Short description of your mod
project.ext.author = "Your Name" // Author name
project.ext.clientside = false // Set true if mod only runs on the clientAll source files should be placed under /app/src/main/. Gradle will compile these files and generate your mod package.
By default, the build assumes Necesse is installed on Windows. To change, edit /app/build.gradle:
// Example for Windows
def gameDirectory = "C:/Program Files (x86)/Steam/steamapps/common/Necesse"To run your mod in the game for testing:
gradlew runClientThis launches Necesse with your mod loaded.
To run a server with your mod installed:
gradlew runServerTo build the final mod jar for distribution:
gradlew buildModJarThe output will be in the build/libs directory.