Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Throw error on mods without `fabric.mod.json`

See original GitHub issue

I accidentally put my fabric.mod.json in the wrong folder, causing it to not appear in the jar. Instead of throwing an error, loom caused cryptic error messages in a different mod in the form error: cannot access class_${intermediate_id}: class file for net.minecraft.class_${intermediate_id} not found.

  • modImplementation should throw an error when receiving a .jar without fabric.mod.json.
  • loom should throw an error when attempting to build a .jar without a fabric.mod.json.

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

zml2008commented, Jan 16, 2021

no - the mod* configurations aim to mirror standard gradle configurations, and library is not a standard gradle configuration

yynycommented, Jan 16, 2021

@zml2008 There could be a modLibrary "..." then for jars that don’t have a fabric.mod.json. I think there will definitely be people that need jars without fabric.mod.json, but that should be opt-in, not opt-out.

Read more comments on GitHub >

github_iconTop Results From Across the Web

documentation:fabric_mod_json [Fabric Wiki]
json file is a mod metadata file used by Fabric Loader to load mods. In order to be loaded, a mod must have...
Read more >
Incompatible mod set! - how to fix it? #1878 - GitHub
ParseMetadataException: Error reading fabric.mod.json file for mod ... i have been trying to play mc with mods using fabric but every time ...
Read more >
Fabric error "A Mod Crashed on Startup" : r/fabricmc - Reddit
A mod crashed on startup! net.fabricmc.loader.impl.FormattedException: java.lang.RuntimeException: Could not execute entrypoint stage 'preLaunch ...
Read more >
I NEED HELP - Mapping and Modding: Java Edition
A detailed walkthrough of the error, its code path and all known details ... Fabric Mods: ... So now my fabric.mod.json fil looks...
Read more >
JSON File not Found - Modder Support - Minecraft Forge Forums
I'm trying to Render my Item but my code throws an exception. ... Hello ProPane, I'm new to minecraft modding and I would...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Post

No results found

github_iconTop Related Hashnode Post

No results found