I used FabricMC Yarn to get the source code. I changed the game code and now I need to compile it all so that I can run the game, but I only have the src folder. I need build.gradle.
Are you actually looking to build a Fabric launcher (client, which for a launcher you just need it to import Fabric loader versions and has no need for Yarn) or are you just wanting to make a Fabric mod. I'd say look to Fabric modding youtube tutorials. https://www.youtube.com/playlist?list=PLbOPi5L7V78LUzaRqm5KJ0GQFr1XGvc3d Just get the example mod from those tutorials in the desccription, do the build gradlew with an IDE (so Eclipse, vscode or IntelliJ) and your good to go.
Either way unless you actually need to make changes to Yarn (which would be those that work on Yarn) don't bother altering it as you don't need to for mods, launchers or other things. Yarn is the important side of Fabric that makes things possible for developers (not in the same way as Fabric API which mod developers hook into but it's more the background behind the scenes stuff like Fabric Loader and other framework related) but gets expanded upon to allow more features, have fixes and so on.
I used FabricMC Yarn to get the source code. I changed the game code and now I need to compile it all so that I can run the game, but I only have the src folder. I need build.gradle.
How do I compile this?
Are you actually looking to build a Fabric launcher (client, which for a launcher you just need it to import Fabric loader versions and has no need for Yarn) or are you just wanting to make a Fabric mod. I'd say look to Fabric modding youtube tutorials. https://www.youtube.com/playlist?list=PLbOPi5L7V78LUzaRqm5KJ0GQFr1XGvc3d Just get the example mod from those tutorials in the desccription, do the build gradlew with an IDE (so Eclipse, vscode or IntelliJ) and your good to go.
Either way unless you actually need to make changes to Yarn (which would be those that work on Yarn) don't bother altering it as you don't need to for mods, launchers or other things. Yarn is the important side of Fabric that makes things possible for developers (not in the same way as Fabric API which mod developers hook into but it's more the background behind the scenes stuff like Fabric Loader and other framework related) but gets expanded upon to allow more features, have fixes and so on.
If you need to for other purposes just ask in the Fabric Discord what to do https://discord.com/invite/v6v4pMv
Niche Community Content Finder, Youtuber, Modpack/Map Maker, Duck
Forum Thread Maintainer for APortingCore, Liteloader Download HUB, Asphodel Meadows, Fabric Project, Legacy Fabric/Cursed Fabric, Power API, Rift/Fabric/Forge 1.13 to 1.17.
Wikis I Maintain: https://modwiki.miraheze.org/wiki/User:SuntannedDuck2