FabricMC / fabric-loom

Gradle build system plugin used to automate the setup of a minecraft mod development environment.
MIT License
226 stars 194 forks source link

Add ability to change runtime minecraft version and compile minecraft version #1004

Closed Jab125 closed 7 months ago

Jab125 commented 7 months ago

For example, it would be useful to use 1.20.4 during runtime, whilst compiling the mod for 1.20.1 (if a mod doesn't touch modified features)

Linguardium commented 7 months ago

if the mod doesnt touch any modified thing, then it will work fine. compiling against identical (including dependent) code will produce the same executable

"runtime minecraft version" is controlled by fabric.mod.json if your runtime minecraft version does not match the compilation mc version and references differences in MC, then it will crash, though

modmuss50 commented 7 months ago

You can easily do this with subprojects. Doing it within one project isnt really feasible both with how Gradle works, and it would also require a major refactor to loom.