FABRIC MOD GENERÁTOR
Opíš mod pre Fabric vlastnými slovami. Codexe pripraví celý projekt Loom Gradle, kde treba, napíše mixiny a dodá spustiteľný .jar.
Prečo Codexe pre mody Fabric
Loom Gradle, pripravený
build.gradle wired for Fabric Loom with the right mappings, loader and API versions for the Minecraft you picked. Just ./gradlew build.
S podporou mixinov
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.
Rozdelenie na server a klienta
Mod entry points correctly split into client and server initializers. Client-only HUDs, screens and rendering go in the right module.
Mappingy Yarn alebo Mojang
Pick what you prefer. Codexe outputs code matching the chosen mapping set so it compiles cleanly.
Skompilovaný .jar
Build runs server-side. You drop the .jar in /mods alongside fabric-api, restart, the mod loads.
Zdrojový kód je tvoj
Publish on Modrinth, CurseForge, GitHub. License however you like. No royalties.
Príklady zadaní pre mody Fabric
Od jednej úpravy cez mixin až po kompletný balík obsahu. Niekoľko skutočných zadaní, ktoré môžeš vložiť:
Nová úroveň nástrojov
„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: zachovať XP po smrti
„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.“
Vlastný typ receptu
„A Fabric mod that adds a 'crusher' block with a custom recipe type. Datapacks can register inputs/outputs. Include an example datapack.“
Časté otázky o generátore modov pre Fabric
Používa 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.
Mixiny?
+
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.
Ktoré verzie Minecraftu?
+
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 alebo čistý 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.
Vlastné predmety, bloky, entity?
+
Yes. Registry registration is done through Identifier-keyed Registry.register calls. Block entities, screen handlers, particle types, sound events, all addressable via prompt.
Skompiluje sa to?
+
Yes. Build runs server-side, you receive the .jar plus source. If a build fails the AI iterates on the error until it works.
Patrí mi mod?
+
Yes. Source is yours. Publish on Modrinth, CurseForge, GitHub, sell it, no royalties.
Ďalšie generátory Codexe
Need a different loader, or something server-side? Codexe also generates:
Ako Codexe tieto projekty zostavuje a kontroluje, čo uviesť v zadaní a bežné problémy: príručka Fabric mods.
PRIPRAVENÝ NA NOVÝ MOD?
Plán Free dopĺňa denne 50K tokenov, malé mody pre Fabric sa pohodlne zmestia.
ZAČNI KOVAŤ