Loom · Mixin · 1.20.1 / 26.x

TRÌNH TẠO MOD FABRIC

Mô tả một mod Fabric bằng ngôn ngữ thường ngày. Codexe dựng sẵn toàn bộ dự án Loom Gradle, viết mixin khi cần và giao một tệp .jar chạy được.

Vì sao chọn Codexe cho mod Fabric

Loom Gradle, sẵn sàng

build.gradle wired for Fabric Loom with the right mappings, loader and API versions for the Minecraft you picked. Just ./gradlew build.

Hiểu mixin

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.

Tách máy chủ + client

Mod entry points correctly split into client and server initializers. Client-only HUDs, screens and rendering go in the right module.

Mapping Yarn hoặc Mojang

Pick what you prefer. Codexe outputs code matching the chosen mapping set so it compiles cleanly.

.jar đã biên dịch

Build runs server-side. You drop the .jar in /mods alongside fabric-api, restart, the mod loads.

Mã nguồn là của bạn

Publish on Modrinth, CurseForge, GitHub. License however you like. No royalties.

Prompt mod Fabric mẫu

Từ một chỉnh sửa nhỏ qua mixin đến cả gói nội dung hoàn chỉnh. Một số prompt thật bạn có thể dán:

Bộ công cụ mới

“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: giữ XP khi chết

“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/.”

Lớp phủ HUD

“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.”

Loại công thức tùy chỉnh

“A Fabric mod that adds a 'crusher' block with a custom recipe type. Datapacks can register inputs/outputs. Include an example datapack.”

Câu hỏi thường gặp về trình tạo mod Fabric

Có dùng Fabric Loom không?

+

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.

Mixin?

+

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.

Hỗ trợ những phiên bản Minecraft nào?

+

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 hay chỉ 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.

Vật phẩm, khối, thực thể tùy chỉnh?

+

Yes. Registry registration is done through Identifier-keyed Registry.register calls. Block entities, screen handlers, particle types, sound events, all addressable via prompt.

Nó có biên dịch được không?

+

Yes. Build runs server-side, you receive the .jar plus source. If a build fails the AI iterates on the error until it works.

Tôi có sở hữu mod không?

+

Yes. Source is yours. Publish on Modrinth, CurseForge, GitHub, sell it, no royalties.

Need a different loader, or something server-side? Codexe also generates:

Cách Codexe xây dựng và kiểm tra các dự án này, nên ghi gì trong yêu cầu và các vấn đề thường gặp: hướng dẫn Fabric mods.

SẴN SÀNG CHO MOD MỚI?

Gói Free nạp lại 50K token mỗi ngày, các mod Fabric nhỏ vừa thoải mái.

BẮT ĐẦU RÈN
Trình tạo mod Fabric – mod Minecraft Fabric do AI tạo | Codexe