#Biomes Filter

5 messages · Page 1 of 1 (latest)

haughty hazel
#

So I was curious can I use KubeJS to filter out biomes and allow like a few other ones to spawn, lets say I want to despawn all biomes except plains biomes. Does an example script exist for that?

rain echoBOT
#

Once your ticket has been resolved, please close it with </ticket close:1054771505520717835> command!

haughty hazel
#

Also on further note, I made this script in JS, I need for you guys to tell me if I did something wrong because it doesnt seem to work:

#


WorldgenEvents.remove(event => {
  const allowed = [
    'regions_unexplored:boreal_taiga',
    'regions_unexplored:cold_river',
    'regions_unexplored:deciduous_forest',
    'regions_unexplored:fen',
    'regions_unexplored:golden_boreal_taiga',
    'regions_unexplored:grassy_beach',
    'regions_unexplored:mountains',
    'regions_unexplored:muddy_river',
    'regions_unexplored:shrubland',
    'minecraft:deep_ocean',
    'minecraft:cold_ocean',
    'minecraft:deep_cold_ocean',
    'minecraft:frozen_peaks'
  ]

  event.removeBiome('overworld', biome => !allowed.includes(biome.id))
})