跳到主要内容

Weather Event

Trigger entries when the weather changes

字段

字段类型默认值描述
worldVar<String>—The world to listen for weather changes in. If empty, triggers for all worlds.
conditionWeatherCondition?—The weather condition triggering the event (RAIN or CLEAR). If null, triggers on any change.
TypeWriter 通用字段(triggers)
字段类型默认值描述
triggersList<Ref<TriggerableEntry>>empty—

How to use it​

world limits the event to one world by its name (empty means every world). condition is RAIN or CLEAR; leave it empty to react to every change. The triggers run for every player who is in that world when the weather changes.