Ultimate Custom Gear
无需编写 Java 代码即可为 Minecraft 添加自定义装备
UltimateCustomGear 是一款面向 Minecraft 1.21.1 的数据驱动型 NeoForge 模组。只需将 JSON 文件放入文件夹,重启游戏,物品便会存在——已注册、拥有纹理、可合成且在 JEI 中可见。它专为需要自定义内容但不想为此维护模组的服务器管理员和整合包制作者而设计。
你可以制作的内容
- 护甲套装:支持按部件设置属性、穿戴效果以及全套加成
- 武器——剑、弓、弩、盾牌
- 工具——镐、斧、铲、锄,支持采集等级和范围耕作
- 食物:支持营养值、进食速度以及食用后效果
- 方块:包括具有方向性和受重力影响的方块,支持逐面纹理
- 流体:支持自定义颜色、扩散和接触效果
独特之处
伤害抗性。 护甲可以针对伤害类型、攻击者或两者结合来减少伤害——例如防火护甲、屠龙护甲、仅对亡灵生物生效的护甲。系统通过特异性解析规则,因此关于骷髅箭的规则会优先于通用的箭矢规则。
怪物掉落。 任何物品都可以从任何怪物身上掉落,支持配置概率、数量、实体过滤器以及抢夺(Looting)行为。仅凭 JSON 就足以构建一套服务器经济系统。
3D 护甲模型。 安装 GeckoLib 后,护甲将以完整的 Blockbench 模型渲染,并可选动画,而非扁平图层。未安装 GeckoLib 时则回退至 2D 模式——模组仍可正常运行。
真实配方。 所有原版配方类型均通过 JSON 定义并作为服务端数据注入,因此 JEI 会像显示其他配方一样显示它们。原料接受标签,所以 #minecraft:planks 意味着来自任何模组的任意木板。来自其他模组的配方可以原样透传,并在该模组缺失时干净地消失。
双向标签支持。 你的内容可以加入现有标签,以便其他模组的配方能够识别它;你也可以将其他模组的内容加入你关心的标签中。
内容包。 将所有内容打包为一个 .zip 文件,玩家只需将其放入文件夹即可。一个文件,无需解压,不会安装错误。
多人游戏验证。 服务器在登录时检查客户端是否拥有匹配的内容,从而避免有人拿着与实际造成伤害不符的工具提示进行游戏。执行方式可配置——踢出、警告或忽略。
热重载。 /customgear reload 命令可在不重启的情况下更新名称、效果、配方、掉落和抗性。让玩家在线的同时平衡你的经济系统。
完整物品示例,从头到尾
{
"id": "magic_apple",
"type": "food",
"names": { "en_us": "Magic Apple" },
"nutrition": 4,
"saturation": 1.2,
"always_edible": true,
"mob_drops": {
"entities": ["#minecraft:undead"],
"chance": 0.15,
"min": 1,
"max": 2
},
"on_eat_effects": [
{ "effect": "minecraft:regeneration", "amplifier": 1, "duration": 10 },
{ "effect": "minecraft:absorption", "amplifier": 0, "duration": 120 }
],
"texture": {
"mode": "reference",
"refs": { "item": "minecraft:item/golden_apple" }
},
"recipe": {
"type": "shaped",
"pattern": ["GGG", "GAG", "GGG"],
"key": { "G": "minecraft:gold_block", "A": "minecraft:apple" }
}
}
这就是整个文件。亡灵生物现在有 15% 的概率掉落它,它可以被合成,且 JEI 也能识别它。
文档
完整文档——包含每个字段、每种类型、实例教程以及破坏性更改的迁移指南——位于 wiki 中(侧边栏有链接)。
如果你从未编写过内容 JSON,请从 入门指南 开始;如果你清楚自己要找什么,可以直接跳转到 字段参考。
兼容性
- Minecraft 1.21.1 · NeoForge 21.1.x
- JEI —— 可选,推荐安装。配方将完整显示
- GeckoLib —— 可选,仅用于 3D 护甲模型时需要
- 可与任何已安装模组的内容配合使用:引用它们的模型,使用它们的物品作为原料,将它们的內容加入你的标签中
- 模组附魔会自动应用于可附魔的自定义物品
服务器和客户端需要相同的模组版本以及匹配的内容文件。
许可证
MIT
Ultimate Custom Gear
Add custom gear to Minecraft without writing a line of Java
UltimateCustomGear is a data-driven NeoForge mod for Minecraft 1.21.1. Drop a JSON file into a folder, restart, and your item exists — registered, textured, craftable, and visible in JEI. It is built for server owners and modpack creators who need custom content but do not want to maintain a mod for it.
What you can make
- Armor sets with per-piece stats, worn effects, and full-set bonuses
- Weapons — swords, bows, crossbows, shields
- Tools — pickaxes, axes, shovels, hoes, with harvest tiers and area-tilling
- Food with nutrition, eating speed, and on-eat effects
- Blocks, including directional and gravity-affected ones, with per-face textures
- Fluids with custom color, spread, and contact effects
What makes it different
Damage resistances. Armor can reduce damage by damage type, by attacker, or by both combined — fire-proof armor, dragon-slayer armor, armor that only works against undead mobs. Resolved by specificity, so a rule about skeleton arrows beats the general arrow rule.
Mob drops. Any item can drop from any mob, with configurable chance, count, entity filters, and Looting behavior. Enough to build a server economy out of JSON alone.
3D armor models. With GeckoLib installed, armor renders as a full Blockbench model with optional animations instead of flat layers. Without GeckoLib it falls back to 2D — the mod still runs.
Real recipes. Every vanilla recipe type, defined in JSON and injected as server data, so JEI shows them like any other recipe. Ingredients accept tags, so #minecraft:planks means any plank from any mod. Recipes from other mods can be passed through untouched, guarded so they vanish cleanly when that mod is absent.
Tags in both directions. Your content can join existing tags so other mods' recipes accept it, and you can add other mods' content to tags you care about.
Content packs. Ship everything as a single .zip your players drop into a folder. One file, nothing to extract, nothing to install wrong.
Multiplayer verification. The server checks at login that clients have matching content, so nobody plays with a tooltip that disagrees with the damage they actually deal. Enforcement is configurable — kick, warn, or ignore.
Live reload. /customgear reload updates names, effects, recipes, drops, and resistances without restarting. Balance your economy while players are online.
A complete item, start to finish
{
"id": "magic_apple",
"type": "food",
"names": { "en_us": "Magic Apple" },
"nutrition": 4,
"saturation": 1.2,
"always_edible": true,
"mob_drops": {
"entities": ["#minecraft:undead"],
"chance": 0.15,
"min": 1,
"max": 2
},
"on_eat_effects": [
{ "effect": "minecraft:regeneration", "amplifier": 1, "duration": 10 },
{ "effect": "minecraft:absorption", "amplifier": 0, "duration": 120 }
],
"texture": {
"mode": "reference",
"refs": { "item": "minecraft:item/golden_apple" }
},
"recipe": {
"type": "shaped",
"pattern": ["GGG", "GAG", "GGG"],
"key": { "G": "minecraft:gold_block", "A": "minecraft:apple" }
}
}
That is the whole file. Undead mobs now have a 15% chance to drop it, it is craftable, and JEI knows about it.
Documentation
Full documentation — every field, every type, worked examples, and a migration guide for breaking changes — is in the wiki (linked in the sidebar).
Start with Getting Started if you have never written a content JSON, or jump to the Field Reference if you know what you are looking for.
Compatibility
- Minecraft 1.21.1 · NeoForge 21.1.x
- JEI — optional, recommended. Recipes show up fully
- GeckoLib — optional, only needed for 3D armor models
- Works with content from any installed mod: reference their models, use their items as ingredients, add their content to your tags
- Modded enchantments apply to enchantable custom items automatically
Server and clients need the same mod version and matching content files.
License
MIT.
评论 0
登录后参与评分
还没有评论,来抢沙发吧