Jump to content

Recommended Posts

Posted (edited)

Hello,

I recently finished developing my first Minecraft mod for version 1.20.1 but I'm having an issue with running the mod outside of my development environment. I'm able to run it fine using ./gradlew build :runclient but when I try to take the built jar file and run as someone normally would in the mods folder of Minecraft it crashes with an InvalidAccessorException saying "No candidates were found matching ...". From what I can tell it is an issue with the obfuscation of the attributes/methods which is where I'm kind of stuck. I can't seem to find any thorough documentation that has helped me and the various Github repositories I've looked at don't appear to be doing anything different from what I can tell. I'm new to Minecraft mod development so it's probably something fairly small and simple that I'm missing but I've been ramming my head at this for a few days now and can't seem to figure it out. If anyone can take a look and give me some suggestions I'd really appreciate it. Here is the error, my build.gradle, and gradle.properties but let me know if there is anything else you need. Thanks! Also sorry for not making these drop downs, I don't see a way how to do it if it's possible.

EDIT:

After rephrasing how I was searching for my issue I found someone who recently had the same one as me. I tried all the solutions provided in their post though and none of them seemed to work for me. Basically, my mod works fine in the development environment but when I try to use it as you would normally, it crashes because none of the mixins are mapping properly. For some reason it's saying it cant find my mixins.*.refmap.json in this line of the log:

[mixin/]: Reference map 'mixins.taczweaponblueprints.refmap.json' for mixins.taczweaponblueprints.json could not be read. If this is a development environment you can ignore this message

Here is the link to the similar post: 

 

 

Error Log:

https://pastebin.com/KcrFCFjY

Build.gradle:

https://pastebin.com/RMMK5DwW

Gradle.properties:

https://pastebin.com/FLEDFq56

Edited by GamerGaming_
Posted

The word wrapping makes that log near impossible to read. Please read the faq for how/where to post logs.

How are you building your mod, and where are you copying the jar file from to put it in your mods folder?

Posted (edited)
2 hours ago, Ugdhar said:

The word wrapping makes that log near impossible to read. Please read the faq for how/where to post logs.

How are you building your mod, and where are you copying the jar file from to put it in your mods folder?

I'm building it using ./gradlew build in VSCode and I'm taking the jar from the build/libs directory. 

I'll fix the formatting after the approval, I didn't realize I would have to wait again. Sorry about that.

Edited by GamerGaming_

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.