Throw error on mods without `fabric.mod.json`
See original GitHub issueI 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
withoutfabric.mod.json
.loom
should throw an error when attempting to build a.jar
without afabric.mod.json
.
Issue Analytics
- State:
- Created 3 years ago
- Comments:5 (3 by maintainers)
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
no - the mod* configurations aim to mirror standard gradle configurations, and library is not a standard gradle configuration
@zml2008 There could be a
modLibrary "..."
then for jars that don’t have afabric.mod.json
. I think there will definitely be people that need jars withoutfabric.mod.json
, but that should be opt-in, not opt-out.