为什么用 AI 生成数据包
原版,零依赖
Drop the folder in <world>/datapacks/, run /reload, done. No mod loader, no plugin, no Java required to run.
现代命令语法
Execute store, predicate selectors, function tags, item components, the generator uses current syntax for the version you specified.
规范的进度树
Hidden advancements, parent chains, custom frames, display titles, multiple triggers per advancement. Reward functions wired automatically.
战利品表和配方
Drop chances with proper functions, conditions, rolls. Shaped, shapeless, smelting, smithing transform recipes. Item modifiers for the new component system.
通过聊天迭代
"Add a 5% chance to also drop a diamond". "Make the function repeating, every 5 ticks". The AI edits the pack in place.
一切都归你
Source folder is yours. Share on Planet Minecraft, sell on PMC market, use on your realm. No royalties.
数据包提示词示例
从单个配方覆盖,到多功能的玩法调整包。下面是一些可以直接粘贴的真实提示词:
自定义“海洋之心”图腾
“On craft of a Heart of the Sea, give the player a Totem of Undying with custom_name 'Sea Totem' and custom_data {sea_totem:true}. When triggered, also fill nearby 5-block radius with conduit power for 30s.”
进度树:“Speedrunner”
“A 5-step advancement tree titled 'Speedrunner': enter Nether, locate Stronghold, kill Ender Dragon, do all in under 30 minutes, do all without dying. Last two are hidden until Dragon kill.”
自定义配方:用原木合成木棍
“A shapeless recipe converting 1 log of any type into 16 sticks. Override the default if possible, otherwise add it as a separate recipe.”
防挂机农场
“A repeating function that detects players standing still for over 30 seconds in spawn chunks and teleports them to spawn with a chat message.”
数据包生成器常见问题
生成的数据包包含什么?
+
Whatever you ask for: mcfunctions, advancements, loot tables, recipes, item modifiers, predicates, tags. The pack.mcmeta is set to the right pack_format for your Minecraft version, and the folder structure follows the standard data/
支持哪些 Minecraft 版本?
+
From 1.20.1 to 26.x, with the matching pack_format. Codexe test-loads the pack on a real server of the version you pick before calling it Ready.
我需要安装任何模组或插件吗?
+
No. Datapacks are pure vanilla Minecraft. Drop the folder in
能使用现代命令语法吗(execute store、谓词、物品组件)?
+
Yes. The generator targets modern command syntax: execute as/at/store, predicate-based selectors, 1.21 item components for custom items via /give. No legacy hacks unless you ask for backwards compatibility.
能做会发放奖励的进度吗?
+
Yes. Tree-based advancements with display, criteria (any of the trigger types) and rewards (functions, loot, recipes). Hidden advancements, parents and frames all configurable.
数据包里能有自定义物品吗?
+
1.20.5+ component-based items are first-class, minecraft:custom_data, minecraft:custom_model_data, lore, attribute modifiers. The generator emits the right /give string and the loot tables reference it correctly.
免费吗?
+
Yes, 50K daily tokens. Datapacks tend to be small so most fit comfortably on free.
其他 Codexe 生成器
Need behaviour that vanilla datapacks cannot reach? Codexe also generates:
Codexe 如何构建和检查这些项目、需求里该写什么,以及常见问题:Datapacks 指南。