Just Dire Fuels
Just Dire Things 自带一组出色的发电机:用于精炼燃料的流体输入型,以及用于分级煤炭的固体燃料型。它们也是完全封闭的。流体燃料被锁定为三种内部类型,FE(能量单位)值已固化在服务器配置中,且没有提供公共 API 供模组或整合包添加新燃料。
Just Dire Fuels 旨在扩展这一限制。通过两个新的 NeoForge 数据映射表(data maps),任何数据包都可以添加燃料、覆盖现有速率,并且更改会立即在 JEI 中显示。
新增内容
流体发电机 T1:由数据包驱动的燃料接受机制
原版 JDT 仅接受实现了内部 RefinedFuel 接口的流体。Just Dire Fuels 通过 justdirefuels:fluid_fuels 数据映射表来路由燃料接受逻辑及每毫桶产生的 FE 值。
// data/<your-pack>/data_maps/fluid/fluid_fuels.json
{
"values": {
"minecraft:lava": { "fe_per_mb": 100 },
"yourmod:plasma": { "fe_per_mb": 7500 }
}
}
原版和模组的流体均可作为有效目标。发电机的输入槽、水箱验证器以及 FE 计算器均会查阅同一张映射表。
固体发电机 T1:按燃料的 FE/刻与燃烧速度覆盖
燃烧时间此前已通过 NeoForge 的 furnace_fuels 数据映射表实现数据包驱动。而每次燃烧的 FE 产出和每种燃料的燃烧速度倍率则并非如此(这些源自硬编码的物品类和一个全局配置旋钮)。
justdirefuels:item_fuels 数据映射表通过两个可选字段解决了这一问题:
// data/<your-pack>/data_maps/item/item_fuels.json
{
"values": {
"minecraft:diamond": { "fe_per_tick": 500, "burn_speed_multiplier": 8 },
"justdirethings:coal_t2": { "burn_speed_multiplier": 6 }
}
}
| 字段 |
若省略 |
fe_per_tick |
回退至 JDT 的 generator_t1_fe_per_fuel_tick 配置项(值为 15)。 |
burn_speed_multiplier |
回退到 JDT 的单项值(对于 JDT 未特别处理的项目为 1)。 |
注意:新的固体燃料物品还需要在 NeoForge 的 furnace_fuels 数据映射中提供 burn_time。两者是故意保持独立的。
JEI 集成
新增一个“流体发电机燃料”分类,列出数据映射中当前注册的所有流体及其 FE/mB 速率。流体发电机 T1 方块是配方催化剂,因此在 JEI 中右键点击它会直接跳转到燃料列表。
默认设置
该附加组件随附的数据映射条目完全镜像了 JDT 1.5.7 的内置配置值(T2 = 450 FE/mB,T3 = 1300,T4 = 4000;煤炭 T1–T4 燃烧速度倍率分别为 2/4/8/16)。
单独安装它不会改变任何内容,只有当数据包添加或覆盖条目时才会生效。
示例数据包
GitHub 仓库中包含一个位于 examples/justdirefuels_demo/ 的可运行演示数据包,它同时执行以下三项操作:
- 将原版熔岩设为流体燃料,速率为 100 FE/mB。
- 将 JDT 的 T2 精炼燃料从 450 覆盖为 999 FE/mB。
- 将原版钻石设为一种(相当超模的)固体燃料。
将其放入 <world>/datapacks/,执行 /reload,然后检查 JEI。
依赖项
- Minecraft 1.21.1
- NeoForge 21.1.209 或更高版本
- Just Dire Things 1.5.7 或更高版本
- JEI(可选;仅在游戏内燃料浏览器时需要)
兼容性
该附加组件不会替换或隐藏 JDT 的任何功能。它在 JDT 现有逻辑之前混合了额外的检查,因此未受影响的行为与原版一致。任何已经使用 JDT 的整合包都可以安装 Just Dire Fuels,而无需破坏存档、配置或配方。
链接
致谢
- Direwolf20 制作了一款出色的模组
- Dinnerbeef 为该模组附加包提供了灵感
Just Dire Fuels
Just Dire Things ships an excellent pair of generators, the fluid-fed one for refined fuels and a solid-fuel one for tiered coal. They are also completely closed. Fluid fuels are locked to three internal types, FE values are baked into server config, and there is no public API for mods or modpacks to add a new fuel.
Just Dire Fuels works to extend that. Two new NeoForge data maps let any datapack add fuels, override existing rates, and the changes show up immediately in JEI.
What it adds
Fluid Generator T1 datapack-driven fuel acceptance
Stock JDT only accepts fluids implementing an internal RefinedFuel interface. Just Dire Fuels routes acceptance and FE-per-millibucket through the justdirefuels:fluid_fuels data map.
// data/<your-pack>/data_maps/fluid/fluid_fuels.json
{
"values": {
"minecraft:lava": { "fe_per_mb": 100 },
"yourmod:plasma": { "fe_per_mb": 7500 }
}
}
Both vanilla and modded fluids are valid targets. The generator's input slot, tank validator, and FE calculator all consult the same map.
Solid Generator T1 per-fuel FE/tick and burn-speed overrides
Burn time was already datapack-driven via NeoForge's furnace_fuels data map. What was not was FE per burn tick and the per-fuel burn-speed multiplier (those came from hardcoded item classes and a single global config knob).
The justdirefuels:item_fuels data map fixes that with two optional fields:
// data/<your-pack>/data_maps/item/item_fuels.json
{
"values": {
"minecraft:diamond": { "fe_per_tick": 500, "burn_speed_multiplier": 8 },
"justdirethings:coal_t2": { "burn_speed_multiplier": 6 }
}
}
| Field |
If omitted |
fe_per_tick |
Falls back to JDT's generator_t1_fe_per_fuel_tick config (15). |
burn_speed_multiplier |
Falls back to JDT's per-item value (1 for items not specially handled by JDT). |
Note: a new solid fuel item also needs a burn_time in NeoForge's furnace_fuels data map. The two are independent on purpose.
JEI integration
A new "Fluid Generator Fuels" category lists every fluid currently registered in the data map with its FE/mB rate. The Fluid Generator T1 block is the recipe catalyst, so right-clicking it in JEI takes you straight to the fuel list.
Defaults
The addon ships data map entries that exactly mirror JDT 1.5.7's stock config values (T2 = 450 FE/mB, T3 = 1300, T4 = 4000; Coal T1–T4 burn-speed multipliers 2/4/8/16).
Install it on its own and nothing changes it only kicks in when a datapack adds or overrides entries.
Sample datapack
The GitHub repo ships a working demo datapack at examples/justdirefuels_demo/ that does three things at once:
- Makes vanilla lava a fluid fuel at 100 FE/mB.
- Overrides JDT's T2 refined fuel from 450 to 999 FE/mB.
- Makes vanilla diamond a (rather overpowered) solid fuel.
Drop it in <world>/datapacks/, /reload, and check JEI.
Requirements
- Minecraft 1.21.1
- NeoForge 21.1.209 or newer
- Just Dire Things 1.5.7 or newer
- JEI (optional; required only for the in-game fuel browser)
Compatibility
The addon does not replace or hide any JDT functionality. It mixes in additional checks in front of JDT's existing logic, so unaffected behavior is identical to stock. Any modpack already using JDT can install Just Dire Fuels without breaking saves, configs, or recipes.
Links
Thanks
- Direwolf20 for a great mod
- Dinnerbeef for the addon mod idea
评论 0
登录后参与评分
还没有评论,来抢沙发吧