为什么用 Codexe 做 Forge 模组
真正的 Gradle 项目
build.gradle, settings.gradle, gradle.properties, mods.toml, the full ForgeGradle layout. Build right away with ./gradlew build.
规范的注册表
DeferredRegister for blocks, items, block entities, entities, sounds, particles. Proper RegistryObjects, no static-init pitfalls.
Forge 和 NeoForge 都支持
Pick the loader. Codexe knows the API differences (event buses, mods.toml format, registry naming) and outputs loader-specific code.
数据生成
Loot tables, recipes, advancements, language files via the data gen pipeline, not hand-written JSON, so updating is trivial.
编译好的 .jar
Build runs server-side. You drop the .jar in /mods, restart, the mod loads. Source ZIP also downloadable.
源代码归你
Publish on CurseForge, Modrinth, GitHub. License it however. No royalties on what you ship.
Forge 模组提示词示例
从单个新矿石,到完整的内容包。下面是一些可以直接粘贴的真实提示词:
自定义矿石和工具等级
“A Forge mod for 1.20.1 that adds 'sapphire' ore in the overworld (deep slate variant included), sapphire ingot, full sapphire tool tier (sword/pickaxe/axe/shovel/hoe), and armor set with night vision while wearing all 4.”
发光实体
“Add a passive 'wisp' entity that floats 2 blocks above ground, emits light level 12, drops 1-3 glowstone dust on death, and only spawns at night in plains biomes.”
防作弊
“If a player is more than 100 blocks away from any other player AND has been mining for 10+ min straight, send a server-wide chat message naming them. Configurable thresholds in config/.”
配方与数据包钩子
“A mod that lets datapacks define 'shaped_3x3_with_byproduct' crafting recipes through a custom recipe serializer. Include an example datapack folder.”
Forge 模组生成器常见问题
支持 Forge 和 NeoForge 吗?
+
Yes, both. Pick the loader on the create page. Codexe scaffolds the right entry point (@Mod for Forge, neoforge.mods.toml for NeoForge) and the loader-specific event bus subscriptions.
支持哪些 Minecraft 版本?
+
1.20.x and 1.21.x are first-class targets. Older 1.19/1.18 work but expect the AI to use the API surface available for that version.
能添加自定义方块、物品、实体吗?
+
Yes. Describe what you need ("a glowing ruby ore that drops a ruby item, plus a ruby block recipe") and Codexe registers the BlockItems, BlockEntities, the data generators for loot tables and recipes, and the en_us.json translations.
构建真的能编译吗?
+
Yes. We compile server-side using ForgeGradle / NeoGradle. You get the .jar for /mods plus the source ZIP. If a build fails the AI iterates on the error.
网络通信、capability、数据包呢?
+
Networking via SimpleChannel / NetworkRegistry, capabilities through AttachCapabilitiesEvent, datapack support via the data generator pipeline. Mention them in the prompt and the AI wires them.
模组归我吗?
+
Yes. Source is yours. Publish on CurseForge, Modrinth, GitHub, sell it, modify it, no royalties.
有免费套餐吗?
+
Yes, 50K daily tokens. Mods tend to be larger than plugins so Pro / Business often pays for itself in time saved, see /pricing.
其他 Codexe 生成器
Targeting a different loader or the server side instead? Codexe also generates:
Codexe 如何构建和检查这些项目、需求里该写什么,以及常见问题:Forge and NeoForge mods 指南。