Check biome tags

Use the world's live biome tags without loading chunks:

From Sunrise's modding bookead8a1e

rust
use mod_api::{Host, LevelRef};

fn is_forest(host: &dyn Host, level: LevelRef, biome: &str) -> Option<bool> {
    host.level_biome_in_tag(level, biome, "minecraft:is_forest")
}

The query includes data-pack biome tags and accepts a tag name with or without #.

ResultMeaning
Some(true)The known biome belongs to the tag.
Some(false)The known biome is outside the tag, or the tag is undefined.
NoneThe biome, level or live biome-tag tables are unavailable.

Edit this page on GitHub · Spotted something wrong? Open an issue or ask on Discord.