#KubeJS Client not loading, unsure why

27 messages · Page 1 of 1 (latest)

wary mirage
#

its in the correct file location ( .minecraft > kubejs > client_scripts > script.js )
heres the log: https://paste.ee/p/lhBLF
possible errors:
[07:32:08] [modloading-worker-0/ERROR] [KubeJS Client/]: Error loading KubeJS script: client_scripts:script.js: java.lang.ExceptionInInitializerError

[07:38:56] [Render thread/ERROR] [KubeJS Client/]: Error loading KubeJS script: client_scripts:script.js: java.lang.NoClassDefFoundError: Could not initialize class com.simibubi.create.compat.jei.category.MysteriousItemConversionCategory

late coralBOT
#

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

cold lake
#

send the script

wary mirage
knotty pivotBOT
#

Paste version of script.js from @ripe forge

wary mirage
#

i changed nothing, it just stopped loading

cold lake
#

silly question, but is jei installed?

wary mirage
#

yep

cold lake
#

ah
Caused by: java.lang.NullPointerException: Registry entry not present: create:empty_blaze_burner

#

i believe the script is loading waay too early

wary mirage
#

hmmm how would i remedy this?

cold lake
#

uhh

#

theres an event and a check you can use

#

lemme try find it

knotty pivotBOT
#

[Quote ➤](#1099168566730825738 message) ```js
StartupEvents.postInit(event => {
if (!Platform.isClientEnvironment()) { return }
const $BiomeColors = Java.loadClass('net.minecraft.client.renderer.BiomeColors')
const $FoliageColors = Java.loadClass('net.minecraft.world.level.FoliageColor')

let blockColor = (state, tintGetter, pos, tintIndex) => tintGetter != null && pos != null ? $BiomeColors.getAverageFoliageColor(tintGetter, pos) : $FoliageColors.getDefaultColor()

Client.getBlockColors().register(blockColor, vinetip.get())
})

cold lake
#

then just need to translate that to 1.18

#

??kjswiki

knotty pivotBOT
wary mirage
cold lake
#

onEvent('postinit', event => {

#

actually i dont think you need the client side chcek

#

so just the post init event should do

wary mirage
#

dumb it down for me a bit

cold lake
#

put the code inside the postinit event

#

start the game