FABRIC-MOD-GENERATOR
Beskriv en Fabric-mod med almindelige ord. Codexe sætter hele Loom Gradle-projektet op, skriver mixins, hvor der er brug for det, og leverer en kørbar .jar.
Hvorfor Codexe til Fabric-mods
Loom Gradle, klar til brug
build.gradle wired for Fabric Loom with the right mappings, loader and API versions for the Minecraft you picked. Just ./gradlew build.
Mixin-bevidst
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.
Opdeling i server og klient
Mod entry points correctly split into client and server initializers. Client-only HUDs, screens and rendering go in the right module.
Yarn- eller Mojang-mappings
Pick what you prefer. Codexe outputs code matching the chosen mapping set so it compiles cleanly.
Kompileret .jar
Build runs server-side. You drop the .jar in /mods alongside fabric-api, restart, the mod loads.
Kildekoden er din
Publish on Modrinth, CurseForge, GitHub. License however you like. No royalties.
Eksempelprompter til Fabric-mods
Fra en enkelt justering via mixin til en komplet indholdspakke. Nogle rigtige prompter, du kan indsætte:
Nyt værktøjsniveau
“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: behold XP ved død
“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.”
Brugerdefineret opskriftstype
“A Fabric mod that adds a 'crusher' block with a custom recipe type. Datapacks can register inputs/outputs. Include an example datapack.”
Ofte stillede spørgsmål om Fabric-modgeneratoren
Bruger det 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.
Hvilke Minecraft-versioner?
+
1.20.1 by default, with Yarn mappings, and Minecraft 26.x when you ask for it: 26.x is not obfuscated, so the mod uses the new Loom setup (no mappings, Java 25). Write the version in the request.
Fabric API eller rent 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.
Brugerdefinerede genstande, blokke, entities?
+
Yes. Registry registration is done through Identifier-keyed Registry.register calls. Block entities, screen handlers, particle types, sound events, all addressable via prompt.
Kompilerer det?
+
Yes. Build runs server-side, you receive the .jar plus source. If a build fails the AI iterates on the error until it works.
Ejer jeg modden?
+
Yes. Source is yours. Publish on Modrinth, CurseForge, GitHub, sell it, no royalties.
Andre Codexe-generatorer
Need a different loader, or something server-side? Codexe also generates:
Hvordan Codexe bygger og tjekker disse projekter, hvad du skal skrive i anmodningen, og de almindelige problemer: guide til Fabric mods.
KLAR TIL EN NY MOD?
Det gratis niveau fyldes op med 50K tokens hver dag, små Fabric-mods passer fint.
BEGYND AT SMEDE