This step-by-step series explains how to create a Minecraft mod with NeoForge. The main examples target Minecraft 1.21.1, NeoForge 21.1, and Java 21. Each episode also has a dedicated section explaining the equivalent code and API changes for Minecraft 26.2, so you can follow the series with either version.
The episodes build on one another. If you are starting a new mod, follow them in order and keep the project from the previous episode as your starting point.
The complete companion projects are available on GitHub:
Series contents
Episode
Topics
Written tutorial
Video
1.21.1 source
26.2 source
1
Basic project setup, Gradle, mod metadata, events, and running the game
Use the Minecraft 1.21.1 instructions when you want the established NeoForge 21.1 ecosystem. Use the Minecraft 26.2 section at the end of each episode when you are targeting the newer release. Do not mix snippets from the two versions unless the tutorial explicitly says that their APIs are identical.
In this tutorial we will create the smallest useful NeoForge mod project. The mod will not add blocks or items yet. It will load in Minecraft and write one message to the log, giving us a clean base for the rest of the series.
The main tutorial targets:
The final section explains every setup difference for Minecraft 26.2 and says when each difference was introduced. This is useful when targeting an intermediate version such as 1.21.11.
Quick guide for intermediate versions
Target Minecraft versions
Java
Version style
Metadata starting point
1.21.1 through 1.21.4
21
1.21.x; NeoForge 21.x.y
Keep modLoader and loaderVersion as shown in this tutorial
1.21.5 through 1.21.11
21
1.21.x; NeoForge 21.x.y
Current official MDKs omit the two loader fields
26.1 and newer
25
Year-based Minecraft number; full Minecraft number in NeoForge version
Use the shorter metadata and Java 25
Target Minecraft versions Java Version style Metadata starting point 1.21.1 through 1.21.4 21 1.21.x ; NeoForge 21.x.y Keep modLoader and loaderVersion as shown in this tutorial
Treat this table as a starting point, then check the MDK and migration primer for the exact version you are targeting. Minecraft APIs can change even when the basic project layout stays the same.
Member Details
Hey everyone,
I've been rebuilding my old MultiLoader tutorial series into a proper documentation site, and I thought I'd share it here in case it's useful to anyone getting into modern Minecraft modding.
Site: https://moddingwithryan.com
The focus is on Minecraft 1.21.1 and 26.1+, using a shared codebase for Fabric and NeoForge. Everything is written as step by step guides with working code examples rather than just snippets.
So far the series covers things like:
Setting up a MultiLoader workspace from scratch
RegistrationUtils
Items and blocks
Data generation
Food, tools and armour
Block entities
Networking
Mixins
Custom Entities
Ore generation
Commands
Biomes
Enchantments
There are currently over 40 tutorials across Fabric, Forge, NeoForge and MultiLoader, and I'm adding more as I go.
The aim is to keep everything up to date with modern modding instead of relying on tutorials from several versions ago.
If you end up using it, I'd genuinely appreciate any feedback or suggestions for topics you'd like to see covered next.
Source: NeoForge Modding Tutorial - Minecraft 1.21: Getting Started | #1 | daily.dev (https://daily.dev/posts/bypzuv6ni)
A comprehensive setup guide for creating Minecraft mods using NeoForge for version 1.21. Covers installing Java JDK 21, setting up IntelliJ IDEA Community...
Covers installing Java JDK 21, setting up IntelliJ IDEA Community Edition, creating a GitHub repository from the NeoForge MDK template, configuring the development environment, and running the first mod. Includes important configuration steps like setting up project structure, updating Gradle properties, and establishing proper naming conventions for mod development. ... Joined Aug 29. 2024 ... Creating professional .NET Apps, Unity Games and Minecraft Mods.
Source: NeoForge Modding Tutorial - Minecraft 1.21.1: Custom Recipe Type | #59 - YouTube (https://www.youtube.com/watch?v=gwxZ9Cn1kFo)
In this Minecraft Modding Tutorial, we are adding a Custom Recipe Type to our Block Entity with 1.21.1 and with NeoForge.== 1.21 MODDING COURSES == ▶️ NeoFor...
Source: Modding By Kaupenjoe: NeoForge Modding for Minecraft 1.21.X | Kaupenjo (https://courses.kaupenjoe.net/p/modding-by-kaupenjoe-neoforge-modding-for-minecraft-1-21-x)
Currently the entire course supports up to 1.21.1, but not beyond! This course is a one-time purchase! NOT AN OFFICIAL MINECRAFT PRODUCT. NOT APPROVED BY OR ASSOCIATED WITH MOJANG. It ain't much, but it's honest work. Adding some Custom Crops can spice up your Minecraft Mod!
More Advanced topics are also included, such as Custom Crops, understanding concepts like BlockStates and the new 1.21 Component System and many more! Custom World Generation and a special focus on Custom Mobs is going to super charge your mod-making skills. The course will be continuously updated over the weeks and months with more topics and lectures based on your feedback! So what are you waiting for? Start your Minecraft Modding Journey now and buy this course! ... The NeoForge 1.21 Course will include all the topics listed below as well as any additional topics for 1.21 released in the future.
Currently the entire course supports up to 1.21.1, but not beyond! This course is a one-time purchase! NOT AN OFFICIAL MINECRAFT PRODUCT. NOT APPROVED BY OR ASSOCIATED WITH MOJANG. It ain't much, but it's honest work. Adding some Custom Crops can spice up your Minecraft Mod!
Start the Journey to making your own Minecraft Mod with this Course!
Source: NeoForge Modding Tutorial - Minecraft 1.21.1: Crafting Block Entity | #58 - YouTube (https://www.youtube.com/watch?v=K1PJFPg5uA0)
In this Minecraft Modding Tutorial, we are adding a GUI to our Block Entity with 1.21.1 and with NeoForge.== 1.21 MODDING COURSES == ▶️ NeoForge Modding with...
Source: NeoForge Modding Tutorial - Minecraft 1.21.1: Ore Generation | #34 - YouTube (https://www.youtube.com/watch?v=PO3D8DxfnlU)
In this Minecraft Modding Tutorial, we are adding Custom Ore Generation in Minecraft 1.21.1 with NeoForge.== 1.21 MODDING COURSES == ▶️ NeoForge Modding with...
Source: NeoForge Modding Tutorial - Minecraft 1.21.1: Custom Mob | #39 - YouTube (https://www.youtube.com/watch?v=xBG1jWHSxrU)
In this Minecraft Modding Tutorial, we are adding a Custom Mob (or Custom Entity) to Minecraft 1.21.1 with NeoForge.== 1.21 MODDING COURSES == ▶️ NeoForge Mo...
Source: NeoForge Modding Tutorial - Minecraft 1.21.1: Custom Block Models | #45 - YouTube (https://www.youtube.com/watch?v=2VE4_4arqbI)
In this Minecraft Modding Tutorial, we are adding Custom Block Models to Minecraft 1.21.1 and with NeoForge.== 1.21 MODDING COURSES == ▶️ NeoForge Modding wi...
Source: NeoForge Modding Tutorial - Minecraft 1.21.1: Modify Vanilla Loot Tables | #54 - YouTube (https://www.youtube.com/watch?v=MsnQTfmdlVU)
In this Minecraft Modding Tutorial, we are Modifying Vanilla Loot Tables with 1.21.1 and with NeoForge.== 1.21 MODDING COURSES == ▶️ NeoForge Modding with Mi...
Source: r/feedthebeast on Reddit: How to ACTUALLY start developing my own mod? (https://www.reddit.com/r/feedthebeast/comments/1jys24o/how_to_actually_start_developing_my_own_mod/)
For one, don't use Forge for 1.21.1. Use · NeoForge, you're gonna have a better time (unless that's what you're already using and you just wrote Forge instead). Second, make sure your IDE is setup correctly. ... Minecraft Development plugin. It includes a bunch of utilities, including all kinds of templates for mods and plugins.
For one, don't use Forge for 1.21.1. Use · NeoForge, you're gonna have a better time (unless that's what you're already using and you just wrote Forge instead). Second, make sure your IDE is setup correctly. ... Minecraft Development plugin. It includes a bunch of utilities, including all kinds of templates for mods and plugins.
Since origins Forge stops at 1.20.1 and the team stopped working on the NeoForge upgrade to 1.21.1 I’ve decided to try making my own simpler version of Origins lol · I’ve done all this with about 4 hours of java knowledge and I’m learning more and more every day. ... Yo that's spicy, let me know when it's out! ... Honestly, just get some development experience under your belt, minecraft isn't exactly technically simple, if you want to start regardless, you're going to be basically bashing your head against a wall because yes, docu in general tends to be somewhat meh at best.
If you want to add something minecraft already has examples most of the time. Secondly, even chatgpt knows how to make mods these days. Atleast, it's good until 1.21.1 I've noticed. It's a great teacher, helped me a lot when the neoforge documentation wasn't clear.
45 votes, 24 comments. So recently I started making my own mod by following Kaupenjoe's modding tutorial series for 1.21.1 and I already added a…
Source: NeoForge Modding Tutorial - Minecraft 1.21.1: JEI Compatibility | #59 - YouTube (https://www.youtube.com/watch?v=15N9APaxJhE)
In this Minecraft Modding Tutorial, we are adding a JEI Compatibility to our Block Entity with 1.21.1 and with NeoForge.== 1.21 MODDING COURSES == ▶️ NeoForg...
Source: NeoForge Modding Tutorial - Minecraft 1.21.1: Bush Generation | #38 - YouTube (https://www.youtube.com/watch?v=nZC176FOMX8)
In this Minecraft Modding Tutorial, we are adding Bush Generation in Minecraft 1.21.1 with NeoForge.== 1.21 MODDING COURSES == ▶️ NeoForge Modding with Minec...
Source: NeoForge Modding Tutorial - Minecraft 1.21.1: Basic World Gen Setup | #33 - YouTube (https://www.youtube.com/watch?v=_eJEh5riZbY)
In this Minecraft Modding Tutorial, we are looking getting ready for any type of World Gen by setting up World Gen for our Modding Project in Minecraft 1.21....
Source: r/feedthebeast on Reddit: New tutorial series for NeoForge 1.21.1 and 26.2 (https://www.reddit.com/r/feedthebeast/comments/1w9o5ge/new_tutorial_series_for_neoforge_1211_and_262/)
Tutorial 4, mod integration: https://youtu.be/QxwujH3DXvo · The wiki has also been updated and can be found here: https://mcjty.eu/docs/1.21.1_26.2
57 votes, 10 comments. I just started a new tutorial series for Minecraft 1.21.1 and 26.2 (NeoForge). The tutorial covers both versions at the same…
i've seen a few 'how do i make mods' posts recently but they were for current-ish minecraft versions so i couldn't point them towards mcjty.eu ... A detailed template/base list for altertypes (Otherkin, Therian, Fictionkin versions).... plz I spent hours bc OCD ... Better Fishtanks 26.1.2 Neoforge Out NOW!
Posted by u/McJty - 57 votes and 10 comments
Tutorial 4, mod integration: https://youtu.be/QxwujH3DXvo · The wiki has also been updated and can be found here: https://mcjty.eu/docs/1.21.1_26.2
If you follow the news of Minecraft modding, you have certainly heard of NeoForge. This new mod loader is gradually replacing Forge as the standard for recent versions of the game. The biggest modpacks of 2026 All The Mods 10, Better MC 5, All the Mons are already running on it.
But concretely, what is NeoForge Minecraft, how is it different from Forge and Fabric, and how do you get started? This guide covers everything: the history of the project, installation (client and server), the best NeoForge mods, and migration from Forge if you have an existing server.
The history: from Forge to NeoForge
Forge has existed since 2011 and has long been the only serious loader for Minecraft. For over a decade, it was THE standard for modding. However, over the years, tensions arose within the development team regarding the direction of the project and its governance.
In 2023, a large part of the Forge team (including the main maintainer, cpw) left the project to create NeoForge, a fork of Forge with more open governance, faster development, and modernization of the code. Since then, NeoForge has become the default loader for Minecraft versions 1.20.5+, and almost all major new modpacks have adopted it.
Forge continues to exist and still receives updates, but the ecosystem is clearly migrating towards NeoForge. For versions 1.20.1 and earlier, Forge remains relevant. For versions 1.20.5 and above, NeoForge is the recommended choice.
This generates the necessary files in the current folder. Start the server with the run.sh (Linux) or run.bat (Windows) script created by the installer. Accept the EULA by modifying eula.txt, then restart. The /mods folder is automatically created; place your .jar mod files there.
Make sure to use Java 21 for Minecraft 1.21+ and allocate enough RAM (6-8 GB minimum for a modded pack).
NeoForge is a free, open-source, community-oriented modding API for Minecraft. It makes it very easy to install a number of different Minecraft mods.
Due to internal disagreements, the members of the Forge Team decided to split off, except for the founder, and create a new group to develop a new modloader called NeoForge. NeoForge is a fork of Minecraft Forge since Minecraft 1.20.1, but starting from Minecraft version 1.20.2, it became entirely independent. NeoForge is the official name that the team now uses to support Minecraft players across the latest versions. Noticing advantages over Minecraft Forge, renowned mod developers have begun incorporating NeoForge into their mods.
Features:
An open-source platform for Modders to collaborate to make a great mod.
Allowing players to use mods in their game.
One of NeoForge’s main features is the event system. Events are fired for various things that happen in the game. For example, there are events for when the player right clicks, when a player or another entity jumps, when blocks are rendered, when the game is loaded, etc. A modder can subscribe event handlers to each of these events, and then perform their desired behavior inside these event handlers.
And much more.
NeoForge Download Links
Voici le code complet d'un mod NeoForge 1.21.1 qui fait tourner les chats nommés "Matou" sur eux-mêmes.
package com.example.dancingcat;
import net.neoforged.bus.api.IEventBus;
import net.neoforged.fml.common.Mod;
import net.neoforged.neoforge.common.NeoForge;
@Mod(DancingCatMod.MOD_ID)
public class DancingCatMod {
public static final String MOD_ID = "dancingcat";
public DancingCatMod(IEventBus modEventBus) {
// Enregistre le gestionnaire d'événements sur le bus global
NeoForge.EVENT_BUS.register(new CatDanceHandler());
System.out.println("[DancingCat] Mod chargé ! Les chats nommés 'Matou' vont danser !");
}
}
package com.example.dancingcat;
import net.minecraft.network.chat.Component;
import net.minecraft.world.entity.Entity;
import net.minecraft.world.entity.animal.Cat;
import net.minecraft.world.phys.Vec3;
import net.neoforged.bus.api.SubscribeEvent;
import net.neoforged.neoforge.event.tick.EntityTickEvent;
public class CatDanceHandler {
// Vitesse de rotation en degrés par tick (20 ticks = 1 seconde)
// 10.0f = rotation complète en 1.8 seconde
private static final float ROTATION_SPEED = 10.0f;
@SubscribeEvent
public void onEntityTick(EntityTickEvent.Post event) {
Entity entity = event.getEntity();
// Vérifie si c'est un chat
if (entity instanceof Cat cat) {
// Récupère le nom personnalisé
Component customName = cat.getCustomName();
// Vérifie si le nom est exactement "Matou"
if (customName != null && customName.getString().equals("Matou")) {
// Ne fait tourner que côté serveur pour la synchronisation
if (!cat.level().isClientSide) {
float currentYRot = cat.getYRot();
float newYRot = currentYRot + ROTATION_SPEED;
// Normalise la rotation entre 0 et 360
if (newYRot >= 360.0f) {
newYRot -= 360.0f;
}
// Applique la rotation (corps, tête et vue)
cat.setYRot(newYRot);
cat.setYHeadRot(newYRot);
cat.setYBodyRot(newYRot);
// Optionnel : empêche le chat de bouger horizontalement pour qu'il reste sur place
Vec3 motion = cat.getDeltaMovement();
cat.setDeltaMovement(0, motion.y, 0);
// Marque l'entité comme modifiée pour forcer la sync réseau
cat.hasImpulse = true;
}
}
}
}
}
Compilation et test
Ouvre un terminal dans le dossier du projet
Génère le wrapper Gradle (si pas déjà fait) :
bash
gradle wrapper
Compile le mod :
bash
./gradlew build
(ou gradlew.bat build sur Windows)
Le fichier JAR se trouvera dans build/libs/dancingcat-1.0.0.jar
Installation : Copie le JAR dans le dossier mods de ton instance Minecraft 1.21.1 avec NeoForge 21.1.x
Utilisation en jeu
Spawn un chat (ou trouve-en un)
Prends une Étiquette de nom (Name Tag)
Renomme-la "Matou" dans une enclume (coût : 1 niveau d'XP)
Utilise l'étiquette sur le chat
Le chat va commencer à tourner sur lui-même ! 🐱💃
Personnalisation
Tu peux modifier la vitesse dans CatDanceHandler.java :
ROTATION_SPEED = 5.0f → rotation lente (1 tour en 3.6s)
ROTATION_SPEED = 20.0f → rotation rapide (1 tour en 0.9s)
ROTATION_SPEED = 45.0f → très rapide (style toupie)
Tu peux aussi changer le nom déclencheur en modifiant :
java
customName.getString().equals("Matou")
par exemple "ChatDansant" ou "DiscoCat".
Le mod vérifie le nom à chaque tick, donc si tu renommes le chat autrement, il s'arrête de tourner immédiatement !