#Worldgen for create

1 messages · Page 1 of 1 (latest)

misty maple
#

I am trying to modify oregen of create on my server 1.20.1
this is the script i'm using in startup

WorldgenEvents.add(event => {
    const {andchors} = event
    event.addOre(ore => {
        ore.id = 'create:zinc_ore'

        ore.triangleHeight(                      // generate the ore with a triangular distribution, this means it will be more likely to be placed closer to the center of the anchors
           anchors.absolute(-63),    // the lower bound should be 32 blocks above the bottom of the world, so in this case, Y = -32 since minY = -64
           anchors.absolute(70)          // the upper bound, meanwhile is set to be just exactly at Y = 96
         )


        ore.size = 14                            // max. vein size
        ore.noSurface = 0.5                     // chance to discard if the ore would be exposed to air
        ore.worldgenLayer = 'underground_ores'  // what generation step the ores should be generated in (see below)
        ore.chance = 0                            // if != 0 and count is unset, the ore has a 1/n chance to generate per chunk
    })
    console.info('///////////////////////////////////////////////////////////')
    console.info('zinc should generate now')
}
)

however i get this error

[09:40:39] [INFO] Loaded 2/2 KubeJS startup scripts in 0.556 s with 0 errors and 0 warnings
[09:40:41] [ERROR] ! zinc_gen.js#3: WorldgenEvents.add() is currently not supported in 1.20 yet! This will be fixed soon, but for now we recommend you comment out worldgen code. Sorry for inconvenience!
[09:40:41] [INFO] zinc_gen.js#17: ///////////////////////////////////////////////////////////
[09:40:41] [INFO] zinc_gen.js#18: zinc should generate now
fast scrollBOT
#

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

sly prairie
#

its what the error says

#

WorldgenEvents.add() is currently not supported in 1.20 yet! This will be fixed soon, but for now we recommend you comment out worldgen code. Sorry for inconvenience!

#

1.20 doesnt have worldgen support yet and its not gonnna be soon

misty maple
#

is there any workaround for it?

sly prairie
#

use datapacks instead

misty maple
#

how can i do that?

sly prairie
#

theres a website that can help you build it although the name escapes me

misty maple
#

i see

sly prairie
#

here it is