-
Recently Browsing
- No registered users viewing this page.
-
Posts
-
Hi, I am trying to use a shadowed dependency in my mod for version 1.8.9, but I just can't get it fully working. I think the shadowing is working (at least a little) because I can use the dependency in my mod without getting a classdefnotfound, but if I actually try to use the dependency it just crashes with this error: The error: I have no idea if this is me using the dependency wrong, me shadowing the dependency wrong, or the dependency just being broken. Can someone maybe check if something obvious is wrong? Thanks in advance! I have provided everything I could think of, if something more is needed, please tell me. Dependency I am trying to shadow into my jar: https://github.com/NotEnoughUpdates/MoulConfig I have downloaded this dependency as "/libs/legacy-3.0.0-beta.13.jar" Example of how the dependency should work (their own example): https://github.com/NotEnoughUpdates/MoulConfig/blob/master/legacy/src/main/java/io/github/notenoughupdates/moulconfig/test/MoulConfigTest.java Example of how the dependency should work (another mod written in kotlin (see line 91)): https://github.com/hannibal002/SkyHanni/blob/beta/src/main/java/at/hannibal2/skyhanni/config/ConfigManager.kt My ConfigManager.java (Where it breaks (see comment on line 16)): My FMLInitializationEvent: My build.gradle file (gradle 4.5): (I run the tasks: "build shadowJar copyJarToBin" to build my mod)
-
By Spyro64bit · Posted
Hi, My mod has player capabilities tracking mana value, and the values will not save after death. (To be clear it does save when I exit and reenter the world) I looked at the documentation for capabilities but it says very little about saving after death, and what it does say I've already done. I did follow a tutorial from 1.19 so I'm guessing something changed between versions and I don't know how to fix it. ////////CODE/////////////// @SubscribeEvent public static void onPlayerCloned(PlayerEvent.Clone event){ if(event.isWasDeath()) { event.getOriginal().getCapability(PlayerManaAmountProvider.PLAYER_MANAAMOUNT).ifPresent(oldStore -> { event.getOriginal().getCapability(PlayerManaAmountProvider.PLAYER_MANAAMOUNT).ifPresent(newStore -> { newStore.copyFrom(oldStore); }); }); } } -
By LuciDASeal · Posted
Please help and yes i am running 640 something mods with shaderpack no lag 💅im very proud https://pastebin.com/MZfHUqHp
-
-
Topics
-
Who's Online (See full list)
Recommended Posts
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.