Player Biome Fact
Expose the player's current biome as a fact value
Fact entry that exposes player's current biome as a fact value. Supports both vanilla and custom biomes.
Champs
| Champ | Type | Par défaut | Description |
|---|---|---|---|
group | Ref<GroupEntry> | — | If left empty, every player has its own group. |
mode | Mode | BOOLEAN | Mode for determining the fact valueValeurs :BOOLEANCODE |
biomes | List<String> | empty | Biome identifiers for BOOLEAN mode. Returns 1 if player is in any of these biomes, 0 otherwise. |
codes | Map<String, Int> | empty | Biome to code mapping for CODE mode. Returns the code for the current biome. |
defaultCode | Int | 0 | Default code to return if current biome is not in the mapping |
ignoreMissing | Boolean | true | If true, ignore missing biome identifiers instead of throwing errors |
source | BiomeSource | PLAYER_VIEW | Whether to read what the player is shown (overlays included) or what the world containsValeurs :PLAYER_VIEWREAL_WORLD |
Champs TypeWriter communs (comment)
| Champ | Type | Par défaut | Description |
|---|---|---|---|
comment | String | — | A comment to keep track of what this fact is used for.Multiligne |
How to use it
BOOLEANmode returns1when the player is in one ofbiomes(any custom biome when the list is empty), otherwise0.CODEmode maps each biome incodesto a number and returnsdefaultCodefor the others. It is handy for comparing several biomes with one fact.sourcepicks what is read:PLAYER_VIEW(what the player is shown, overlays included) orREAL_WORLD.