Jump to content

How do i make minecraft use my modified version of a class instead of the original one for existing stuff?


Recommended Posts

Posted (edited)

i´m trying to tell minecraft to use my modyfied candle block class for the existing candle-block.

This post https://stackoverflow.com/questions/29523975/change-final-variable-defined-in-another-java-file told, that it should be possible to override ecisting classes from minecraft by recreating the original package-path from the minecraft referenced library into the src/java folder of the mod and put the changed class with original name in there.

But now i get an error:

java.lang.module.ResolutionException: Modules candlepositionsmod and minecraft export package net.minecraft.world.level.block to module forge at java.base/java.lang.module.Resolver.resolveFail(Resolver.java:901) at java.base/java.lang.module.Resolver.failTwoSuppliers(Resolver.java:815) at java.base/java.lang.module.Resolver.checkExportSuppliers(Resolver.java:736)

How to fix?

Edited by Drachenbauer
Link to comment
Share on other sites

  • Drachenbauer changed the title to How do i make minecraft use my modified version of a class instead of the original one for existing stuff?

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.



×
×
  • Create New...

Important Information

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