Okay, took a look. This might be helpful. This also might not be helpful. I'm not exactly sure what the issue is, but then again, with strange and unexpected problems, I'm not sure if anyone can be. Regardless, I will still do my best to help ya' out. First off, I don't think that the "caused by" error segment is really helpful for the context of the problem. Looking at the root error, the "Critical injection failure: " states that the Mixin injection function (that I'm going to hopefully assume is your function), addCustomEndBiomeMusic, is unable to find a method in the minecraft class with the specific name of "m_91107_", which takes zero arguments and returns an object of type net.minecraft.sounds.Music, which all matches with what should work in an srg environment. However, there are two issues that I have here. My first issue I have is that I'm not exactly sure you're in an srg environment. I noticed that when your environment loads the forge "mod", it loads a file with the name "forge-1.20.1-47.4.0_mapped_parchment_2023.06.26-1.20.1.jar". Now, this could mean two things. The first could be that you are in a MAPPED environment, specifically parchment, so when Mixin tries to find the method "m_91107_", it ends up failing because the loaded forge jar doesn't have srg mapped functions. If this case ends up being true, then the fix would be to simply just rename the method from "m_91107_" to "getSituationalMusic". If you are not in direct control over the addCustomEndBiomeMusic method, then you could also try remapping to an srg environment. If the parchment mappings are interfering with the getSituationalMusic method, which I'm not sure why they would be doing that, then you might want to try using the parchment mappings in reference to the getSituationalMusic method, if that even means anything at all. Now, keep in mind that I have literally never used parchment, and I don't even know wth it really is other than what the website described as a mod that "provides the Librarian gradle plugin to allow the use of Parchment mappings in a Minecraft Forge development environment." I don't know what this means, or how exactly this is accomplished, so it's VERY possible that I could be misinterpreting this situation. Assuming that I am misinterpreting the situation or that the suggested fixes above do not work, then my next issue would have to be the fact that Mixin references a file named "blueprint.refmap.json" for its mappings. I also noticed a mod being loaded named "blueprint". This gives me the impression that the blueprint mod provides a mapping file for Mixins to use to make it cross compatible between normal minecraft forge mappings and parchment mappings. If anything else, then maybe you provided the blueprint.refmap.json file. Idk, I'm literally just guessing as to what the problem is at this point. But assuming that this is true, then it might be pertinent to know that after carefully looking through your log file, it states the following: "Found 2 mods for first modid blueprint, selecting most recent based on version data". After which, it then states, "Selected file blueprint-382216-6408581_mapped_parchment_2023.06.26-1.20.1.jar". Now, after looking even more carefully, it seems as though you might have put blueprint in your gradle dependencies when I'm not sure if it should really need to be put in there if you have a dependency folder, causing the exact same mod to load twice. Now, the problem shouldn't be that the mod is loading twice (although you might want to look into that), but the problem could be that you might have an incorrect version of blueprint. If this is the case, then, well, you should know what to do (get the right version). There is one more thing worth considering for the last suggested issue. If blueprint has nothing to do with parchment, or is not equipped to handle parchment related mappings, or if there is some mechanic of parchment and how it crosses its mappings that the blueprint refmap cannot handle, then you might want to try just supplying your own refmap specific to the mappings that should work with your environment to your Mixin. Don't ask me how to do this, because I have absolutely no idea. Now, this isn't another suggested fix for you, but I do believe it would significantly help you to understand the issues at hand here. If at all possible, get your hands on the blueprint.refmap.json file and take a good look at it. Make absolutely sure that the refmap matches the loaded version of the forge jar that you have, and if you aren't using forge mappings, then first off wth are you doing???, but secondly, just make sure that the blueprint refmap matches the environment mappings that you have. Use a java decompiler if needed. Whatever the case may be for the issue at hand, I am not well equipped to deal with it. Ultimately, this issue seems more to be an environment issue rather than a general issue that any well rounded person could solve. Specifically, your issue depends on factors that you particularly control in your environment, which means that solving it requires mastery of these factors. Although you provided more information than most people would, and although you did this as concisely as humanly possible, in the end it doesn't really matter, because you can't fully describe every little detail without ending up like me, and I'm not even capable of coming close to explaining everything I do. These little factors, like implementing Mixin, adding parchment mappings, using 1.20.1 forge, using Eclipse Adoptium, and many more, are just going to be further testament to the fact that, and I know you probably don't want to hear this, the person who is most likely to solve your problem is going to be you, because you are the only person that understands your environment better than anyone else. Now don't get me wrong, I'm most DEFFIDENTLY not saying that you shouldn't post to forums for help with these more complicated problems, because you should; although you are unlikely to get a concise and precisely accurate answer as to the solution for the problem at hand, there is a chance that posting can get somewhere, or even provide the chance for others to possibly give another perspective for your issue that will help you end up at the best solution possible. And when you solve your problem, you can come back to the forums and tell everybody, that way when others come upon your situation, as strange as the situation may be, they can know what to do. With that said, please let me know if anything here gets you anywhere, even if it isn't helpful. Also, sry for constantly making massive text walls.
By
Jackson Perr · 3 minutes ago 3 min
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.