-
Notifications
You must be signed in to change notification settings - Fork 0
Home
- Cloning the Mod
- Setting Up the Development Environment
- Running the Mod in Development
- Building the Mod
- Modifying the Code & Configuration
- Troubleshooting
First, clone the Fire Fear Mod from GitHub.
git clone https://github.com/Sylsatra/firefearmod.git
cd firefearmod
git clone https://github.com/Sylsatra/firefearmod.git
cd firefearmod
Before building the mod, you need to set up your development environment.
Ensure you have Java 17 installed, as Forge 1.18.2 requires it.
Once Java 17 is installed, navigate to your mod folder and run:
./gradlew genEclipseRuns
gradlew genEclipseRuns
This sets up Forge and dependencies for development.
To test the mod in Minecraft without building a .jar file:
./gradlew runClient
gradlew runClient
- This launches Minecraft Forge with your mod installed.
- Any code changes will take effect immediately after restarting the client.
When you’re ready to package your mod into a .jar file:
./gradlew build
gradlew build
Once finished, the .jar file will be located in:
📂 build/libs/firefearmod-1.18.2.jar
| File | What It Does | Location |
|---|---|---|
| FireFearMod.java | Main mod class | src/main/java/com/example/firefearmod/ |
| FireFearConfig.java | Config file settings | src/main/java/com/example/firefearmod/config/ |
| FireFearEvents.java | Handles entity AI registration | src/main/java/com/example/firefearmod/ |
| FireFearGoal.java | Defines entity fleeing AI | src/main/java/com/example/firefearmod/ai/ |
| mods.toml | Mod metadata & dependencies | src/main/resources/META-INF/mods.toml |
| build.gradle | Gradle build script | Root folder (firefearmod/) |
Modify FireFearConfig.java to:
- Change scan cooldown (
SCAN_COOLDOWN_TICKS). - Adjust fear radius for players & blocks.
- Add new entities, blocks, and items that cause fear.
If Gradle fails with a Java version error, check your Java version:
java -version
Ensure it's Java 17. If not, install it as shown earlier.
Check your logs in:
📂 run/logs/latest.log
Common issues:
-
Incorrect dependency in
mods.toml→ CheckversionRange. -
Entities not fleeing from fire? → Add them to
FLEEING_ENTITIESinFireFearConfig.java.
Now you can build, test, and modify the Fire Fear Mod with ease! 🚀🔥 If you have any issues, open an issue on GitHub.