CobbleTooHot
CobbleTooHot 是一个小巧的“桥接”模组,让 Cobblemon 宝可梦在靠近玩家时影响 Tough As Nails 的温度。
想让喷火龙比小火龙感觉更热吗?或者让急冻鸟比暴雪王更有效地冷却空气?这个模组通过简单的配置即可实现这些效果。
功能说明
- 扫描每个玩家附近的 Cobblemon
PokemonEntity。
- 根据以下配置施加温度影响:
- 按个体物种 配置(
perPokemon),或
- 可选的 按属性类型 回退配置(
perType),当未列出特定物种时使用。
- 将影响反馈至 Tough As Nails 的 玩家温度修正器 系统。
TAN 的温度状态仍为 离散值(ICY、COLD、NEUTRAL、WARM、HOT),并且会随时间变化(TAN 的延迟和配置依然生效)。
依赖要求
- Minecraft
1.21.1
- Tough As Nails(必需)
- Cobblemon(可选,但为了……宝可梦体验,你肯定需要它)
配置文件
配置文件路径:
config/CobbleTooHot/config.json
示例:
{
"enabled": true,
"radiusBlocks": 8.0,
"maxTotalShift": 4,
"updateIntervalTicks": 20,
"perPokemon": {
"cobblemon:charizard": "HOT",
"cobblemon:charmander": "WARM",
"cobblemon:articuno": "ICY",
"cobblemon:abomasnow": "COLD"
},
"perType": {
"fire": "HOT",
"ice": "ICY"
}
}
注意事项:
perPokemon 的值对应 TAN 的温度等级:ICY | COLD | NEUTRAL | WARM | HOT
perType 是可选的。键名为 Cobblemon 的属性类型 showdown ID(例如 fire、ice、water)。
- 双属性宝可梦使用两种属性偏差的平均值(因此火+冰倾向于中性,除非你调整了
perType 映射)。
maxTotalShift 限制了组合效果的强度上限(防止出现“堆叠 30 只宝可梦”的情况)。
updateIntervalTicks 用于限制扫描频率(默认 20 = 每秒一次)。
消息配置(可选)
消息文件路径:
config/CobbleTooHot/messages.json
此文件控制占位符周围的 文本内容。某些占位符在代码中被硬编码了颜色(以确保温度标签的一致性)。
默认键名:
reloadSuccess
statusTemp(使用 {temperature})
statusLocate(使用 {count})
statusLocateLine(使用 {species}、{count}、{temperature})
消息中支持的颜色代码:
- 传统
& 代码(例如 &a、&e、&l、&r)
- 十六进制颜色:
&#RRGGBB
- 使用
&& 转义字面量 ampersand (&)
命令
/cobbletoohot status
- 显示你当前的 TAN 温度以及附近已配置的宝可梦影响。
/cobbletoohot reload (权限 2)
- 重新加载
config.json 和 messages.json。
/cobbletoohot debug (权限 2)
- 提供额外的故障排除信息(注册状态、计算出的偏移量等)。
性能优化
该模组会在每个玩家周围的半径内执行实体查询,然后根据附近宝可梦的物种/属性信息进行反映。
如果你预期玩家周围会有大量宝可梦,请保持 radiusBlocks 数值适中,并增加 updateIntervalTicks(例如 20–40)。
CobbleTooHot
CobbleTooHot is a tiny “bridge” mod that lets Cobblemon Pokémon affect Tough As Nails temperature when they’re near a player.
Want a Charizard to feel hotter than a Charmander? Or an Articuno to chill the air more than an Abomasnow? This mod lets you do that with a simple config.
What It Does
- Scans for nearby Cobblemon
PokemonEntity around each player.
- Applies a temperature influence based on either:
- Per-species config (
perPokemon), or
- Optional per-type fallback (
perType) if a species isn’t listed.
- Feeds into Tough As Nails’ player temperature modifiers system.
TAN temperature is still discrete (ICY, COLD, NEUTRAL, WARM, HOT) and still changes over time (TAN’s delays/configs still apply).
Requirements
- Minecraft
1.21.1
- Tough As Nails (required)
- Cobblemon (optional, but you’ll want it for… Pokémon)
Config
Config path:
config/CobbleTooHot/config.json
Example:
{
"enabled": true,
"radiusBlocks": 8.0,
"maxTotalShift": 4,
"updateIntervalTicks": 20,
"perPokemon": {
"cobblemon:charizard": "HOT",
"cobblemon:charmander": "WARM",
"cobblemon:articuno": "ICY",
"cobblemon:abomasnow": "COLD"
},
"perType": {
"fire": "HOT",
"ice": "ICY"
}
}
Notes:
perPokemon values are TAN levels: ICY | COLD | NEUTRAL | WARM | HOT
perType is optional. Keys are Cobblemon type showdown IDs (e.g. fire, ice, water).
- Dual-types use an average between the two type deltas (so Fire+Ice tends toward neutral unless you tune your
perType mapping).
maxTotalShift caps how strong the combined effect can be (prevents “stack 30 Pokémon” situations).
updateIntervalTicks throttles scans (default 20 = once per second).
Messages (Optional)
Messages path:
config/CobbleTooHot/messages.json
This controls the text around placeholders. Some placeholders are intentionally hard-colored in code (so the temperature label stays consistent).
Default keys:
reloadSuccess
statusTemp (uses {temperature})
statusLocate (uses {count})
statusLocateLine (uses {species}, {count}, {temperature})
Color codes supported in messages:
- Legacy
& codes (ex: &a, &e, &l, &r)
- Hex colors:
&#RRGGBB
- Escape a literal ampersand with
&&
Commands
/cobbletoohot status
- Shows your current TAN temperature and nearby configured Pokémon influences.
/cobbletoohot reload (perm 2)
- Reloads
config.json + messages.json.
/cobbletoohot debug (perm 2)
- Extra info for troubleshooting (registration, computed shifts, etc.).
Performance
This mod does an entity query in a radius around each player, then reflects species/type info from nearby Pokémon.
If you expect a lot of Pokémon around players, keep radiusBlocks modest and increase updateIntervalTicks (e.g. 20–40).
评论 0
登录后参与评分
还没有评论,来抢沙发吧