Skip to content
Castiga Gaming edited this page Nov 4, 2025 · 4 revisions

NeoForge Mod Template

A complete, ready-to-use template for creating Minecraft 1.21.1 mods with NeoForge. Everything you need to start developing mods quickly and efficiently.

๐Ÿš€ Quick Start

  1. Copy or clone this template
  2. Replace .gitignore with .gitignore.example:
    Remove-Item .gitignore; Rename-Item .gitignore.example .gitignore
  3. Update gradle.properties with your mod information
  4. Rename folders: Change yourmodid to your actual mod ID
  5. Build: Run ./gradlew build

See Setup Instructions for detailed steps.

๐Ÿ“‹ What's Included

  • โœ… Complete Gradle build system with NeoForge plugin
  • โœ… Example mod class with proper structure
  • โœ… Item and block registration examples
  • โœ… Creative tab registration example
  • โœ… VS Code debug configurations (Client, Server, Data, GameTestServer)
  • โœ… Proper resource folder structure
  • โœ… Language file template
  • โœ… Data generation support
  • โœ… Comprehensive documentation

๐Ÿ“ฆ Template Contents

Build System

  • Gradle 8.8+ configuration
  • NeoForge ModDevGradle plugin 2.0.28-beta
  • Parchment mappings for better code readability
  • Gradle wrapper (no installation needed)

Source Code

  • Main mod class template (YourModName.java)
  • Item registration example (ModItems.java)
  • Block registration example (ModBlocks.java)
  • Creative tab example (ModCreativeTabs.java)

Resources

  • Mod metadata configuration (neoforge.mods.toml)
  • Resource pack metadata (pack.mcmeta)
  • Assets folder structure (textures, models, lang)
  • Data folder structure (recipes, loot tables, tags)

๐Ÿ”ง Technical Details

  • Minecraft Version: 1.21.1
  • NeoForge Version: 21.1.57
  • Java Version: 21
  • Gradle Version: 8.8 (via wrapper)
  • Template Version: 1.0.0

๐Ÿ“š Wiki Navigation

โš ๏ธ Important: Replace .gitignore

When creating a new mod, replace .gitignore with .gitignore.example:

Remove-Item .gitignore; Rename-Item .gitignore.example .gitignore

This swaps the minimal template .gitignore for the full development version.

๐ŸŽฏ Features

Property-Based Configuration

All mod metadata in gradle.properties automatically fills into neoforge.mods.toml. Change once, updates everywhere.

VS Code Integration

Pre-configured launch configurations for:

  • Running Minecraft client with your mod
  • Running dedicated server
  • Generating data files
  • Running game tests

Data Generation

Built-in support for generating:

  • Block states and models
  • Item models
  • Recipes
  • Loot tables
  • Tags

Best Practices

Follows NeoForge community standards and recommended project structure.

๐Ÿ“– Learning Resources

๐Ÿค Support & Feedback

If you find any bugs or have suggestions for improvement, please:

๐Ÿ“ License

This template is provided under the MIT License. See LICENSE for details.

Your mod can use any license you choose.

๐Ÿ† Credits

Template Author

Lille - Edge Gaming

Contributors

See Contributors for everyone who has helped improve this template.

๐Ÿ“Œ Version

1.0.0 - Initial Release


๐ŸŽฎ Ready to Start Modding?

  1. Check out the Setup Checklist
  2. Follow the Setup Instructions
  3. Start coding your mod!

Happy modding! โœจ

Navigation


Quick Links


Template Info

Version: 1.0.0
Minecraft: 1.21.1
NeoForge: 21.1.57
Java: 21

Clone this wiki locally