Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

When a new coil is defined with kjs, the server cannot be started #1005

Closed
2 tasks done
MOYINGCrystal opened this issue Mar 24, 2024 · 2 comments · Fixed by #1006
Closed
2 tasks done

When a new coil is defined with kjs, the server cannot be started #1005

MOYINGCrystal opened this issue Mar 24, 2024 · 2 comments · Fixed by #1006
Labels
type: bug Something isn't working

Comments

@MOYINGCrystal
Copy link
Contributor

Checked for existing issues

  • I have checked for existing issues, and have found none.

Tested latest version

  • I have checked that this occurs on the latest version.

GregTech CEu Version

v1.1.3b

Recipe Viewer Installed

No Recipe Viewer

Environment

Dedicated Server

Cross-Mod Interaction

Yes

Other Installed Mods

architectury-9.2.14-forge
rhino-forge-2001.2.2-build.18
kubejs-forge-2001.6.4-build.138

Expected Behavior

just work

Actual Behavior

The server cannot be started. logs\kubejs\startup.log contains:
Error in 'StartupEvents.registry': net/minecraft/client/renderer/texture/MissingTextureAtlasSprite
java.lang.NoClassDefFoundError: net/minecraft/client/renderer/texture/MissingTextureAtlasSprite

Maybe shouldn't import the contents of the net.minecraft.client package into CoilBlockBuilder?

Steps to Reproduce

  1. Write something like this in startup_scripts:
StartupEvents.registry("block", event => {
    const coils = [
        ["stone", "12600", "16", "8"]
    ]
    coils.forEach((coil) => {
        event.create(coil[0] + "_coil_block", "gtceu:coil")
            .texture("kubejs:block/" + coil[0] + "_coil_block")
            .temperature(coil[1])
            .energyDiscount(16)
            .level(coil[2])
            .tier(coil[3])
            .coilMaterial(GTMaterials.get(coil[0]))
            .hardness(5)
            .requiresTool(true)
            .soundType("stone")
            .noValidSpawns(true)
    })
})
  1. start server

Additional Information

No response

@MOYINGCrystal MOYINGCrystal added the type: bug Something isn't working label Mar 24, 2024
@screret
Copy link
Member

screret commented Mar 24, 2024

Pls attach the log file

@MOYINGCrystal
Copy link
Contributor Author

latest.log
startup.log

@mikerooni mikerooni linked a pull request Mar 24, 2024 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants