@Mod(RubyMod.MOD_ID)
public final class RubyMod {
public static final String MOD_ID = "rubymod";
public static final DeferredRegister.Items ITEMS =
DeferredRegister.createItems(MOD_ID);
public static final DeferredItem<Item> RUBY =
ITEMS.registerSimpleItem("ruby");
public RubyMod(IEventBus modEventBus) {
ITEMS.register(modEventBus);
}
}NeoForge is the mod loader a large part of the modding community moved to after it forked from Forge in 2023. If you play big modpacks, there's a good chance they run on NeoForge. Making a mod for it has always meant learning Java, Gradle and a large API, and in 2026 there's an extra problem: most guides online are written for older versions.
This guide covers what changed for NeoForge on Minecraft 26.1 and 26.2, how NeoForge compares to Fabric, and how to make a NeoForge mod with AI, step by step, without writing the code yourself.
What changed in NeoForge for 26.x
After 1.21.11, Mojang switched Minecraft to year-based version numbers: 1.21.11 was followed by 26.1, then 26.2. There is no 1.22. Two other changes matter even more if you've tried older tutorials:
- The game is no longer obfuscated. Every class and method uses Mojang's own name, so there are no mappings to set up. Old names like
World,PlayerEntityorResourceLocationare gone; it'sLevel,PlayerandIdentifier. - Old Forge APIs don't exist.
RegistryObject,FMLJavaModLoadingContextandMinecraftForge.EVENT_BUSare from Forge and won't compile on NeoForge 26.x. - Registration uses DeferredRegister. Items and blocks are registered with
DeferredRegister.createItemsandcreateBlocks, which hand backDeferredItemandDeferredBlock. - Two event buses. Setup and registration events go on the mod bus; gameplay events go on
NeoForge.EVENT_BUS.@EventBusSubscriberpicks the right one for you and no longer takes a bus parameter. - Java 25 and ModDevGradle. 26.x mods build with ModDevGradle and Java 25.
This is exactly where AI tools usually fail: they learned from years of old Forge code and confidently write APIs that were removed. More on how Kodari avoids that below.
NeoForge or Fabric?
| NeoForge | Fabric | |
|---|---|---|
| Popular for | Large modpacks and content mods | Lightweight mods and fast updates |
| Versions on Kodari | 26.2, 26.1.2 (beta) | 26.3 back to 1.18.2 (beta) |
| Entry point | A class annotated @Mod | A class implementing ModInitializer |
| Source sets | One, client code kept in its own package | Separate main and client source sets |
| Mod metadata | neoforge.mods.toml | fabric.mod.json |
The short version: build for the loader your players use. If your friends or your modpack run NeoForge, make a NeoForge mod. If you want the widest range of versions, Fabric covers more of them on Kodari.
How Kodari writes NeoForge mods
For every NeoForge project, the AI has the complete Minecraft source with NeoForge's patches applied, plus the NeoForge source itself, for the exact version you picked. Before it writes code that touches the game or NeoForge, it looks the class up in that source and copies the real signature, instead of recalling old Forge code from memory.
- Pinned versions: NeoForge 26.2.0.89 for 26.2 and 26.1.2.115 for 26.1.2.
- Real builds: every mod compiles with ModDevGradle on Java 25, and you download the .jar.
- Self-fixing: when a build fails, the AI reads the compiler error, looks up what replaced the API, and fixes it, up to 3 attempts.
Make a NeoForge mod, step by step
- Create a free Kodari account and start a new project.
- Open the Mods tab, pick NeoForge, then 26.2 or 26.1.2.
- Describe your mod in plain English, with numbers where they matter.
- Let the AI write the mod, then compile it.
- Download the .jar and put it in your
.minecraft/modsfolder. - Install NeoForge for the same Minecraft version with the installer from neoforged.net.
- Launch Minecraft with the NeoForge profile and try your mod.
A good first prompt is small and specific:
Make a NeoForge mod for Minecraft 26.2 that adds rubies.
- Ruby ore generates underground, a bit rarer than diamonds
- Mining it drops 1 ruby, and Fortune works
- A ruby sword with 8 attack damage and 1800 durability
- Rubies and the sword appear in the Combat creative tab
Generate textures for the ruby, the ore and the sword.Tips for better NeoForge mods
- Say NeoForge. If you just ask for "a mod", Kodari picks Fabric. Choose NeoForge in the picker or name it in your prompt.
- Start with one feature. An item that works beats a full content pack that half works. Add the rest in later messages.
- Mention client-side features. Screens, HUD elements and key bindings are client only; saying so keeps your mod from crashing a dedicated server.
- Ask for a config. NeoForge has a built-in config screen, so your players can tweak numbers without editing files.
- Remember it's in beta. If something breaks in game, describe what happened in the same project and the AI fixes it.
The hardest part of modding in 2026 isn't the idea. It's finding code that still compiles.
Frequently asked questions
Can I make a NeoForge mod without coding?
Yes. With Kodari you describe the mod in plain English, pick NeoForge 26.2 or 26.1.2, and the AI writes the Java code, compiles it with ModDevGradle and fixes build errors. You download a working .jar.
Which NeoForge versions does Kodari support?
Minecraft 26.2 (NeoForge 26.2.0.89) and 26.1.2 (NeoForge 26.1.2.115), in beta. For older Minecraft versions, Kodari supports Fabric back to 1.18.2.
Why do old Forge tutorials not work on NeoForge 26.x?
NeoForge removed Forge APIs like RegistryObject and FMLJavaModLoadingContext, and Minecraft 26.x is unobfuscated, so class names changed to Mojang's official ones. Code from older tutorials usually fails to compile.
Do Forge mods work on NeoForge?
Not for these versions. NeoForge and Forge have drifted apart since the fork, so a mod has to be built for NeoForge to load on it.
Should I pick NeoForge or Fabric?
Build for the loader your players use. NeoForge is common in large modpacks; Fabric is popular for lightweight mods and covers more versions on Kodari.
Is it free?
You can start free. New Kodari accounts get 10 credits, plus 50 more on the first daily reward claim, enough to try a first small mod.
How do I install a NeoForge mod?
Install NeoForge for your Minecraft version with the installer from neoforged.net, put the mod .jar in your .minecraft/mods folder, and launch the NeoForge profile.