#KubeJS - Removing structures

10 messages · Page 1 of 1 (latest)

versed thistle
#

MC: 1.19.2 FORGE 42.2.8
I Want to know if It's possible to remove structures with KubeJS before I go and spend ungodly amount of time trying to figure it out.

For context im trying to remove the witherstorm's default world structure

vapid jayBOT
#

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

limber basin
#

i've not tested it all the way, but i'm pretty sure that something like

onEvent('tags.worldgen.biome', event => {
    event.remove('tag', 'biome')
})

would work

#

i've done this before with structures from another mod, and it seemed to work well enough

onEvent('tags.worldgen.biome', event => {
    event.remove('idas:has_structure/sunken_ship_biomes', /^((?!deep).)*$/gm)
    event.remove('idas:has_structure/sunken_ship_coral_biomes', /^((?!deep).)*$/gm)
})
#

goes in /server_scripts/ i think

#

wait, is it startup? i have no idea

#

you can try both

versed thistle
#

Ok, thanks! ill try it out tomorrow

#

Gotta amimir now

vapid jayBOT
#

@versed thistle Unresolved thread still hasn't been closed! If your question was answered, please close this post with </ticket close:1054771505520717835> command!