-
Notifications
You must be signed in to change notification settings - Fork 0
File Structure
Castiga Gaming edited this page Nov 4, 2025
·
1 revision
This template provides a complete starting point for creating Minecraft 1.21.1 NeoForge mods.
- build.gradle - Gradle build configuration with NeoForge plugin setup
- settings.gradle - Project name configuration (UPDATE THIS)
- gradle.properties - Mod metadata and version configuration (UPDATE THIS)
- gradlew.bat - Gradle wrapper script for Windows
- README.md - Main template documentation and quick start
- SETUP_INSTRUCTIONS.md - Detailed setup guide
- CHECKLIST.md - Step-by-step setup checklist
- FILE_STRUCTURE.md - This file - complete structure reference
- CHANGELOG.md - Version history and updates
- TODO.md - Template task list for users
- WIKI.md - Guide for setting up GitHub Wiki
- LICENSE - MIT License template
- .gitignore - Minimal (for template repository)
- .gitignore.example - Full version (for mod development - replace .gitignore with this)
- gradle-wrapper.jar - Gradle wrapper executable
- gradle-wrapper.properties - Gradle wrapper configuration
- YourModName.java - Main mod class template
- README.txt - Package organization guide
- pack.mcmeta - Resource pack metadata
- META-INF/neoforge.mods.toml - Mod metadata for NeoForge
- lang/en_us.json - English language file template
- README.txt - Assets folder structure guide
Subfolders to create as needed:
- blockstates/ - Block state definitions
- models/block/ - Block models
- models/item/ - Item models
- textures/block/ - Block textures
- textures/item/ - Item textures
- sounds/ - Sound files
- sounds.json - Sound definitions
- README.txt - Data folder structure guide
Subfolders to create as needed:
- advancement/ - Custom advancements
- loot_table/ - Loot tables
- recipe/ - Crafting recipes
- tags/block/ - Block tags
- tags/item/ - Item tags
- worldgen/ - World generation data
-
launch.json - VS Code debug configurations for:
- Client (run Minecraft client)
- Server (run dedicated server)
- Data (generate data files)
- GameTestServer (run tests)
- Copy this entire folder to create a new mod project
- Follow the Setup Instructions or Setup Checklist
- Replace .gitignore with .gitignore.example
- Update gradle.properties with your mod information
- Update settings.gradle with your mod ID
- Rename the yourmodid folders to match your mod ID
- Run
./gradlew buildto verify setup - Use VS Code launch configurations to run and debug
- Minecraft Version: 1.21.1
- NeoForge Version: 21.1.57
- Java Version: 21
- Gradle Version: 8.8 (via wrapper)
- ModDevGradle Plugin: 2.0.28-beta
# Build the mod
./gradlew build
# Clean build artifacts
./gradlew clean
# Run client (alternative to VS Code launcher)
./gradlew runClient
# Run data generation
./gradlew runDataThe compiled mod jar will be in build/libs/ after building.
Navigation
Quick Links
Template Info
Version: 1.0.0
Minecraft: 1.21.1
NeoForge: 21.1.57
Java: 21