Posted May 14, 20205 yr Hi there, So I've been tinkering with Data Generators today and have managed to get my recipes to generate into src/generated/resources like I wanted, but the issue is the recipes don't work unless I move them into src/main/resources. How do I make it so that my generated folder is recognised by forge? Thanks for your help!
May 14, 20205 yr I think you can change that in your build.gradle (haven't tried it yet myself) to make it generate them right in the src/main/resources Quote args '--mod', 'dimtest', '--all', '--output', file('src/generated/resources/') I would guess changing that src/generated/resources to src/main/resources would do it. However, I don't know if it clears out anything before it writes them, so make sure you have a backup or something just in case lol
May 14, 20205 yr Author 20 minutes ago, squidlex said: Hi there, So I've been tinkering with Data Generators today and have managed to get my recipes to generate into src/generated/resources like I wanted, but the issue is the recipes don't work unless I move them into src/main/resources. How do I make it so that my generated folder is recognised by forge? Thanks for your help! I got it to work! I needed to add this: sourceSets { main { resources { srcDirs += "src/generated/resources" } } } to my build.gradle. Honestly don't know how I missed that.
May 14, 20205 yr Author 3 minutes ago, Ugdhar said: I think you can change that in your build.gradle (haven't tried it yet myself) to make it generate them right in the src/main/resources I would guess changing that src/generated/resources to src/main/resources would do it. However, I don't know if it clears out anything before it writes them, so make sure you have a backup or something just in case lol I tried that earlier and deleted everything by accident, I now make constant backups haha. Thanks for the suggestion though, it works if you use '--existing' but I wanted my things to be seperate Ugdhar's method may be cleaner for some users so it's worth noting if you're reading this in the future! Edited May 14, 20205 yr by squidlex
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.