#Change the ore generation completely to another dimension

6 messages · Page 1 of 1 (latest)

indigo violet
#

So basically, i wanna make a server with gregtech with my friends, but most of them don't wanna play with gregtech, so i was thinking of moving every gregtech ore generation to a custom mining dimension from another mod and then work from there, i figured out how to remove every gregtech ore generation with kubejs like this GTCEuServerEvents.oreVeins(event => { // Remove all of the original GregTech veins event.removeAll() })
but how do i then add every vein to the mining dimension without adding all of them manually?

or if you guys have any other good solutions to the problem of making gregtech optional let me know!

indigo violet
#

i also tried something like this

  event.modifyAll((id, vein) => {
    vein.dimensions('mining_dimension:mining')
  })
})```
but still doesn't work, i mean it removes all the gregtech ores, but doesn't put them in the mining dimension
indigo violet
#

bro pls just anybody i tried so much stuff but nothing works😭

mystic aspen
#

You need to add a custom layer iirc, but I'm not quite sure how to do that

little osprey
#

You can create custom dimension like that, in file startup_scripts:
GTCEuStartupEvents.registry('gtceu:world_gen_layer', event => {
event.create('glacio')
.targets('ad_astra:glacio_stone','minecraft:deepslate')
.dimensions('ad_astra:glacio')
})
https://gregtechceu.github.io/GregTech-Modern/1.20.1/Modpacks/Ore-Generation/04-Layers-and-Dimensions/
I am not sure but you probably need add vein.layer into .modifyAll
https://gregtechceu.github.io/GregTech-Modern/1.20.1/Modpacks/Ore-Generation/01-Customizing-Veins/#modifying-existing-veins

humble glacier