? 一种奶酪。适用于所有食谱。
Croptopia 有奶酪,Pam's HarvestCraft 有奶酪,Meadow 有奶酪,Brewin' & Chewin' 也有奶酪。但它们都不是同一种奶酪 —— 它们各自为自己的食物打上标签,使用的是四种互不兼容、彼此从不引用的命名方言。因此,那些需要奶酪的食谱只能接受其中某一种,而你的整合包中便悄然运行着几个互不相通的平行食品经济体系。Kaleidoscope Cookery 的铁锅甚至不会点火,除非你手动放入它专属的烹饪油,而其他五个模组的烹饪油则静静地躺在同一个箱子里。
Pantrywork 解决了这个问题。它是一个纯粹的数据包:通过一个标签层,将这些方言桥接至 NeoForge / Farmer's Delight 官方 c:foods/* 规范;随后添加第二个层级,描述食材具备的功能。不包含任何方块、物品或玩法改动。只是让食谱终于能正常工作了。
NeoForge 适用于 Minecraft 1.21.1 及版本 26.1–26.2,Fabric 适用于 1.21.1–1.21.11 及 26.1–26.2(Fabric 需要 Fabric API),Forge 适用于 1.20.1。1.20.1 版本的文件桥接了 24 个模组中的 21 个,并排除了那些需要条件覆盖的替换项,因为该版本本身没有这些覆盖机制——下文“Forge 1.20.1”部分明确列出了具体是哪些,更新日志中也再次说明。
?️ 两个层级
身份标识 — c:foods/*。扩展内置规范,并将其他模组的命名方式翻译为此规范。
Croptopia 的复数方言(c:cheeses)、Pam's 的拼接方言(c:rawpork)以及 Farm & Charm 的下划线方言(c:raw_pork)均解析为标准名称(c:foods/cheese、c:foods/raw_pork)。桥接是双向运行的:这 74 个模组各自的方言标签获得了其他模组的等效物品(共 84 个标签文件,其余十个为如 c:foods/corn 和 c:foods/oranges 这类标准的 c:foods/* 叶子节点),因此它们自身的食谱也能接受外来食材 —— Meadow 的奶酪食谱可以接受 Brewin' & Chewin' 的奶酪,Pam's 的鱼食谱可以接受 Aquaculture 钓获的鱼,Croptopia 的菠萝食谱可以接受 Fish of Thieves 的菠萝。
当某个模组读取的是其自身的标签而非共享标签时,Pantrywork 会写入该标签。Kaleidoscope Cookery 的铁锅在烹饪前会检查 #kaleidoscope_cookery:oil,因此现在来自五个模组的烹饪油都能激活它 —— 而这正是开启其全部 225 个铁锅食谱的门槛。
当某个模组种植食物却未将其归入任何共享标签时,Pantrywork 会为其归档。Oh The Biomes We've Gone 的蓝莓原本只存在于其自带的浆果标签中,而在任何地方都没有单独的蓝莓标签,导致其他模组无法识别它们;现在它们能够用于 Hearth and Harvest 的五种蓝莓食谱以及 Croptopia 的三种蓝莓食谱了。
仅公平替换。 Pantrywork 添加到食谱标签中的物品,其价格不得超过每个定义该标签的模组中已有物品的最低价格的 1.5 倍,计算时需考虑其制作方式(例如,一瓶牛奶的成本是一个桶牛奶成本的十六分之一)。只有当部分模组接受如此低价的物品时,替换才会在其中一个模组安装的情况下生效(即条件式资源包覆盖,游戏仅在加载对应模组时应用此覆盖)。因此,一瓶牛奶永远不会填满为桶设计的食谱,一条培根条在 Pam's 的食谱中也不会被算作一整块猪肉,Refurbished Furniture 的每 loaf 六片吐司也不会出现在其他模组的食谱中。此项检查涵盖 Pantrywork 添加的内容;各模组在其自身标签中列出的内容则由它们自行决定。版本 0.7.0 移除或使所有未能通过检查的旧版替换变为条件触发,更新日志中列出了所有这些条目;0.8.0 未移除任何内容,其更新日志列出了新增条件的两项替换以及放宽条件的三项替换。0.9.0 移除了五项:Pam's Food Extended 将其五种豆腐替代品归入生牛肉、生猪肉、生羊肉和生鱼标签中,且每一种都是压制大豆制成,因此它们不再能通过 Pantrywork 关联到标准的肉类或鱼类标签。在同一操作中,四个标准标签——生牛肉、生猪肉、生羊肉和生鱼——停止指向整个方言集合,转而列出其具体成员,这正是允许豆腐接入的关键;而这些成员本身并未改变。
角色功能 — pantrywork:food_component/{protein, starch, dairy, garnish, liquid_base, sweetener}。
基于身份标识层的“标签之标签”,描述功能而非身份。只需编写针对 #pantrywork:food_component/protein 的一条食谱,即可接受原版牛排、Farmer's Delight 培根,以及未来任何打了该标签的模组物品 —— 无需你发送更新。角色功能描述的是食材的作用,而非其成本:dairy 将牛奶瓶和植物奶与桶装奶并列存放。
? 无需安装任何食物模组
所有跨模组引用均为 required: false。你可以将 Pantrywork 与所有支持的模组、其中之一或不安装任何模组一起使用 —— 无论哪种情况它都能干净加载,并仅桥接它所发现的模组。在 Fabric 上,Fabric API 是必需的:它是加载模组数据的核心,若无它,Fabric 加载器拒绝启动并指明缺失依赖。
仅服务端 —— 将其放入服务器端,所有玩家均可受益,客户端无需安装。单人游戏同样适用(你的游戏运行内部服务器;正常安装即可)。
支持列表:Farmer's Delight(含 Fabric 版的 Refabricated) · Croptopia(含 Croptopia Refabricated) · Pam's HarvestCraft 2 — 全部四个模块:Food Core、Crops、Trees 和 Food Extended · Ocean's Delight(完整身份模块) ·
End's Delight(父级加入) · [Let's Do] Vinery、Farm & Charm、Meadow ·
Aquaculture 2 · Brewin' & Chewin' · Create · Bountiful Fares · Fish of Thieves ·
Refurbished Furniture · Kaleidoscope Cookery · Hearth and Harvest · Cultural Delights ·
Cook's Collection · Rustic Delight · Hybrid Delights · Oh The Biomes We've Gone(世界生成模组,此处因其种植的四种水果) · Origins(食肉/素食饮食标签)。
? Forge 1.20.1 上的情况
这里有一个 Forge 1.20.1 版本的文件,它是真正的移植而非重新打包——在该版本中,共享词汇表是 forge: 而不是 c:,且标签文件位于名称不同的文件夹中,因此载荷中的每个文件都经过重建。其中的食物模组存在相同的问题以及相同的四种方言:七种奶酪拼写、七种牛奶拼写、四种洋葱拼写,且完全没有交叉引用;此外,Hearth and Harvest 将其奶酪归类在一个该版本上其他任何模组都不会读取的标签中。
有两点内容比 1.21.1 版本更少,值得你在安装前了解。它桥接了 21 个模组(共 24 个)——Pam's Crops and Trees 在 Forge 1.20.1 上没有构建版本,而 Bountiful Fares 在该版本上仅限 Fabric。另外,1.21 版本有条件地提供的 19 次替换在此被省略:某些替换仅在安装了特定模组时才公平,1.21 通过条件数据包叠加层处理这种情况,而 Minecraft 1.20.1 没有这些功能。为了避免将定价过低的物品带入你的配方,此文件选择省略它们——奶酪、面团、牛奶、盐、面粉、卷心菜、鸡肉部位和三文鱼刺身各失去一个条目或几个条目。在实际差异方面,通过运行服务器测量:安装 Farm & Charm 后,1.21 版本文件在 Croptopia 的面团标签中统一了六种面团,而此版本仅统一了两种。
其余部分均为相同的模组,包括公平交换规则及其背后的价格检查机制,这些机制是从 1.20.1 的配方中重新读取的,而非假设未发生变化。
?? 对于整合包制作者
停止为每个食物模组编写单独的配方。目标应是一个角色标签(role tag),这样配方就能覆盖你玩家已安装以及未来会安装的每一个模组。
?️ 对于模组作者
PantryworkTagKeys(仅限 1.21.1 NeoForge jar——Fabric、26.x 和 Forge 1.20.1 文件是纯数据,不包含类)以编译时常量的形式暴露角色标签和最常被要求的身份标签——奶酪、黄油、面团、熟米饭、面粉——以便你可以引用分类法而无需硬编码字符串或依赖正在桥接的模组。该层级中的任何其他内容都是你可以直接编写的普通 c: 标签 ID。
✅ 经核实,而非假设
此处声称的每一个桥接都在运行服务器上进行了检查,而非推断得出——配方数量是从模组自身的文件中读取的,但交换是否有效始终经过实测。受支持的模组被一起加载,并实际执行了桥接操作——Pam 自己的烤奶酪火腿三明治使用 Farm & Charm 的黄油和 Brewin' & Chewin' 的奶酪制作(并使用 Croptopia 更便宜的奶酪制作时会被拒绝);Farmer's Delight 的鸡蛋三明治由 Pam's 和 Bountiful Fares 的鸡蛋制成;Croptopia 的菠萝鸡使用 NeoForge 26.2 上的 Fish of Thieves 菠萝制作;Croptopia 的香蕉奶昔使用 Farmer's Delight 的牛奶制作;Hearth and Harvest 的蓝莓箱和 Croptopia 的蓝莓果酱由 Oh The Biomes We've Gone 的浆果制成;以及在 0.9.0 新增的内容,Pam's Food Extended 的两个食谱完全由其他模组的食物构建而成——来自 Croptopia 的洋葱和文化亮点(Cultural Delights)的黄油的炸洋葱,以及来自 Croptopia 的面包和 Meadow 的奶酪片的吐司奶酪。Fabric 构建版已在 1.21.1、1.21.10、1.21.11、26.1.2 和 26.2 上启动;NeoForge 构建版在 1.21.1、26.1.2 和 26.2 上启动——其中 26.1.2 的启动是在 All the Mods 11 所搭载的确切 NeoForge 构建版上进行的,同时搭配其自带的 Croptopia 和 Aquaculture 2。单独的运行测试包括:不安装任何受支持模组的情况下启动,移除 Farm & Charm 的情况下启动,以及安装和不安装条件交换所依赖的模组的情况下启动——仅在 1.21.1 发布版 jar 上就有十二种此类组合,这证明了十四个条件中的十三个既开放又关闭。少数无法触及的情况则在开发版启动中证明,并且更新日志说明了具体是哪一种,而不是暗示全面覆盖。自动 GameTests 覆盖了角色标签、跨模组身份识别、反向桥接、成本下限以及通过 RecipeManager 的配方解析。
Forge 1.20.1 在其专属服务器上遵循相同标准:仅凭该文件即可通过 50 项标签断言,日志中没有任何错误;加载 16 个名录模组后,它在 83 个标签上通过了 338 项断言。第三次启动运行相同的模组集但移除 Pantrywork,从而证明那 31 个错误是由那些模组产生的,而非 ours——两份列表返回完全一致。在该版本上,断言的是标签成员资格而非制作(1.20.1 既没有命令也没有制作测试所使用的方块),并且套件已通过使用 1.21 的文件夹名重建文件来展示失败能力:50 项断言中有 39 项失败,即所有断言存在的项均失败。
当某些内容无法通过标签修复时,更新日志会明确说明,而不是暗示可以修复:指定确切物品 ID 的配方无法通过任何数据包扩大范围,而多个受支持的模组正是这样做的。
? One cheese. Every recipe.
Croptopia has cheese. Pam's has cheese. Meadow has cheese. Brewin' & Chewin' has cheese. None of
them are the same cheese — they all tag their food, in four incompatible
naming dialects that never reference each other. So the recipe that wants cheese takes exactly one
of them, and your pack quietly runs parallel food economies that never touch. Kaleidoscope Cookery's
wok will not even light unless you hand it its cooking oil, with five other mods' oils sitting
in the same chest.
Pantrywork fixes that. It is pure data: a tag layer that bridges those dialects into the official
NeoForge / Farmer's Delight c:foods/* convention, then adds a second layer describing what an
ingredient does. No blocks, no items, no gameplay changes. Just recipes that finally work.
NeoForge on Minecraft 1.21.1 and 26.1–26.2, Fabric on 1.21.1–1.21.11 and 26.1–26.2 (Fabric
needs Fabric API), and Forge on 1.20.1. The 1.20.1 file bridges 21 of the 24 mods and leaves out
the swaps that need a conditional overlay, because that version has none — the
"Forge 1.20.1" section below says exactly which, and the changelog says it again.
?️ Two layers
Identity — c:foods/*. Extends the built-in convention and translates the others into it.
Croptopia's plural dialect (c:cheeses), Pam's concatenated dialect (c:rawpork), and Farm &
Charm's underscored dialect (c:raw_pork) all resolve to canonical names (c:foods/cheese,
c:foods/raw_pork). Bridges run in both directions: 74 of those mods' own dialect tags gain the
other mods' equivalent items (84 tag files in all, the other ten being canonical c:foods/* leaves
like c:foods/corn and c:foods/oranges), so their own recipes accept foreign ingredients — Meadow's
cheese recipes take Brewin' & Chewin' cheese, Pam's fish recipes take an Aquaculture catch, and
Croptopia's pineapple recipes take a Fish of Thieves pineapple.
Where a mod reads a tag of its own instead of a shared one, Pantrywork writes that tag. Kaleidoscope
Cookery's wok checks #kaleidoscope_cookery:oil before it will cook, so five mods' cooking oils now
prime it — and that is the gate in front of all 225 of its wok recipes.
And where a mod grows food but files it in no shared tag at all, Pantrywork files it. Oh The Biomes
We've Gone's blueberries sat in its own berry tag and in no blueberry tag anywhere, so no other mod
could see them; they now reach Hearth and Harvest's five blueberry recipes and Croptopia's three.
Fair swaps only. An item Pantrywork adds to a recipe tag may be at most 1.5x cheaper than the
cheapest thing each mod that defines that tag already puts there, counting how it is made (a
16-per-bucket milk bottle costs a sixteenth of a bucket). When only some of those mods accept
something that cheap, the swap is added only while one of them is installed (a conditional pack
overlay, which the game applies only while that mod is loaded). So a milk bottle never
fills a recipe written for a bucket, a bacon strip never counts as a whole porkchop in Pam's recipes,
and Refurbished Furniture's six-per-loaf toast stays out of other mods' recipes. The check covers what
Pantrywork adds; what each mod lists in its own tags is its own call. Version 0.7.0 removed or made
conditional every older swap that failed it, and its changelog lists them all; 0.8.0 removed nothing,
and its changelog lists the two swaps that gained a condition and the three conditions that got easier
to satisfy. 0.9.0 removed five: Pam's Food Extended files five tofu analogues in its raw beef, pork,
mutton and fish tags, and each one is a pressed soybean, so none of them reaches a canonical meat or
fish tag through Pantrywork any more. In the same pass four canonical tags — raw beef, raw pork, raw
mutton and raw fish — stopped pointing at a whole dialect and now list their members, which is what
let the tofu in; the members themselves are unchanged.
Role — pantrywork:food_component/{protein, starch, dairy, garnish, liquid_base, sweetener}.
Tags-of-tags over the identity layer, describing function rather than identity. Author one recipe
against #pantrywork:food_component/protein and it accepts vanilla steak, Farmer's Delight bacon,
and anything a future mod tags — without you shipping an update. Roles describe what an ingredient
does, not what it costs: dairy holds milk bottles and plant milk next to buckets.
? No food mod required
Every cross-mod reference is required: false. Install Pantrywork with all the supported mods, one
of them, or none — it loads clean either way and simply bridges whatever it finds. On Fabric,
Fabric API is required: it is what loads mod data, and without it Fabric Loader refuses to start and
names the missing dependency.
Server-side only — drop it on the server and every player benefits, no client install needed.
Works in singleplayer too (your game runs an internal server; just install it normally).
Supported: Farmer's Delight (incl. Refabricated on Fabric) · Croptopia (incl. Croptopia
Refabricated) · Pam's HarvestCraft 2 — all four modules: Food Core, Crops, Trees and Food Extended ·
Ocean's Delight (full identity module) ·
End's Delight (parent joins) · [Let's Do] Vinery, Farm & Charm, Meadow ·
Aquaculture 2 · Brewin' & Chewin' · Create · Bountiful Fares · Fish of Thieves ·
Refurbished Furniture · Kaleidoscope Cookery · Hearth and Harvest · Cultural Delights ·
Cook's Collection · Rustic Delight · Hybrid Delights · Oh The Biomes We've Gone (a
worldgen mod, here for the four fruits it grows) · Origins (carnivore/vegetarian
diet tags).
? On Forge 1.20.1
There is a Forge 1.20.1 file, and it is a real port rather than a repackage — on that version the
shared vocabulary is forge: instead of c:, and the tag files live in a differently named folder,
so every file in the payload is rebuilt. The food mods there have the same problem and the same
four dialects: seven spellings of cheese, seven of milk, four of onion with no cross-references
at all, and Hearth and Harvest filing its cheese in a tag nothing else on that version reads.
Two things are smaller than on 1.21.1, and worth knowing before you install it. It bridges 21
of the 24 mods — Pam's Crops and Trees have no Forge 1.20.1 build and Bountiful Fares is
Fabric-only there. And 19 swaps that 1.21 ships conditionally are left out: some substitutions
are only fair when a particular mod is installed, 1.21 handles that with a conditional pack
overlay, and Minecraft 1.20.1 does not have those. Rather than ship them unconditionally and let an
underpriced item into your recipes, this file leaves them out — cheese, dough, milk, salt, flour,
cabbage, chicken parts and sashimi each lose one entry or a few. The practical difference, measured
on a running server: with Farm & Charm installed, the 1.21 file unifies six doughs in Croptopia's
dough tag and this one unifies two.
Everything else is the same mod, including the fair-swap rule and the price checks behind it, which
were re-read from the 1.20.1 recipes rather than assumed unchanged.
?? For pack makers
Stop writing one recipe per food mod. Target a role tag and the recipe covers every mod your
players have installed, plus the ones they install later.
?️ For mod authors
PantryworkTagKeys (the 1.21.1 NeoForge jar only — the Fabric, 26.x and Forge 1.20.1 files
are pure data with no classes) exposes the role tags and the most-asked-for identity tags —
cheese, butter, dough, cooked rice, flour — as compile-time constants, so you can reference the
taxonomy without hardcoding strings or taking a dependency on the mods being bridged. Anything else
in the layer is a plain c: tag id you can write directly.
✅ Verified, not assumed
Every bridge claimed here was checked on a running server, not inferred — recipe counts are read
out of the mods' own files, but whether a swap works is always measured. The supported mods are loaded
together and the bridges are exercised for real — Pam's own Grilled Cheese & Ham crafted with
Farm & Charm butter and Brewin' & Chewin' cheese (and refused with Croptopia's cheaper cheese);
Farmer's Delight's egg sandwich made from Pam's and Bountiful Fares eggs; Croptopia's pineapple
chicken made from a Fish of Thieves pineapple on NeoForge 26.2; Croptopia's banana smoothie made
with Farmer's Delight milk; Hearth and Harvest's blueberry crate and Croptopia's blueberry jam made
from Oh The Biomes We've Gone berries; and, new at 0.9.0, two of Pam's Food Extended recipes built
entirely out of other mods' food — fried onions from Croptopia's onion and Cultural Delights' butter,
and cheese on toast from Croptopia's toast and Meadow's cheese slice. The Fabric build is booted on 1.21.1, 1.21.10, 1.21.11, 26.1.2 and 26.2;
the NeoForge builds on 1.21.1, 26.1.2 and 26.2 — the 26.1.2 boot on the exact NeoForge build All the
Mods 11 ships, alongside its Croptopia and Aquaculture 2. Separate runs boot it with none of the
supported mods installed, with Farm & Charm removed, and with and without the mods the conditional
swaps depend on — twelve such combinations on the 1.21.1 release jar alone, which prove
thirteen of the fourteen conditions both open and closed. The few they cannot reach are proven on the
development boot instead, and the changelog says which rather than implying full coverage. Automated
GameTests cover role tags, cross-mod identity, reverse bridges, cost floors, and recipe resolution
through RecipeManager.
Forge 1.20.1 is held to the same standard on its own dedicated server: the file alone passes 50
tag assertions with a log that carries no errors at all, and with 16 of the roster mods loaded
it passes 338 across 83 tags. A third boot runs that identical mod set with Pantrywork removed, so
the 31 errors those mods log are proven to be theirs and not ours — the two lists come back
identical. On that version the assertions are tag membership rather than crafts (1.20.1 has neither
the command nor the block the craft tests use), and the suite was shown able to fail by rebuilding
the file with 1.21's folder name: 39 of the 50 assertions fail, which is every one that asserts
presence.
Where something cannot be fixed with tags, the changelog says so rather than implying otherwise:
a recipe that names an exact item id cannot be widened by any datapack, and several of the supported
mods do exactly that.
评论 0
登录后参与评分
还没有评论,来抢沙发吧