简介:
Terrafirmacraft 的温度模组。一套复杂的温度系统,也可扩展至非玩家实体。
机制:
- 带有射线投射阴影和遮挡效果的真实动态太阳加热
- 带有射线投射遮挡效果的真实风寒与冷却
- 通过角度和多样本射线投射实现的详细暴露源检测,支持部分暴露
室内环境:
- 动态泛洪填充系统,默认支持高达 13824 个方块的结构
- 基于热力学模型,内部体积需要能量和时间来升温或降温
- 边缘方块的密封系统,允许实现功能性窗户和部分方块
- 通过热源或太阳加热在白天达到峰值
- 通过冷源和打开窗户利用风进行冷却
保暖措施:
- 寻找阳光
- 躲避风
- 使用热源,如火焰;也支持 TFC 的热源
- 接触加热物品,如锭、锅等
- 隔热材料或衣物
降温措施:
- 寻找阴凉处
- 寻找有风的地方
- 游泳
- 接触冷方块,如冰
- 隔热材料或衣物
数据驱动:
实体温度数据映射: data/thermia/data_maps/entity_type/entity_temperatures.json
剧透
实体温度是你将遇到的主要数据映射,用于向实体添加或移除温度系统。它包含以下数据:
- max_entity_temperature: 实体的最高温度或气候上限。
- min_entity_temperature: 实体的最低温度或气候下限。
- is_mob: 用于决定实体是接收简单的还是复杂的玩家模型。
- is_tamed: 如果该属性为真,则实体必须被驯服才能启用温度系统。
以玩家条目为例:
"minecraft:player": {
"is_mob": false,
"is_tamed": false,
"max_entity_temperature": 25.0,
"min_entity_temperature": 5.0
}
方块温度数据映射: data/thermia/data_maps/block/block_temperature.json
剧透
方块温度是另一个主要数据映射。它告诉 Thermia 每个方块的温度,以及它是发热辐射的还是冰冷导热的。它包含以下数据:
- temperature: 方块的温度,或者如果它有方块状态(blockstates)时的默认温度。如果 hasTFCHeat 为 true,则此值必须为 0。
- search_cap: Thermia 在每次邻近方块搜索中应查找并保存的最大数量。
- has_tfc_heat: 如果该方块具有 TFC 的热机制,则此项为真。如果此项为真,温度必须为 0。
- is_radiative: 如果应将此方块视为辐射源。如果此项为假,则将其视为接触源,例如冰。
- state_temps: 这更为复杂。它允许特定的方块状态拥有不同的温度。
以熔炉(Bloomery)条目为例:
"tfc:bloomery": {
"has_tfc_heat": false,
"is_radiative": true,
"search_cap": 16,
"state_temps": [
{
"value": 1200.0,
"when": [
"lit=true"
]
}
],
"temperature": 0.0
}
流体温度数据映射: data/thermia/data_maps/fluid/fluid_temperature.json
剧透
类似于方块温度,此映射处理流体温度。它还允许你定义包含这些流体的方块(如水箱)的辐射温度。注意,此数据映射没有特殊的方块状态处理功能。它包含以下数据:
- temperature: 流体的温度。
- search_cap: Thermia 在每次邻近方块搜索中应查找并保存的最大数量。
- is_radiative: 如果应将此方块视为辐射源。如果此项为假,则将其视为浸没源,例如水。
以岩浆条目为例:
"minecraft:lava": {
"is_radiative": true,
"search_cap": 32,
"temperature": 1000.0
}
方块密封数据映射 data/thermia/data_maps/block/block_porosity.json
剧透
方块密封数据映射用于定义方块在室内环境中的漏气程度。由于室内系统仅使用 Block Seal(方块密封)和 isSolidRender(是否为实心渲染)来确定边界,Block Porosity(方块孔隙度)还充当白名单,允许非实心方块作为墙壁或边缘。它包含以下数据:
- state_block_seal: 类似于方块温度中的 state_temps 值,这是一个复杂的条目,允许具有多个方块状态值的方块拥有不同的孔隙度或漏气值。对于活板门,其垂直位置被视为“开启”,但在窗户用途上被视为“关闭”。
- default_block_seal: 当没有任何 state_porosity 值适用时的默认孔隙度。
以栅栏条目为例:
"#c:fences": {
"default_block_seal": 0.5,
"state_block_seal": [
{
"value": 0.25,
"when": [
"east=true",
"west=false"
]
},
{
"value": 0.25,
"when": [
"east=false",
"west=true"
]
},
{
"value": 0.25,
"when": [
"south=true",
"north=false"
]
},
{
"value": 0.25,
"when": [
"south=false",
"north=true"
]
}
]
}
物品隔热数据映射: data/thermia/data_maps/item/item_insulation.json
剧透
物品隔热是 Thermia 热系统的关键部分。它将你与环境隔离开来,减缓甚至阻止环境温度的变化。衣物系统有 4 个属性。它包含以下数据:
-
conductionProtection(传导防护): 传导防护一石二鸟。首先,它能有效抵御来自寒冷方块等接触式热源的伤害;其次,它还能减弱环境温度变化的影响。数值范围必须在 -1 到 1 之间。
-
radiationProtection(辐射防护): 辐射防护可抵御熔岩、火焰或太阳等辐射源的影响。这在炎热天气下应对阳光暴晒或在锻造台旁工作时尤为有用。数值范围必须在 -1 到 1 之间。
-
convectionProtection(对流防护): 此属性用于抵御风或流动空气的侵袭,帮助保持实体温暖。数值范围必须在 -1 到 1 之间。
-
rainProtection(防雨防护): 防雨防护较为简单,它限制了你在雨中所能达到的最大湿润程度。数值范围必须在 0 到 1 之间。
以黑熊皮大衣为例:
"thermia:black_bear_lined_coat": {
"conduction_protection": 0.85,
"convection_protection": 0.4,
"radiation_protection": 0.1,
"rain_protection": 0.85
}
Summary:
A temperature mod for Terrafirmacraft, A complex temperature system that can also be extended to non player entities.
Mechanics:
- Realistic and dynamic solar heating with working raycast shadow and occlusion
- Realistic wind chill and cooling with raycast occlusion
- Detailed source exposure with angles and multiple samples raycast allowing for partial exposure
Interiors:
- Dynamic flood fill system allowing for any structure up to 13824 blocks by default
- Thermodynamic based model, Internal volume requires energy and time to warm or cool
- Block seal system for edge blocks allowing for functional windows and partial blocks
- Heating through sources or solar heating peaking at the day
- Cooling through sinks and opening windows with the wind
Keeping Warm:
- Seeking sunlight
- Sheltering from wind
- Heat sources such as fire, TFC sources are also supported
- Heated items such as ingots, pots, etc.
- Insulation or clothing
Keeping Cool:
- Seeking shade
- Seeking wind
- Swimming
- Contact with cold blocks such as ice
- Insulation or clothing
Data Driven:
Entity Temperature Data Map: data/thermia/data_maps/entity_type/entity_temperatures.json
Spoiler
Entity Temperature is the primary data map that you'll encounter and is the method to add or remove the temperature system to entities. It has the following data:
- max_entity_temperature: Maximum temperature or climate for an entity.
- min_entity_temperature: Minimum temperature or climate for an entity.
- is_mob: This is for deciding if the entity receives the simple or complex player model.
- is_tamed: If the entity requires taming for the temperature system to enable.
Player entry for example:
"minecraft:player": {
"is_mob": false,
"is_tamed": false,
"max_entity_temperature": 25.0,
"min_entity_temperature": 5.0
}
Block Temperature Data Map: data/thermia/data_maps/block/block_temperature.json
Spoiler
Block Temperature is another primary data map. It's what tells thermia what block has what temperature and if it's hot and radiative or cold and conductive. It has the following data:
- temperature: Temperature of the block or default temperature if it has blockstates, If hasTFCHeat is true this must be 0.
- search_cap: How many should thermia look for and save in each nearby block search.
- has_tfc_heat: If the block has TFC's heat mechanic, If this is true the temperature must be 0.
- is_radiative: If this block should be treated like a radiation source. If this is false it's treated as a contact source, Eg. Ice.
- state_temps: This is more complex, This allows for specific blockstates to have different temperatures.
Bloomery entry for example:
"tfc:bloomery": {
"has_tfc_heat": false,
"is_radiative": true,
"search_cap": 16,
"state_temps": [
{
"value": 1200.0,
"when": [
"lit=true"
]
}
],
"temperature": 0.0
}
Fluid Temperature Data Map: data/thermia/data_maps/fluid/fluid_temperature.json
Spoiler
Much like Block Temperature, This handles fluid temperature. It will also allow you to define radiative temperatures for blocks containing these fluids such as tanks. Note this data map does not have special block state handling. It has the following data:
- temperature: Temperature of the fluid.
- search_cap: How many should thermia look for and save in each nearby block search.
- is_radiative: If this block should be treated like a radiation source. If this is false it's treated as a submersion source, Eg. Water.
Lava entry for example:
"minecraft:lava": {
"is_radiative": true,
"search_cap": 32,
"temperature": 1000.0
}
Block Seal Data Map data/thermia/data_maps/block/block_porosity.json
Spoiler
The Block Seal Data Map is for defining the leakiness of a block for interiors. As the interior system only uses Block Seal and isSolidRender to determine boundaries, Block Porosity also acts as a whitelist to allow non solid blocks as walls or edges. It has the following data:
- state_block_seal: Much like the state_temps value for Block Temperature, This is a complex entry for allowing a block with multiple block state values to have differing porosity or leakiness values. As with trapdoors their vertical position is considered "open" however closed for the purpose of a window.
- default_block_seal: The default porosity if none of the state_porosity values apply.
Fences entry for example:
"#c:fences": {
"default_block_seal": 0.5,
"state_block_seal": [
{
"value": 0.25,
"when": [
"east=true",
"west=false"
]
},
{
"value": 0.25,
"when": [
"east=false",
"west=true"
]
},
{
"value": 0.25,
"when": [
"south=true",
"north=false"
]
},
{
"value": 0.25,
"when": [
"south=false",
"north=true"
]
}
]
}
Item Insulation Data Map: data/thermia/data_maps/item/item_insulation.json
Spoiler
Item insulation is a key part of Thermia's thermal system. It isolates you from the environment slowing or even stopping environmental temperature change. There are 4 attributes to the clothing system. It has the following data:
-
conductionProtection: Conduction does double duty, First and foremost it helps protect against contact sources like cold blocks. It also helps dampen the pull of environmental temperature. Must be within -1 to 1.
-
radiationProtection: Radiation protects from radiative sources like lava, fire or the sun. This helps with the sun on a hot day or when working by a forge. Must be within -1 to 1.
-
convectionProtection: This guards against the wind or moving air, Helping keeping the entity warm. Must be within -1 to 1.
-
rainProtection: Rain protection is fairly simple, It's a simple limit to how wet you can get while in the rain. Must be within 0 to 1.
Black bear pelt coat for example:
"thermia:black_bear_lined_coat": {
"conduction_protection": 0.85,
"convection_protection": 0.4,
"radiation_protection": 0.1,
"rain_protection": 0.85
}
评论 0
登录后参与评分
还没有评论,来抢沙发吧