Jump to content

Compiled jar gives an error when loading minecraft, even tho it runs perfectly in Intellij.


aNoob4Gamer

Recommended Posts

7 minutes ago, aNoob4Gamer said:

When  I run "runClient" in Intellij, minecraft doesn't give an error, but when I compile a jar for the mod and load it with forge it gives me this error:

"modid encountered an error during the load_registries event phase"

Here is the log file, hope someone can help.

Looks like you didn't build it using the gradle build task.

VANILLA MINECRAFT CLASSES ARE THE BEST RESOURCES WHEN MODDING

I will be posting 1.15.2 modding tutorials on this channel. If you want to be notified of it do the normal YouTube stuff like subscribing, ect.

Forge and vanilla BlockState generator.

Link to comment
Share on other sites

Just now, aNoob4Gamer said:

Do I have to use the "build" task under that category?

Yes you either need to run the "gradlew build" task in the terminal or via your IDE to build your mod. Because Minecraft is obfuscated and therefore your code too must be obfuscated to match the Minecraft obfuscation.

VANILLA MINECRAFT CLASSES ARE THE BEST RESOURCES WHEN MODDING

I will be posting 1.15.2 modding tutorials on this channel. If you want to be notified of it do the normal YouTube stuff like subscribing, ect.

Forge and vanilla BlockState generator.

Link to comment
Share on other sites

8 minutes ago, Animefan8888 said:

Yes you either need to run the "gradlew build" task in the terminal or via your IDE to build your mod. Because Minecraft is obfuscated and therefore your code too must be obfuscated to match the Minecraft obfuscation.

Thank you that fixed the error issue, tho for some reason my textures now don't exist now. 

Link to comment
Share on other sites

Just now, aNoob4Gamer said:

Thank you that fixed the error issue, tho for some reason my textures now don't exist now. 

Post the debug.log file found in .minecraft/logs.

VANILLA MINECRAFT CLASSES ARE THE BEST RESOURCES WHEN MODDING

I will be posting 1.15.2 modding tutorials on this channel. If you want to be notified of it do the normal YouTube stuff like subscribing, ect.

Forge and vanilla BlockState generator.

Link to comment
Share on other sites

Just now, aNoob4Gamer said:

Do you mean the latest.log because no debug log is created

No I meant debug.log, but normally latest.log works too.

VANILLA MINECRAFT CLASSES ARE THE BEST RESOURCES WHEN MODDING

I will be posting 1.15.2 modding tutorials on this channel. If you want to be notified of it do the normal YouTube stuff like subscribing, ect.

Forge and vanilla BlockState generator.

Link to comment
Share on other sites

Just now, aNoob4Gamer said:

Does this file exist within your jar?

Quote

defaultaddons:textures/items/ruby.png

Also its convention to do textures/item/texture.png nowadays.

VANILLA MINECRAFT CLASSES ARE THE BEST RESOURCES WHEN MODDING

I will be posting 1.15.2 modding tutorials on this channel. If you want to be notified of it do the normal YouTube stuff like subscribing, ect.

Forge and vanilla BlockState generator.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Announcements



×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.