#Extending gt ore vein depth

179 messages · Page 1 of 1 (latest)

solemn marsh
#

@late timber I hope its ok to ping you here, I increased my world to go to y-208, and sadly none of the gt veins go that deep. Is it possible to expand all veins that go to -50 or deeper to go to -200? On the wiki I found ```js
GTCEuServerEvents.oreVeins(e => {
e.modifyAll("*", vein => {

})

})```But sadly vscode doesn't suggest anything to me for the vein.
Thanks in advance

pearl stagBOT
#

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

solemn marsh
#

Also, this gives a error that it can't find the methode modifyAll with the arguments string,function

late timber
#

modifyAll doesn't take anth

#

anything

#

except the consumer

solemn marsh
#

Ok, maybe update that on the wiki then

#

But how do I actually change the height?

#

Or rather the depth

solemn marsh
#

@late timber ?

late timber
#

theres a method for changing the height range

solemn marsh
#

But how do I get the current one?

#

Also there are three different methodes for that

#
GTCEuServerEvents.oreVeins(e => {
    e.modifyAll((id,vein) => {
        if(vein.dimensions().includes("minecraft:overworld")) {
            
        }  
    })
})```I hope at least this would work?
late timber
#

nay

#

you can just do something like if (vein.layer() == GTWorldGenLayers.DEEPSLATE)

solemn marsh
#

And there is no deepslate in other dimensions?

late timber
#

correct

solemn marsh
#

Ok, so how the hell do I get the height hmmm

solemn marsh
#

Also, in the changelog on modrinth it says that overclocking past max voltage is now possible, does that mean that energy is 64 bits now and machines can produce those higher numbers?

late timber
#

its always been a long

solemn marsh
#

🤯

solemn marsh
solemn marsh
#

Ok @late timber , wait what

#

That is literally on the wiki like this

#
GTCEuStartupEvents.registry('gtceu:material', e => {
    e.create('andesite_alloy')
        .ingot()
        .components('1x andesite', '1x iron')
        .color(0x839689).iconSet(GTMaterialIconSet.DULL)
        .flags(GTMaterialFlags.GENERATE_PLATE, GTMaterialFlags.GENERATE_GEAR, GTMaterialFlags.GENERATE_SMALL_GEAR)
        .dust()
        .cableProperties(GTValues.V[GTValues.LV], 69, 0, true)
        .gem(2, 4000) 
        .element(GTElements.AC) 
        .ore(2, 3)
})```Also, wuld that even work?
#

Like creating multiple items at once?

#

Because of ids?

#

Also, I aint getting probejs completion for any of this

#

Also can I add higher energy tiers with kube?

#

Like over max?

#

I tried looking at the source, idfk how any of that works

worn cradle
#

which line is 294?

solemn marsh
#

The first line I sent

worn cradle
#

you sent 12 lines

solemn marsh
#

Yeah, starting with 294

#

Oh never mind

worn cradle
solemn marsh
#

I sent the other one

#
GTCEuStartupEvents.registry('gtceu:element', e => {
    global.elements.forEach(element => {
        e.create(element.name, element.protons, element.neutrons, -1, null, element.symbol, false)
    })
})
#

Now the first line is 294

worn cradle
#

do you have a link to their wiki

worn cradle
#

what what is elements?

solemn marsh
#

An array with elements I want to register

worn cradle
#

so im assuming the values are valid then?

#

i ahve no way of knowing

solemn marsh
#

Yeah, all values are valid

#

Also if they weren't, there would be a different error

worn cradle
#

do you have more than 1 entry?
if so, have you debugged to check if theres a specific entry that doesnt work, or is it happening at the first element

solemn marsh
#

I mean it fails on the line before even entering the foreach loop

worn cradle
#

oh hmmm

#

so if you have the registry be empty, will it error?

#
GTCEuStartupEvents.registry('gtceu:element', e => {})
solemn marsh
#

Yes

worn cradle
#

then it just sounds like a bug to me

solemn marsh
#

Maybe the wiki is just incorrect

worn cradle
solemn marsh
#

I also took that straight from the wiki

worn cradle
#

from what i can tell from their code, gtceu:element doesnt exist in their registry

solemn marsh
#

Well, what does exist?...

worn cradle
#

can you send me the startup log

solemn marsh
#

It just has that one error

worn cradle
#

i know

#

but there might be other info i can use...

#

you should know this

solemn marsh
worn cradle
solemn marsh
prime ivyBOT
#

Paste version of startup.log from @solemn marsh

worn cradle
#

how about your latest log

#

also brb

solemn marsh
prime ivyBOT
#

Paste version of latest.log from @solemn marsh

worn cradle
#

urgh theres no trace or anything

solemn marsh
#

Ok, Ill hope for screret to help me then

#

Thanks a lot though

worn cradle
#

ye idk, the quick glance i took at the classes make no sense to me

#

something doesnt add up the way i read it

solemn marsh
#

Bruh, I thought the same

#

Even though I don't know nore than basic java, so I guess that doesn't count

solemn marsh
#

@late timber Also, this is the only stuff I have in my server scripts, I get spammed with errors ```js
let nextId = 0

// GTCEuServerEvents.oreVeins(e => {
// e.modifyAll((id,vein) => {
// if (vein.layer() == GTWorldGenLayers.DEEPSLATE) {

// }
// })
// })
ServerEvents.recipes(e => {
e.recipes.gtceu.assembler(nextId)
.EUt(1000)
.inputItems(Item.of('gtceu:mv_fluid_drilling_rig'))
.outputItems(Item.of('gtceu:mv_bedrock_ore_miner'))
nextId++
e.recipes.gtceu.assembler(nextId)
.EUt(1000)
.inputItems(Item.of('gtceu:hv_fluid_drilling_rig'))
.outputItems(Item.of('gtceu:hv_bedrock_ore_miner'))
nextId++
e.recipes.gtceu.assembler(nextId)
.EUt(1000)
.inputItems(Item.of('gtceu:ev_fluid_drilling_rig'))
.outputItems(Item.of('gtceu:ev_bedrock_ore_miner'))
nextId++
})```
Pretty sure a lot of stuff is brken here tbh

prime ivyBOT
#

Paste version of server.log from @solemn marsh

late timber
#

whatever adds all these bees has invalid recipes

solemn marsh
#

Wait, productive bees?

#

Ok, Ill try removing that

#

Any idea about the registering of elements and materials?

prime ivyBOT
#

Paste version of latest.log from @solemn marsh

solemn marsh
prime ivyBOT
#

Paste version of crash-2024-08-03_14.31.49-client.txt from @solemn marsh

solemn marsh
#

(That was when creating a new world)

prime ivyBOT
#

Paste version of latest.log from @solemn marsh

solemn marsh
#

Yeah, I guess fuck 1.21, documentation is just wrong, random issues, nothing works

worn cradle
#

what the hell lol

solemn marsh
#

I just deactivated fucking productive bees

#

Nothing else

#

Like wtf

worn cradle
#

fpsreducer?

#

is that a mod

solemn marsh
#

Ye

#

That makes no sense, but lemme try

worn cradle
#

its in the stacktrace

solemn marsh
#

But why did it work with productive bees enabled

#

😕

worn cradle
#

i couldnt tell you, i havent seen this before

solemn marsh
#

Nope, crashes

worn cradle
#

whats it say now

solemn marsh
prime ivyBOT
#

Paste version of latest.log from @solemn marsh

worn cradle
#
Caused by: java.lang.NullPointerException: Cannot invoke "net.minecraft.resources.ResourceLocation.getNamespace()" because "this.id" is null
    at com.gregtechceu.gtceu.data.recipe.builder.GTRecipeBuilder.save:L759
    at com.gregtechceu.gtceu.integration.kjs.GTKubeJSPlugin.lambda$injectRuntimeRecipes$32:L414
    at java.util.concurrent.ConcurrentLinkedQueue.forEachFrom:L1037
    at java.util.concurrent.ConcurrentLinkedQueue.forEach:L1054
    at com.gregtechceu.gtceu.integration.kjs.GTKubeJSPlugin.injectRuntimeRecipes:L381
    at dev.latvian.mods.kubejs.recipe.RecipesKubeEvent.lambda$post$5:L341
    at java.util.ArrayList.forEach:L1596
    at dev.latvian.mods.kubejs.plugin.KubeJSPlugins.forEachPlugin:L115
    at dev.latvian.mods.kubejs.recipe.RecipesKubeEvent.post:L341
    at dev.latvian.mods.kubejs.server.ServerScriptManager.recipes:L244
    at net.minecraft.world.item.crafting.RecipeManager.handler$cap000$kubejs$customRecipesHead:L3536
    at TRANSFORMER/[email protected]/net.minecraft.world.item.crafting.RecipeManager.apply(RecipeManager.java) ~[client-1.21-20240613.152323-srg.jar%23333!/:?]
    at com.recipeessentials.recipecache.RecipeManager.apply:L245
    at com.recipeessentials.recipecache.RecipeManager.apply:L24
    at net.minecraft.server.packs.resources.SimplePreparableReloadListener.lambda$reload$1:L19
    at java.util.concurrent.CompletableFuture$UniAccept.tryFire:L718
    at java.util.concurrent.CompletableFuture$Completion.run:L482
    at net.minecraft.server.packs.resources.SimpleReloadInstance.lambda$new$3:L69
    at net.minecraft.util.thread.BlockableEventLoop.doRunTask:L148
    at net.minecraft.util.thread.ReentrantBlockableEventLoop.doRunTask:L23
    at net.minecraft.util.thread.BlockableEventLoop.pollTask:L122
    at net.minecraft.util.thread.BlockableEventLoop.managedBlock:L132
    at net.minecraft.client.Minecraft.managedBlock:L5516
    at net.minecraft.client.gui.screens.worldselection.CreateWorldScreen.openFresh:L139
    at net.minecraft.client.gui.screens.worldselection.SelectWorldScreen.lambda$init$2:L54
    at net.minecraft.client.gui.components.Button.onPress:L41
    at net.minecraft.client.gui.components.AbstractButton.onClick:L47
    at net.neoforged.neoforge.client.extensions.IAbstractWidgetExtension.onClick:L36
    at net.minecraft.client.gui.components.AbstractWidget.mouseClicked:L144
    at net.minecraft.client.gui.components.events.ContainerEventHandler.mouseClicked:L38
    at net.minecraft.client.MouseHandler.lambda$onPress$0:L98
    at net.minecraft.client.gui.screens.Screen.wrapScreenError:L449
    ... 32 more
#

recipe builder from gtceu

solemn marsh
#

FUCKING GT AAAAAAAAAAAAAAAAAAA

#

I just wanted three recipes 😭

worn cradle
#

:(

#

maybe try to just use custom recipes

solemn marsh
#

As in the json ones?

#

Like event.custom?

#

Idk if that even works for gt

#

@late timber Your mods kubejs integration is broken as hell

#

Sorry if Im anoying, if it just doesn't work, tell me, then Ill just stop trying and hope for an update at some point

worn cradle
solemn marsh
#

Idk tbh

worn cradle
late timber
worn cradle
#

then custom should work

late timber
#

which should be impossible

worn cradle
#

ohno

solemn marsh
solemn marsh
#

Should I string parse it?

#

Never seen that happen

#

Nice

late timber
#

just put sane strings like a normal person

solemn marsh
#

I plan on generating houndreds of recipes, so nope

#

I can put an "r" before it, if it makes gt happy

late timber
#

wtf

solemn marsh
late timber
#

at least do something that describes the recipe

solemn marsh
#

Why would I

#

Like, the id is not displayed anywhere

late timber
#

your recupes right there aren't even generated from an array or sucj

late timber
solemn marsh
#

But I plan on doing that

#

Yep, "r"+nextId also doesn't work

#

What exactly are the requirements

late timber
#

valid resourcelocation

solemn marsh
#

I mean in the wiki you used just "test"

late timber
#

if namespace is empty, it's inferred from the recipe type's namespace

solemn marsh
#

"modpack:r"+nextId aloso doesn't work

late timber
#

could be a different error

#

did you look at it?

solemn marsh
#

No error, just reload failed, keeping old data

#

I guess, its such a bad error, kube can't handle it

late timber
solemn marsh
prime ivyBOT
#

Paste version of latest.log from @solemn marsh

late timber
#

oh, great. the log doesn't say the actual error.

solemn marsh
#

Nice

#

What should I do?

#

This is the crash I get when trying to make a new world, maybe that helps?

prime ivyBOT
#

Paste version of latest.log from @solemn marsh

solemn marsh
#

Or do you just want the modpack to test around yourself?

prime ivyBOT
#

Paste version of 1.21_extended_build_height_cf.zip from @solemn marsh

solemn marsh
#

@late timber, Ill just go back to 1.20.1, works way better and is more stable

solemn marsh
#

Also, sometimes quick puttin the items into the crafting table with emi just doesn't work

#

I can click it, looks like it does somethin, but no items end up in the grid

#

Using jei+emi

#

Also, durability bars on gt tools are always rendered empty in the hotbar, otherwise they are fine

#

Normal tools work fine