Drink Beer Rebrew 是 Drink Beer Refill(NeoForge)的非官方 Fabric 1.21.1 移植版,基于提交 f3b2bfb 分叉,该版本以 AGPL-3.0-only 协议发布。Drink Beer Refill 本身也是 Lekavar 原版 Drink Beer 的一个分叉分支。
注意。 上游于 2026-08-07 发布了 1.4.0-beta.1,其中添加了其自带的 Fabric 支持,并在同一提交(8130c4c)中将 AGPL-3.0 许可证替换为“保留所有权利”。如果你想要原版模组,请前往上游 —— 它已恢复维护并现在提供 Fabric 构建版本。此分叉源自较早的 AGPL-3.0 状态,延续使用 AGPL-3.0-only 许可,且不包含 f3b2bfb 之后上游的任何代码。
前置要求: Minecraft 1.21.1、Fabric Loader >= 0.19、Fabric API。同一个 jar 文件既可用于客户端也可用于服务器。EMI 为可选依赖 —— 当安装 EMI 时,酿造配方会显示在其中。
修复的上游 Bug
其中六个 bug 同样会导致 NeoForge 上的模组崩溃,使得上游的酒保功能无法使用:
- 调酒台在第一个香料处理时导致服务器刻崩溃(
SpiceData.fromSpiceList 在未进行长度检查的情况下读取了索引 1 和 2)
- “醉酒冰行者”效果在其第一次刻更新时被移除(
applyEffectTick 返回 false,自 1.20.5 起这意味着“已过期”)
- 啤酒无法从桌子上拿走(
useItemOn 对任何物品包括空手都返回 CONSUME,导致 useWithoutItem 从未运行)
- 挖掘方块时不掉落任何物品(方块的战利品表位于
loot_table/block/,而原版游戏查找的是 loot_table/blocks/)
- 饮用鸡尾酒后首次玩家存档时游戏崩溃(效果通过
Holder.direct 应用,而该方式无法序列化)
- 鸡尾酒名称渲染为原始损坏的键值,例如
block.drinkbeer.drinkbeer:beer_mug,因为上游从 Item#toString() 构建翻译键,而该字符串在不同加载器之间有所不同
- 放置的鸡尾酒丢失了其基底啤酒:没有任何代码将啤酒 ID 或香料写入方块实体,因此酒杯渲染为通用模型,并作为看起来为空(但可饮用)的酒杯掉落
- 酒桶吞噬了多余的食材:一个配方每槽消耗一个物品,但在酿造开始时整个槽位被清空,因此放入槽中的堆叠物品消失
移植说明
仅涉及加载器层;上游的游戏逻辑在可能的情况下保持原样。配方 JSON 保持不变 —— 原料编解码器同时接受 NeoForge({"item"/"tag"})和原版("id"/"#tag")格式。JEI 插件已被替换为 EMI 插件。
所有与上游不同的内容,包括由移植本身引入的两个随后被修复的 bug,均记录在 PORTING.md 中(俄语)。
致谢
所有实际的模组开发工作归功于上游作者:
本页面之所以存在,是因为官方的 Fabric 构建止步于 1.19.3,且 NeoForge 分叉分支已归档。源码地址:
Drink Beer Rebrew is an unofficial Fabric 1.21.1 port of Drink Beer Refill (NeoForge), forked at commit f3b2bfb, which was published under AGPL-3.0-only. Drink Beer Refill is itself a fork of Lekavar's original Drink Beer.
Note. On 2026-08-07 upstream released 1.4.0-beta.1, which added their own Fabric support and, in the same commit (8130c4c), replaced the AGPL-3.0 licence with All Rights Reserved. If you want the original mod, go to upstream — it is maintained again and now ships Fabric builds. This fork descends from the earlier AGPL-3.0 state, carries AGPL-3.0-only forward, and uses no code from upstream commits after f3b2bfb.
Requires: Minecraft 1.21.1, Fabric Loader >= 0.19, Fabric API. The same jar goes on both client and server. EMI is optional — brewing recipes show up in it when present.
Fixed upstream bugs
Six of these break the mod on NeoForge as well, so upstream's bartending feature is unusable there:
- bartending table crashed the server tick on the first spice (
SpiceData.fromSpiceList read indices 1 and 2 without a length check)
- "drunk frost walker" was removed on its first tick (
applyEffectTick returned false, which means "expired" since 1.20.5)
- the beer could not be taken off the table (
useItemOn returned CONSUME for any item including an empty hand, so useWithoutItem never ran)
- no block dropped anything when mined (block loot tables sat in
loot_table/block/, vanilla looks in loot_table/blocks/)
- the game crashed on the first player save after drinking a cocktail (effects were applied through
Holder.direct, which cannot be serialised)
- cocktail names rendered as raw broken keys such as
block.drinkbeer.drinkbeer:beer_mug, because upstream built translation keys from Item#toString(), which differs between loaders
- a placed cocktail lost its base beer: nothing wrote the beer id or the spices into the block entity, so the mug rendered as a generic model and dropped as an empty-looking (but drinkable) mug
- the keg ate surplus ingredients: a recipe consumes one item per slot, but the whole slot was wiped when brewing started, so a stack put into a slot vanished
Notes on the port
Loader layer only; upstream game logic is left as-is where possible. Recipe JSONs are used unchanged — the ingredient codec accepts both the NeoForge ({"item"/"tag"}) and the vanilla ("id"/"#tag") shapes. The JEI plugin is replaced by an EMI plugin.
Everything that differs from upstream, including two bugs introduced by the port itself and then fixed, is documented in PORTING.md (in Russian).
Credits
All the actual mod work belongs to upstream authors:
This page exists because the official Fabric build stopped at 1.19.3 and the NeoForge fork is archived. Source:
评论 0
登录后参与评分
还没有评论,来抢沙发吧