FABRIC MOD GENERATOR
Describe a Fabric mod in plain English. Codexe scaffolds the full Loom Gradle project, writes the mixins where needed, and ships a runnable .jar.
Why Codexe for Fabric mods
Loom Gradle, ready
build.gradle wired for Fabric Loom with the right mappings, loader and API versions for the Minecraft you picked. Just ./gradlew build.
Mixin-aware
When mixin injection is needed, Codexe writes @Mixin classes, mixins.json + refmap, and registers them in fabric.mod.json. Pick the right injection point automatically.
Server + client splits
Mod entry points correctly split into client and server initializers. Client-only HUDs, screens and rendering go in the right module.
Yarn or Mojang mappings
Pick what you prefer. Codexe outputs code matching the chosen mapping set so it compiles cleanly.
Compiled .jar
Build runs server-side. You drop the .jar in /mods alongside fabric-api, restart, the mod loads.
Source is yours
Publish on Modrinth, CurseForge, GitHub. License however you like. No royalties.
Example Fabric mod prompts
From a single tweak via mixin to a full content pack. Some real prompts you can paste:
New tool tier
“A Fabric 1.21 mod that adds 'mythril' ingot, ore (overworld + deepslate variants), and full mythril tool/armor set. Mythril armor gives Speed I when full set is worn.”
Mixin: keep XP on death
“A Fabric mod that uses a mixin on PlayerEntity.dropXp() to skip the XP drop, so players keep all XP on death. Configurable via a JSON file in config/.”
HUD overlay
“A client-side Fabric mod that draws a small HUD in the top-right showing current biome name, time of day, and number of nearby hostile mobs within 32 blocks.”
Custom recipe type
“A Fabric mod that adds a 'crusher' block with a custom recipe type. Datapacks can register inputs/outputs. Include an example datapack.”
Fabric mod generator FAQ
Does it use Fabric Loom?
+
Yes. Codexe outputs a Loom Gradle project (build.gradle + gradle.properties wired for Fabric Loom) so you can run ./gradlew build and ./gradlew runClient out of the box.
Mixins?
+
Yes. If your prompt requires mixin injection (e.g. modifying vanilla behavior), Codexe writes the @Mixin classes, the mixins.json refmap and registers them in fabric.mod.json. Inject, redirect, modifyArg, it picks the right pattern.
Which Minecraft versions?
+
1.20.x and 1.21.x are first-class. The generator targets the Yarn / Mojang mappings appropriate for the version you pick.
Fabric API or pure Loader?
+
Both. By default Codexe uses Fabric API (it's expected on most setups), but you can ask for a Loader-only mod and the generator will avoid the API helpers.
Custom items, blocks, entities?
+
Yes. Registry registration is done through Identifier-keyed Registry.register calls. Block entities, screen handlers, particle types, sound events, all addressable via prompt.
Does it compile?
+
Yes. Build runs server-side, you receive the .jar plus source. If a build fails the AI iterates on the error until it works.
Do I own the mod?
+
Yes. Source is yours. Publish on Modrinth, CurseForge, GitHub, sell it, no royalties.
READY FOR A NEW MOD?
Free tier refills 50K tokens daily, small Fabric mods fit comfortably.
START FORGING