Skip to content

Biomes

Generated page, edit scripts/gen_schema_pages.py instead.

PKL4MC, Biome schema for Minecraft 1.20.1

Usage

amends "@pkl4mc/biome.pkl"

Example

biome
amends "@pkl4mc/biome.pkl"

has_precipitation = true
temperature = 0.5
downfall = 0.4

effects {
  fog_color = 12638463
  sky_color = 8103167
  water_color = 4159204
  water_fog_color = 329011
  mood_sound {
    sound = "minecraft:ambient.cave"
    tick_delay = 6000
    block_search_extent = 8
    offset = 2.0
  }
  // optional - nether biomes use this
  // ambient_sound = "minecraft:ambient.basalt_deltas.loop"
  // optional - custom music
  // music { sound = "minecraft:music.overworld.meadow"; min_delay = 12000; max_delay = 24000; replace_current_music = false }
}

carvers {
  ["air"] = new Listing { "minecraft:cave"; "minecraft:canyon" }
}

// one Listing per decoration step (0–10), left to right:
// raw_generation, lakes, local_modifications, underground_structures,
// surface_structures, strongholds, underground_ores, underground_decoration,
// fluid_springs, vegetal_decoration, top_layer_modification
features = new Listing {
  new Listing {}
  new Listing { "minecraft:lake_lava_underground" }
  new Listing {}
  new Listing {}
  new Listing {}
  new Listing {}
  new Listing { "minecraft:ore_coal_upper"; "minecraft:ore_iron_upper"; "examplemod:example_ore" }
  new Listing {}
  new Listing { "minecraft:spring_water" }
  new Listing { "minecraft:patch_grass_plain"; "minecraft:flower_default" }
  new Listing { "minecraft:freeze_top_layer" }
}

spawners {
  ["ambient"]                    = new Listing { new SpawnerEntry { type = "minecraft:bat"; weight = 10; minCount = 8; maxCount = 8 } }
  ["creature"]                   = new Listing { new SpawnerEntry { type = "minecraft:sheep"; weight = 12; minCount = 4; maxCount = 4 } }
  ["monster"]                    = new Listing { new SpawnerEntry { type = "minecraft:zombie"; weight = 95; minCount = 4; maxCount = 4 } }
  ["misc"]                       = new Listing {}
  ["axolotls"]                   = new Listing {}
  ["underground_water_creature"] = new Listing { new SpawnerEntry { type = "minecraft:glow_squid"; weight = 10; minCount = 4; maxCount = 6 } }
  ["water_ambient"]              = new Listing {}
  ["water_creature"]             = new Listing {}
}

spawn_costs {}