Caloric Flux (Beta)
Caloric Flux 是一款面向 Minecraft 1.21.1 / NeoForge 的技术类能量生成模组,可将温差转化为 FE。
该模组目前处于测试阶段。请在评论区报告 Bug。
工作原理
温差发电机 的左侧和右侧会储存热量。在一侧放置热源,另一侧放置冷源:流经机器的热量将产生能量。源的导热性会影响热传递的速度,因此仅靠温度并不能决定你的产出。
没有活跃源的侧面会与周围空气进行热交换,而空气具有气候(见下文)。新的发电机初始温度等于当地空气温度。
气候
空气温度并非固定数值,它取决于发电机所处的位置:
- 生物群系: 每个生物群系都有各自的温度:沙漠和下界炎热,雪原生物群系和末地寒冷。生物群系边界之间的过渡是平滑的。来自其他模组的生物群系除非有数据包设置温度,否则使用原版温度。
- 天气: 降雨会使大多数生物群系的空气变冷,雷暴则降温更多。
- 高度: 海平面以上更冷,Y 0 以下更暖。深层洞穴没有天气波动。
- 局部区域: 同一台发电机的左右两侧温度可能相差一两度。同一地点始终给出相同的值;没有任何随机因素。
气候功能始终开启,无法在配置文件中关闭。温度计和 Jade 插件会显示结果。
侧面温差加成。 两侧之间的温差会带来少量额外产出,默认最高为 1.5 FE/t(每摄氏度温差提供 0.5 FE/t)。无论是否有热源均可生效。
紧邻实心方块的侧面与该方块本身进行热交换:其自身的温度(参见“热力场”)及其材料导热性,并按配置文件选项 solidConductivity 缩放。紧邻开放邻居(空气、草、火把、雪层和其他非实心方块)的侧面与空气进行热交换,按 airConductivity(默认为 5)计算。热源保持其自身的导热性。
能量与物流
- 被动输出: 未安装处理器的发电机最多可导出 5 FE/t。
- I/O 处理: 已通电的物流 I/O 处理器 将输出上限提升至 500 FE/t 并解锁侧面配置功能。
- 单一共享上限: 这些可配置的上限适用于所有侧面、连接的 Thermalloy 扩展集流管以及电缆提取的总和。
- 处理器功耗: 处理器消耗 FE,优先级从左到右。如果某个处理器无法获得电力,它将连同其右侧的所有处理器一起关闭。请将重要的处理器放在左侧;重新启动需要足够的发电量或存储的能量。
- 比较器支持: 使用比较器读取发电机的存储电量。
主要特性
- 热源与冷源: 可使用熔岩、水、岩浆、冰等。点燃的熔炉、高炉、烟熏炉、营火、灵魂营火、蜡烛、火把、灵魂之火、熔岩盆、结霜冰和粉雪提供了更多选择。流动的熔岩和水也有效,但导热性和储量会根据流体水平降低。
- 源储量: 正在消耗的源拥有由使用该相同源方块的每台发电机共享的热量储量,并与世界一同保存。热交换会消耗该储量;源的配置温度保持不变。冰最终会变成水,熔岩会变成岩浆,火把会消失并掉落木棍。熔炉、高炉和烟熏炉仅在点燃时工作且不会消耗。
- 储量追踪: 部分使用的源在其匹配的方块掉落物中保留其储量,并通过桶的拾取和放置保留,包括原版发射器和熔岩盆的处理逻辑。物品工具提示显示剩余储量,实心源显示磨损裂纹,部分使用的源不能被活塞移动。
- 其他模组: 当安装本模组时,来自 16 个模组的源会自动加载(参见依赖关系与集成)。
- 热力场: 紧邻熔岩、冰和其他源以及发电机的方块拥有自己的温度。它们会逐渐升温或冷却,热量随世界一同保存。发电机可以通过放置在它与源之间的方块抽取热量;此时源的储量消耗速度减慢 10 倍。雪会在热地上融化。寒冷越冷价值越高:从 16 °C 时的 1× 增加到 −150 °C 时的 6×。
- 方块材质: 每种方块都有其自身的导热性和热容。金属导热性好,石头较差,羊毛和其他绝缘体几乎不导热。这些数值可在 JEI 中查看。
- 热成像仪和热能护目镜: 两种可制作的设备,以全屏热图像的形式显示模组的真实温度(空气、源、受热方块、发电机侧面)。手持式成像仪 需双手举起(按住右键或按下 V),拥有独立的摄像头,并对其他玩家可见。热能护目镜 是一种头盔:V 键切换开关,摄像头有独立按键,图像显示在玻璃上。K 键切换远距离视角。成像仪仅显示模组实际计算的内容。它不消耗任何能量。
- 热效应与音效: 粒子效果、热浪扭曲、发光边缘和霜冻跟随机器的实际温度。安静的热效声音和风扇嗡嗡声响应机器的活动状态。
- 机器界面: 动画化的 Δ 标志、非线性温度计、处理器电源指示灯、滑动侧面面板和填充集流管线圈显示机器的状态。
依赖关系与集成
- GeckoLib (必须) — 用于模组的动画。已测试 GeckoLib 4.7.6。
- Ponder & Flywheel (内置) — 无需单独安装。在悬停于支持该功能的物品(如发电机、外壳、处理器或集气室)时按住 W(默认的 Ponder 键),即可查看动画教程。
- Just Enough Items (JEI) (可选,推荐) — 浏览热源、导热率、储量、耗尽结果、方块材质以及外壳组装/拆卸步骤。对水桶(例如熔岩桶)按 U 可打开该流体的源卡片。
- Jade (可选) — 查看温度、净生成量、处理器状态、源储量和外壳组装提示。
支持的模组(热源与冷源)
每个源仅在对应模组已安装时加载;若无该模组,则无任何反应且不会记录为错误日志。自行燃烧燃料的方块(如烈焰燃烧器、炉灶以及高炉等机器)遵循其自身状态,不占用我们的储量;其他方块的储量机制则与原版源类似。
- Create 和 Create Crafts & Additions — 烈焰燃烧器(根据等级分别为 250 / 400 / 800 °C)
- Farmer's Delight, Supplementaries — 炉灶、火坑
- Biomes O' Plenty, Oh The Biomes We've Gone, Regions Unexplored, Aether, Undergarden, Eternal Starlight, Twilight Forest — 其生物群系中的热块与冰块
- Powah — 干冰
- Mekanism — 流体,如蒸汽、钠、氢气
- Immersive Engineering — 高炉、焦炭炉
- Ad Astra, Ars Nouveau — 低温燃料、魔法火焰
部分条目已对照模组源码进行核对,但未在游戏中实际运行测试。
整合包技术文档
热源、气候、方块材质及外壳组装均为纯数据包数据。使用您自己的命名空间,或使用 caloricflux 命名空间来覆盖随包提供的文件(路径相同即替换)。
通用规则(源、气候、材质)
- 重载: 这三类数据均支持重载监听。编辑文件后执行
/reload 即可;无需重启游戏。新数据将同步至已连接客户端。
- 文件夹: 文件递归读取,因此
thermal_sources/compat/create/x.json 是合法的。文件 ID 为其路径,例如 caloricflux:compat/create/blaze_burner。
- 错误输入绝不会导致游戏崩溃。 JSON 损坏的文件会被原版跳过。JSON 合法但内容有误(未知键、缺少必填键、值超出范围、未知的方块/流体/物品/效果)的文件将被整体拒绝,并在
latest.log 中以 ERROR 级别记录为 Rejected thermal source|climate|material <id>: <reason>。所有其他文件仍会正常加载。未知键始终被拒绝,因此拼写错误会显现出来。
- 顺序: 文件按路径排序处理,然后按命名空间排序(
compat/create/… 优先于 torch;caloricflux:torch 优先于 mypack:torch)。当两个文件冲突时,以下规则决定优先级。
requires_mod: 当对应模组未安装时,该文件会被静默跳过(仅记录调试日志)。
1. 热源
data/<namespace>/thermal_sources/*.json。火炬源示例(此为随包提供的文件):
{
"blocks": ["minecraft:torch", "minecraft:wall_torch"],
"temperature": 200,
"conductivity": 40,
"exhaustion": {
"heat_budget": 120000,
"result": { "block": "minecraft:air" },
"drop": "minecraft:stick",
"effect": "smoke"
}
}
blocks / fluid (必填,二者选一): 一个 ID、一个 #tag 或它们的列表。fluid 匹配流体的静态和流动形态。未知的 ID 会导致文件被拒绝;未知的 tag 仅写入警告且不匹配任何内容。
temperature (数字,°C,−100000 至 100000): 源温度。除非使用 temperature_by,否则必填;两者中必须且只能提供其中一个。
conductivity (必填,数字 0 至 1e9): 热量在源与发电机之间传递的速度。
exhaustion (必填): "none" 表示不耗竭的源,或为一个对象。缺少 exhaustion 会导致文件被拒绝。
heat_budget (必填,大于 0 的数字,最高 1e15): 以热量单位计的储量。它因热量交换(包括冷却)而消耗,而非随时间消耗。
result (必填): { "block": "minecraft:water" } 会将源替换为该方块。{ "set": { "lit": "false" } } 会更改方块状态属性(值为字符串;仅限方块,流体结果必须使用 block)。block / set 二者选一。若结果等于源方块、set 未改变任何内容,或属性/值未知,则该方块不可用(见下文说明)。
drop (可选): 耗尽时掉落的物品 ID。未知的物品会导致文件被拒绝。
effect (可选): hiss、smoke、ice_crack、steam 或 none。若省略,系统会根据源比空气更热还是更冷来选择 hiss 或 ice_crack。
active_when (可选): 必须匹配的方块状态属性,采用原版谓词格式。"active_when": { "lit": "true" } 使源仅在点亮时生效。不具备该属性的方块不会被使用。
temperature_by (可选,仅限方块): 当温度取决于单个方块属性时,替代 temperature 使用:{ "property": "...", "values": { "<value>": <°C>, … } }。两个键均为必填,values 不能为空。未列出值的方块状态不作为源。不具备该属性的方块,或列出的值在其上不存在,均不被使用。
requires_mod (可选): 一个模组 ID 或 ID 列表。仅当所有指定模组均已安装时,文件才会加载。无效的模组 ID 会导致文件被拒绝。
flowing (可选,仅限流体): 参见下方的熔岩示例。
当配置列出多个方块但仅部分不可用时(缺少属性、result 错误等),其余部分仍可正常工作,问题将以警告形式记录;若无一可用,则整个文件被拒绝。
按方块状态的温度,仅在安装模组时加载(随附文件):
{
"requires_mod": "create",
"blocks": "create:blaze_burner",
"temperature_by": {
"property": "blaze",
"values": { "fading": 250, "kindled": 400, "seething": 800 }
},
"conductivity": 40,
"exhaustion": "none"
}
JEI 和工具提示会显示范围(250–800 °C)以及每一级一行;Jade 会显示你所查看方块的精确数值。
仅在有燃烧时才工作且不消耗燃料的熔炉(随附文件):
{
"blocks": "minecraft:furnace",
"active_when": { "lit": "true" },
"temperature": 200,
"conductivity": 20,
"exhaustion": "none"
}
流体配置还可以包含 flowing(随附岩浆文件):
{
"fluid": "#minecraft:lava",
"temperature": 1000,
"conductivity": 100,
"exhaustion": {
"heat_budget": 2000000,
"result": { "block": "minecraft:magma_block" }
},
"flowing": {
"conductivity_scale": 0.5,
"budget_scale": 0.25,
"result": { "block": "minecraft:cobblestone" }
}
}
流动系数会乘以基础传导率和储备值,然后两者再乘以流体量除以 8 的结果。系数默认为 1,必须大于 0 且不超过 1。流动结果默认为主耗尽结果。省略 flowing 则仅接受源流体;budget_scale 和流动的 result 需要存在耗尽配置。
重叠与优先级。 一个方块或流体只能属于一个配置。
- ID 优先于标签: 通过 ID 指定方块的配置会胜出,而仅通过
#tag 访问的配置则会失败。该标签配置会静默地失去对该方块的控制权,但保留其余部分。
- 同类型声明冲突(均通过 ID 或均通过标签声明):排序靠前的文件获胜;另一个会被拒绝,并在日志中记录
overlaps <profile> on <block>。
- 若要修改随附的来源,请替换其文件(路径相同),或者在你的配置中通过 ID 声明该方块(当随附配置使用标签时)。
2. 气候
data/<namespace>/thermal_climate/*.json:
{
"biomes": ["minecraft:desert"],
"mean": 38,
"daily": 10,
"rain": 0
}
biomes (必填,不能为空): 生物群系 ID 或 #tags。ID 不会检查注册表,因此未知的生物群系将永远不会匹配。
mean (必填,-273 到 2000): 海平面处的平均气温(°C)。
daily (必填,0 到 50): 为兼容旧文件而保留;它没有实际效果,但该键必须存在。
rain (必填,-30 到 30): 降雨期间增加的 °C(负值表示降温);雷暴的效果额外增加一半。在洞穴中效果较弱,在没有天空的维度中无效。
- 此处不支持
requires_mod(它会直接拒绝该文件)。未安装的模组的生物群系只是永远不会匹配。
- 优先级: 生物群系 ID 优先于
#tag。如果两个文件都通过 ID 命名了同一个生物群系,排序靠前的文件获胜,日志会收到警告。在标签条目中,第一个匹配的文件获胜。
- 没有条目的生物群系会使用其原版温度(包括其他模组的生物群系)。
3. 方块材质
data/<namespace>/thermal_materials/*.json:
{
"blocks": "#caloricflux:thermal/metal_copper",
"conductivity": 11,
"heat_capacity": 1.7,
"absorption": 0.7
}
blocks (必填): 一个 ID、一个 #tag 或它们的列表。ID 和标签不会进行检查;未知的 ID 或标签将不匹配任何内容。
conductivity (可选,0.1 到 20): 方块导热性能的好坏。未列出的方块使用 2。
heat_capacity (可选,0.05 到 3): 方块储存热量的能力。未列出的方块使用 1。
absorption (可选,0.3 到 1.3): 会被接受并同步给客户端,但当前游戏玩法或成像器代码中不使用。
- 这三个值中至少需要一个。
requires_mod (可选): 一个模组 ID(此处不接受列表)。仅在安装该模组时加载此文件。
- 超出范围的数值、空的
blocks 或未知的键会导致文件被拒绝,并在日志中报错。
- 优先级,按值分别处理: 方块 ID 优先于
#tag;在同等条件下,上述顺序中第一个文件获胜。每个值是单独决定的,因此仅设置 conductivity 的文件会将 heat_capacity 留给其他文件处理。
- 服务器配置项
solidConductivity(默认值 2)会缩放所有 conductivity(计算公式:值 × 配置 ÷ 2),只要固体方块接触到发电机或热场。开放的邻居(空气、草、火把、雪层和其他非固体方块)则改用配置项 airConductivity(默认值 5)。
材质的方块标签。 模组随附每种材质类的一个方块标签。要将方块放入某个类别,请在你的数据包中的标签里添加它(data/caloricflux/tags/block/thermal/<name>.json, { "replace": false, "values": ["mod:block"] };对于可能缺失的模组方块,请使用 { "id": "mod:block", "required": false });若要为其赋予自己的数值,请为其 ID 编写材质文件。保持方块仅属于一个类别:如果标签重叠,上述顺序中第一个文件决定归属。
标签 caloricflux:thermal/… |
conductivity |
heat_capacity |
thermalloy |
13 |
1.5 |
metal_copper |
11 |
1.7 |
metal_gold, metal_netherite |
9 |
1.3 / 1.6 |
metal_iron, metal_other |
8 |
1.75 |
machine_casing |
4 |
1.2 |
ice |
2.2 |
0.95 |
stone |
2 |
1 |
glass |
1.2 |
0.85 |
ground |
1 |
0.8 |
wood |
0.6 |
0.6 |
insulation (羊毛、地毯、雪层、干草、海绵、苔藓、蘑菇…) |
0.3 |
0.1 |
其他标签:方块标签 caloricflux:no_heat_field(随附水)列出了仍可作为源流体工作但不会使其周围方块升温或降温的源方块。物品标签 caloricflux:thermalloy_ingots 和 caloricflux:clamping_metals 列出了模组合成配方中接受的锭(板材、电路、歧管、成像器、护目镜);请在此处添加其他模组的锭。
4. 住房组件 (caloricflux:housing_assembly)
配方文件位于 data/<namespace>/recipe/*.json(随模组提供:recipe/housing_assembly/stage_0.json … stage_9.json;相同路径的文件会覆盖它们)。初始建造步骤的示例如下:
{
"type": "caloricflux:housing_assembly",
"stage": 0,
"ingredient": { "item": "minecraft:iron_ingot" },
"base_block": "caloricflux:thermalloy_block",
"result_block": "caloricflux:thermalloy_housing",
"reverse_tool": { "tag": "minecraft:axes" },
"reverse_drop": "minecraft:iron_ingot"
}
stage (必填,整数): 该配方执行的阶段。0 用于热合金块(Block of Thermalloy);阶段 N 用于处于阶段 N 的外壳(housing)。
ingredient (必填,不能为空): 物品或标签(遵循原版 ingredient 格式,列表也可以)。将其作用于当前方块可将外壳提升一个阶段。可损坏的物品会消耗耐久度(配置项 assemblyToolDamage,默认为 1),其他物品每次消耗一个;创造模式下不消耗任何物品。
reverse_tool (可选): 用于撤销此步骤的工具/物品。若未指定,则无法撤销此步骤。
reverse_drop (可选): 撤销步骤时掉落的物品;若省略则无掉落物。
result_block (可选): 在阶段 0,指替换热合金块的方块(默认为 caloricflux:thermalloy_housing,即阶段 1)。在后续阶段,指替换外壳而非提升其阶段的成品方块。
base_block (可选): 在阶段 0,指当阶段 1 的外壳被拆解时放回原位的方块。若未指定,则阶段 1 的外壳无法被拆解。
外壳阶段范围为 1 到 10;阶段 10 的外壳是用于发电机配方的最终形态。多个配方可以共享同一个阶段:每一个都是有效的替代方案。缺少配方的步骤会中断整个流程。阶段不在 0–10 范围内的配方永远不会匹配,而针对阶段 10 的配方仅在使用 result_block 时生效。内容有误的配方(如未知的物品或方块、缺少 stage 或 ingredient)会被跳过,并在日志中显示一行原版风格的“Parsing error loading recipe”错误信息。
入门指南
- 制作一个 热合金块(Block of Thermalloy) 以及外壳组件。在世界中放置该方块,并逐步组装成 热合金外壳(Thermalloy Housing),直至达到阶段 10。请思考,外壳提示和 JEI 界面会显示所需的部分和工具。
- 使用已完成的外壳来合成你的 温差发电机(Thermal Difference Generator)。
- 在发电机的左侧或右侧放置热源,在相反侧(垂直于正面风扇的方向)放置冷源。让发电机预热并储存 FE 能量。
- 连接线缆或机器以获取基础输出。安装并激活一个 物流 I/O 处理器(Logistics I/O Processor) 以配置输出端口,并将共享的能量上限默认提升至 500 FE/t。
Caloric Flux (Beta)
Caloric Flux is a technical energy generation mod for Minecraft 1.21.1 / NeoForge that turns temperature differences into FE.
The mod is in beta. Please report bugs in the comments.
How it works
The Thermal Difference Generator stores heat on its left and right sides. Place a hot source on one side and a cold source on the other: heat flowing through the machine produces energy. Source conductivity affects how quickly heat transfers, so temperature alone does not determine your output.
A side without an active source exchanges heat with the air around it, and that air has a climate (see below). A new generator starts at the local air temperature.
Climate
The air temperature is not a fixed number. It depends on where the generator stands:
- Biome: every biome has its own temperature: deserts and the Nether are hot, snowy biomes and the End are cold. Borders between biomes blend smoothly. Biomes from other mods use their vanilla temperature unless a datapack sets one.
- Weather: rain cools the air in most biomes, thunderstorms a little more.
- Height: colder above sea level, warmer below Y 0. Deep caves have no weather swing.
- Spots: the left and right side of one generator can differ by a degree or two. The same place always gives the same value; nothing is random.
Climate is always on and cannot be switched off in the config. The thermometers and Jade show the result.
Side difference bonus. The temperature difference between the two sides gives a small extra output, up to 1.5 FE/t by default (0.5 FE/t per °C of difference). It works with or without heat sources.
A side next to a solid block exchanges heat with that block itself: its own temperature (see Heat field) and its material conductivity, scaled by the config option solidConductivity. A side next to an open neighbour (air, grass, torches, snow layers and other non-solid blocks) exchanges heat with the air at airConductivity (5 by default). Heat sources keep their own conductivity.
Energy & Logistics
- Passive output: The generator can export up to 5 FE/t without processors.
- I/O processing: A powered Logistics I/O Processor raises the output limit to 500 FE/t and unlocks side configuration.
- One shared limit: These configurable limits apply to all sides, connected Thermalloy Expansion Manifolds and cable extraction combined.
- Processor power: Processors consume FE, with priority from left to right. If one cannot be powered, it switches off along with those to its right. Put important processors on the left; restarting requires sufficient generation or stored energy.
- Comparator support: Read the generator's stored charge with a comparator.
Key Features
- Heat and cold sources: Use lava, water, magma, ice and more. Lit furnaces, blast furnaces, smokers, campfires, soul campfires, candles, torches, soul fire, lava cauldrons, frosted ice and powder snow offer more options. Flowing lava and water also work, with reduced conductivity and reserves that depend on fluid level.
- Source reserves: Depleting sources have a heat reserve shared by every generator using the same source block and saved with the world. Heat exchange consumes it; the source's configured temperature stays fixed. Ice eventually becomes water, lava becomes magma, and torches disappear and drop sticks. Furnaces, blast furnaces and smokers work only while lit and do not deplete.
- Reserve tracking: Partly used sources retain their reserve in matching block drops and through bucket pickup and placement, including vanilla dispenser and cauldron handling. Item tooltips show the remaining reserve, solid sources show wear cracks, and partly used sources cannot be moved by pistons.
- Other mods: sources from 16 mods load automatically when the mod is installed (see Dependencies & Integrations).
- Heat field: blocks next to lava, ice and other sources, and next to generators, keep their own temperature. They warm up and cool down gradually, and the heat is saved with the world. A generator can draw heat through a block placed between it and a source; the source's reserve then drains 10 times slower. Snow melts over hot ground. Cold counts for more the colder it gets: from 1× at 16 °C up to 6× at −150 °C.
- Block materials: every block has its own conductivity and heat capacity. Metals conduct heat well, stone less, wool and other insulators barely. The values are shown in JEI.
- Thermal imager and thermal goggles: two craftable devices that show the real temperatures of the mod (air, sources, heated blocks, generator sides) as a full-screen thermal picture. The handheld imager is raised with both hands (hold right click or press V), has its own camera and is visible to other players. The thermal goggles are a helmet: V switches them on and off, the camera has its own key, and the picture appears on the glass. K switches the far-range look. The imager only shows what the mod really computes. It uses no energy.
- Thermal effects and sound: Particles, heat shimmer, glowing edges and frost follow actual machine temperatures. Quiet thermal sounds and a fan hum respond to the machine's activity.
- Machine interfaces: An animated Δ logo, nonlinear thermometers, processor power indicators, sliding side panels and a filling manifold coil show the machine's state.
Dependencies & Integrations
- GeckoLib (Required) — Required for the mod's animations. Tested with GeckoLib 4.7.6.
- Ponder & Flywheel (Bundled) — No separate installation needed. Hold W (the default Ponder key) while hovering over a supported item, such as the generator, housing, processor or manifold, to view animated tutorials.
- Just Enough Items (JEI) (Optional, recommended) — Browse thermal sources, conductivity, reserves, depletion results, block materials and housing assembly/disassembly steps. Press U on a bucket (for example a lava bucket) to open that fluid's source card.
- Jade (Optional) — View temperatures, net generation, processor status, source reserves and housing assembly hints.
Supported mods (heat and cold sources)
Each source loads only when its mod is installed; nothing happens and nothing is logged as an error without it. Blocks that burn their own fuel (such as the blaze burner, stoves, and machines like blast furnaces) follow their own state and have no reserve of ours; the others have a heat reserve like vanilla sources.
- Create and Create Crafts & Additions — blaze burners (250 / 400 / 800 °C by level)
- Farmer's Delight, Supplementaries — stove, fire pit
- Biomes O' Plenty, Oh The Biomes We've Gone, Regions Unexplored, Aether, Undergarden, Eternal Starlight, Twilight Forest — hot and icy blocks of their biomes
- Powah — dry ice
- Mekanism — fluids such as steam, sodium, hydrogen
- Immersive Engineering — blast furnaces, coke oven
- Ad Astra, Ars Nouveau — cryo fuel, magic fire
Some entries were checked against the mods' source code but not run in-game.
Technical Documentation for Modpacks
Thermal sources, climate, block materials and housing assembly are plain datapack data. Use your own namespace, or the caloricflux namespace to override a shipped file (same path = replaces it).
General rules (sources, climate, materials)
- Reload: all three are reload listeners. Edit the files and run
/reload; no restart. The new data is synced to connected clients.
- Folders: files are read recursively, so
thermal_sources/compat/create/x.json is fine. The file id is its path, e.g. caloricflux:compat/create/blaze_burner.
- Bad input never crashes the game. A file with broken JSON is skipped by vanilla. A file with valid JSON but wrong content (unknown key, missing required key, value out of range, unknown block, fluid, item or effect) is rejected as a whole and logged as
Rejected thermal source|climate|material <id>: <reason> at ERROR level in latest.log. All other files still load. Unknown keys are always rejected, so typos show up.
- Order: files are processed sorted by path, then by namespace (
compat/create/… before torch; caloricflux:torch before mypack:torch). Where two files conflict, the rules below say which wins.
requires_mod: the file is skipped silently (debug log only) when the mod is not installed.
1. Thermal Sources
data/<namespace>/thermal_sources/*.json. Example for a torch source (this is the shipped file):
{
"blocks": ["minecraft:torch", "minecraft:wall_torch"],
"temperature": 200,
"conductivity": 40,
"exhaustion": {
"heat_budget": 120000,
"result": { "block": "minecraft:air" },
"drop": "minecraft:stick",
"effect": "smoke"
}
}
blocks / fluid (required, exactly one): an ID, a #tag, or a list of them. fluid matches the still and the flowing form of a fluid. An unknown ID rejects the file; an unknown tag only writes a warning and matches nothing.
temperature (number, °C, −100000 to 100000): source temperature. Required unless temperature_by is used; give exactly one of the two.
conductivity (required, number 0 to 1e9): how quickly heat transfers between the source and the generator.
exhaustion (required): "none" for a source that does not deplete, or an object. A missing exhaustion rejects the file.
heat_budget (required, number above 0, up to 1e15): reserve in heat units. It is consumed by heat exchanged, including cooling, not by time.
result (required): { "block": "minecraft:water" } replaces the source with that block. { "set": { "lit": "false" } } changes block-state properties (values are strings; blocks only, a fluid result must use block). Exactly one of block / set. A result equal to the source block, a set that changes nothing, or an unknown property or value makes that block unusable (see below).
drop (optional): item ID dropped on depletion. An unknown item rejects the file.
effect (optional): hiss, smoke, ice_crack, steam or none. If omitted, hiss or ice crack is chosen by whether the source is hotter or colder than the air.
active_when (optional): block-state properties that must match, in the vanilla predicate format. "active_when": { "lit": "true" } makes a source work only while lit. A block without that property is not used.
temperature_by (optional, blocks only): use instead of temperature when the temperature depends on one block property: { "property": "...", "values": { "<value>": <°C>, … } }. Both keys are required, values must not be empty. A state whose value is not listed is not a source. A block without the property, or a listed value that does not exist on it, is not used.
requires_mod (optional): a mod ID or a list of IDs. The file loads only if all are installed. An ID that is not a valid mod ID rejects the file.
flowing (optional, fluids only): see the lava example below.
When a profile lists several blocks and only some are unusable (missing property, bad result, …), the rest still work and the problem is logged as a warning; if none is usable the file is rejected.
Temperature by block state, loaded only with the mod installed (shipped file):
{
"requires_mod": "create",
"blocks": "create:blaze_burner",
"temperature_by": {
"property": "blaze",
"values": { "fading": 250, "kindled": 400, "seething": 800 }
},
"conductivity": 40,
"exhaustion": "none"
}
JEI and tooltips show the range (250–800 °C) and one line per level; Jade shows the exact value of the block you look at.
A furnace that works only while burning and does not deplete (shipped file):
{
"blocks": "minecraft:furnace",
"active_when": { "lit": "true" },
"temperature": 200,
"conductivity": 20,
"exhaustion": "none"
}
Fluid profiles can also include flowing (shipped lava file):
{
"fluid": "#minecraft:lava",
"temperature": 1000,
"conductivity": 100,
"exhaustion": {
"heat_budget": 2000000,
"result": { "block": "minecraft:magma_block" }
},
"flowing": {
"conductivity_scale": 0.5,
"budget_scale": 0.25,
"result": { "block": "minecraft:cobblestone" }
}
}
The flowing scales multiply the base conductivity and reserve, then both are multiplied by the fluid amount divided by 8. Scales default to 1 and must be greater than 0 and no greater than 1. A flowing result defaults to the main depletion result. Omit flowing to accept only source fluids; budget_scale and a flowing result require a depleting profile.
Overlaps and precedence. A block or fluid can belong to one profile only.
- ID beats tag: a profile that names the block by ID wins it over a profile that reaches it only through a
#tag. The tag profile silently loses that block and keeps the rest.
- Same kind of claim twice (both by ID, or both through tags): the file that sorts first wins; the other is rejected with
overlaps <profile> on <block> in the log.
- To change a shipped source, replace its file (same path), or claim the block by ID in your own profile when the shipped one uses a tag.
2. Climate
data/<namespace>/thermal_climate/*.json:
{
"biomes": ["minecraft:desert"],
"mean": 38,
"daily": 10,
"rain": 0
}
biomes (required, not empty): biome IDs or #tags. IDs are not checked against the registry, so an unknown biome simply never matches.
mean (required, −273 to 2000): average air temperature in °C at sea level.
daily (required, 0 to 50): kept for compatibility with older files; it has no effect, but the key must be present.
rain (required, −30 to 30): °C added during rain (negative cools); thunderstorms count half again. It is weaker in caves, and absent in dimensions without sky.
requires_mod is not supported here (it would reject the file). A biome from a mod that is not installed just never matches.
- Precedence: a biome ID beats a
#tag. If two files name the same biome by ID, the file that sorts first wins and the log gets a warning. Among tag entries the first matching file wins.
- A biome with no entry uses its vanilla temperature (including biomes of other mods).
3. Block Materials
data/<namespace>/thermal_materials/*.json:
{
"blocks": "#caloricflux:thermal/metal_copper",
"conductivity": 11,
"heat_capacity": 1.7,
"absorption": 0.7
}
blocks (required): an ID, a #tag or a list of them. IDs and tags are not checked; an unknown one matches nothing.
conductivity (optional, 0.1 to 20): how well the block conducts heat. Unlisted blocks use 2.
heat_capacity (optional, 0.05 to 3): how much heat it holds. Unlisted blocks use 1.
absorption (optional, 0.3 to 1.3): accepted and synced to clients, but not used by the current gameplay or imager code.
- At least one of the three values is required.
requires_mod (optional): one mod ID (a list is not accepted here). The file loads only if the mod is installed.
- A value outside its range, an empty
blocks or an unknown key rejects the file with an error in the log.
- Precedence, per value: a block ID beats a
#tag; among equals the first file in the order above wins. Each value is decided separately, so a file that sets only conductivity leaves heat_capacity to other files.
- The server config
solidConductivity (default 2) scales every conductivity (value × config ÷ 2) wherever a solid block touches the generator or the heat field. Open neighbours (air, grass, torches, snow layers and other non-solid blocks) use the config airConductivity (default 5) instead.
Block tags for materials. The mod ships one block tag per material class. To put a block into a class, add it to the tag in your datapack (data/caloricflux/tags/block/thermal/<name>.json, { "replace": false, "values": ["mod:block"] }; use { "id": "mod:block", "required": false } for blocks of mods that may be absent); to give it its own values, write a material file for its ID. Keep a block in one class only: if tags overlap, the first file in the order above decides.
Tag caloricflux:thermal/… |
conductivity |
heat_capacity |
thermalloy |
13 |
1.5 |
metal_copper |
11 |
1.7 |
metal_gold, metal_netherite |
9 |
1.3 / 1.6 |
metal_iron, metal_other |
8 |
1.75 |
machine_casing |
4 |
1.2 |
ice |
2.2 |
0.95 |
stone |
2 |
1 |
glass |
1.2 |
0.85 |
ground |
1 |
0.8 |
wood |
0.6 |
0.6 |
insulation (wool, carpets, snow layer, hay, sponge, moss, mushrooms…) |
0.3 |
0.1 |
Other tags: block tag caloricflux:no_heat_field (ships with water) lists source blocks that still work as sources but do not warm or cool the blocks around them. Item tags caloricflux:thermalloy_ingots and caloricflux:clamping_metals list the ingots accepted in the mod's crafting recipes (plates, circuits, manifold, imager, goggles); add ingots of other mods there.
4. Housing Assembly (caloricflux:housing_assembly)
Recipes go in data/<namespace>/recipe/*.json (shipped: recipe/housing_assembly/stage_0.json … stage_9.json; same path overrides them). Example for the initial construction step:
{
"type": "caloricflux:housing_assembly",
"stage": 0,
"ingredient": { "item": "minecraft:iron_ingot" },
"base_block": "caloricflux:thermalloy_block",
"result_block": "caloricflux:thermalloy_housing",
"reverse_tool": { "tag": "minecraft:axes" },
"reverse_drop": "minecraft:iron_ingot"
}
stage (required, integer): the step this recipe performs. 0 is used on a Block of Thermalloy; step N is used on a housing that is at stage N.
ingredient (required, not empty): item or tag (vanilla ingredient format, a list works). Used on the block it moves the housing one stage up. A damageable item loses durability (config assemblyToolDamage, default 1), anything else is consumed one at a time; creative mode consumes nothing.
reverse_tool (optional): ingredient that undoes this step. Without it the step cannot be reversed.
reverse_drop (optional): item dropped when the step is undone; none if omitted.
result_block (optional): on step 0, the block that replaces the Block of Thermalloy (default caloricflux:thermalloy_housing, stage 1). On a later step, the finished block that replaces the housing instead of raising its stage.
base_block (optional): on step 0, the block put back when the housing at stage 1 is taken apart. Without it stage 1 cannot be taken apart.
Housing stages run from 1 to 10; the housing at stage 10 is the finished one used in the generator recipe. Several recipes may share a stage: each is a valid alternative. A step with no recipe stops the chain. Stages outside 0–10 never match, and a recipe for stage 10 does something only with a result_block. A recipe with bad content (unknown item or block, missing stage or ingredient) is skipped with a vanilla "Parsing error loading recipe" line in the log.
Getting Started
- Craft a Block of Thermalloy and the housing parts. Place the block and assemble the Thermalloy Housing in the world, step by step, up to stage 10. Ponder, housing hints and JEI show the parts and tools needed.
- Use the completed housing to craft your Thermal Difference Generator.
- Place a hot source on its left or right side and a cold source on the opposite side, perpendicular to the front fan. Let the generator warm up and store FE.
- Connect a cable or machine for basic output. Install and power a Logistics I/O Processor to configure outputs and raise the shared limit to 500 FE/t by default.
评论 0
登录后参与评分
还没有评论,来抢沙发吧