Filtering by Biome and Category
By default, the biomes array in your structure_spawners/<structure name>.json file is empty, allowing your schematic to generate wherever the placement conditions are met. To restrict a building to specific areas, add the "biomes": [ ... ] list to the root of your JSON file.
You can populate this list in two ways:
- Specific Biome IDs: Enter the exact registry name of a biome, such as
"minecraft:desert". - Biome Categories: Prefix a category name with
#to allow spawning across an entire group of biomes, such as"#forest".
Filtering by Dimension
Just like biomes, the dimensions array defaults to an empty list when left out of your file. To make a structure exclusive to the Overworld, the Nether, the End, or a custom modded dimension, add the "dimensions": [ ... ] array to your configuration.
Inside the brackets, list the target dimension IDs using standard namespace formatting—for example, "minecraft:overworld" or "minecraft:the_end". Once saved and loaded via your datapack, the spawner will only attempt to place your schematic when both the dimension and biome filters match the chunks being generated.