Skip to content

[1.16+] World Whitelist

Alberto edited this page Jul 15, 2022 · 4 revisions

The World Whitelist object is used to make properties apply only in certain dimensions / biomes.

World Whitelist

  • world_whitelist: (Object) the object that contains the different whitelists
    • dimensions: a list of dimensions names where the properties will be applied
    • biomes: a list of biomes names where the properties will be applied
    • deepness: Range Object representing the min and max Y level where the properties will be applied

Example

This example makes creeper that spawn in Deserts have Speed II and creepers that spawn in the Nether have Fire Resistance.

{
    "mob_id": "minecraft:creeper",
    "potion_effects": [
        {
            "id": "minecraft:speed",
            "amplifier": {
                "min": 1
            },
            "world_whitelist": {
                "biomes": [
                    "minecraft:desert",
                    "minecraft:desert_hills",
                    "minecraft:desert_lakes"
                ]
            }
        },
        {
            "id": "minecraft:fire_resistance",
            "world_whitelist": {
                "dimensions": [
                    "minecraft:the_nether"
                ]
            }
        }
    ]
}
Clone this wiki locally