温度(Temperature)
默认 temperature.yml
文件如下:
enabled: true
temperature-update-interval: 40
modifiers:
season-base-temperature:
winter:
min-temp: -12
max-temp: 0
spring:
min-temp: 0
max-temp: 20
summer:
min-temp: 20
max-temp: 40
fall:
min-temp: 5
max-temp: 20
armor:
leather: 20
leather-temperature-cap: 25
iron: 5
gold: 5
diamond: 5
netherite: 3
weather:
rain: -4
storm: -5
block-effects:
enabled: true
blocks:
- LAVA{range=7,modifier=22}
- TORCH{range=7,modifier=7}
- LANTERN{range=7,modifier=7}
- CAMPFIRE{range=7,modifier=15}
- WALL_TORCH{range=7,modifier=7}
- FIRE{range=7,modifier=16}
- SOUL_TORCH{range=7,modifier=-7}
- SOUL_WALL_TORCH{range=7,modifier=-7}
- SOUL_CAMPFIRE{range=7,modifier=-10}
- SOUL_FIRE{range=7,modifier=-16}
- SOUL_LANTERN{range=7,modifier=-7}
- ICE{range=3,modifier=-6}
- PACKED_ICE{range=3,modifier=-6}
- BLUE_ICE{range=7,modifier=-15}
touching-water:
summer: -10
spring: -4
fall: -4
winter: -10
foods-and-drinks:
water-bottle: -10
full-hunger-bar: 5
max-sprinting-modifier: 4
height:
enabled: true
other-dimensions:
nether: 25
end: 0
effects:
cold:
hunger: -10
slowness: -15
freezing: -20
boosts:
min: 15
max: 30
potioneffects:
- NONE
warm:
no-healing: 50
slowness: 60
fire: 65
display:
convert-to-fahrenheit: false
temperature:
actionbar: true
actionbar-display: ' [ %temperature% ]'
fahrenheit: °F
celcius: °C
warnings:
messages:
enabled: true
overheating: '&4&l警告!&4&r当前体温过高,请尽快降温!'
freezing: '&3&l警告! &3&r当前体温过低,请尽快取暖!'
actionbar:
enabled: true
overheating: Cool down!
freezing: Heat up!
custom:
items:
example-item:
enabled: false
material: LEATHER_BOOTS
custom-model-data: 5
use-custom-model-data: true
temperature-modifier: 10
activation:
wearing: true
holding: false
torch:
enabled: true
material: TORCH
custom-model-data: 5
use-custom-model-data: false
temperature-modifier: 7
activation:
wearing: false
holding: true
lava:
enabled: true
material: LAVA_BUCKET
custom-model-data: 5
use-custom-model-data: false
temperature-modifier: 15
activation:
wearing: false
holding: true
campfire:
enabled: true
material: CAMPFIRE
custom-model-data: 5
use-custom-model-data: false
temperature-modifier: 7
activation:
wearing: false
holding: true
lantern:
enabled: true
material: LANTERN
custom-model-data: 5
use-custom-model-data: false
temperature-modifier: 7
activation:
wearing: false
holding: true
soultorch:
enabled: true
material: SOUL_TORCH
custom-model-data: 5
use-custom-model-data: false
temperature-modifier: -7
activation:
wearing: false
holding: true
soulcampfire:
enabled: true
material: SOUL_CAMPFIRE
custom-model-data: 5
use-custom-model-data: false
temperature-modifier: -7
activation:
wearing: false
holding: true
soullantern:
enabled: true
material: SOUL_LANTERN
custom-model-data: 5
use-custom-model-data: false
temperature-modifier: -7
activation:
wearing: false
holding: true
ice:
enabled: true
material: ICE
custom-model-data: 5
use-custom-model-data: false
temperature-modifier: -6
activation:
wearing: false
holding: true
packedice:
enabled: true
material: PACKED_ICE
custom-model-data: 5
use-custom-model-data: false
temperature-modifier: -6
activation:
wearing: false
holding: true
blueice:
enabled: true
material: BLUE_ICE
custom-model-data: 5
use-custom-model-data: false
temperature-modifier: -15
activation:
wearing: false
holding: true
调节器
调节器是一种影响玩家温度的元素,将所有调节器组合在一起会得出玩家的温度 每天会在季节基础温度的范围内随机选择一个温度,并将所有调节器叠加在上面 玩家显示的温度是 基础温度 + 所有调节器 的温度. 例如,当玩家装备了全套盔甲时,盔甲的温度调节器将会生效 每件盔甲对温度的影响是平均分配的,每件盔甲所产生的调节器效果是总调节器效果的1/4
效果
显示
默认情况下,温度会在操作栏(Action)上显示,当玩家达到危险温度时,在操作栏和聊天框上都会发出警告.你可以在配置 temperature.yml
中的 display
部分单独禁用这些功能,使用PlaceHolderAPI 变量,还可以将温度显示在任何位置.
默认情况下,温度只能在 /season
中查看
插件还可以在显示温度之前将摄氏度自动转换为华氏度
将 display -> convert-to-fahrenheit
设置为 true
并且将 display->temperature->actionbar-display
中的 °C
更改为 °F
当插件检测到玩家来自使用华氏度的国家时,会自动将新玩家的温度切换为华氏度
玩家也可以使用命令 /togglefahrenheit
来切换温度显示为华氏度还是摄氏度
自定义物品
最后更新于