Leave Biome Event
Triggered when a player leaves a biome
Event triggered when a player leaves a specific biome.
字段
| 字段 | 类型 | 默认值 | 描述 |
|---|---|---|---|
biomes | List<String> | empty | Biome identifiers to trigger when leaving (empty = any biome). Examples: 'minecraft:plains', 'typewriter:my_biome' |
customBiomes | List<Ref<CustomBiomeDefinitionEntry>> | empty | Custom biomes to trigger on, picked from their definitions |
ignoreMissing | Boolean | true | If true, ignore missing biome identifiers instead of throwing errors |
TypeWriter 通用字段(triggers)
| 字段 | 类型 | 默认值 | 描述 |
|---|---|---|---|
triggers | List<Ref<TriggerableEntry>> | empty | — |
How to use it
Leave biomes and customBiomes empty to trigger on any biome, or list the biomes to react to. The check runs when the player crosses into another 4x4x4 block cell. The triggered entries can read the context keys BIOME_ID, BIOME_NAME, PREVIOUS_BIOME_ID, PREVIOUS_BIOME_NAME and IS_CUSTOM_BIOME.