Jump to content

Recommended Posts

Posted (edited)
On 11/30/2020 at 12:17 PM, mftg said:

what is generated[main] in 1.16.4?

I suppose you're talking about the generated folder that's located on the src for your mod.

it is like the resources folder, it holds json files for your block and item models, loot tables, recipes and so on.

The thing is, that instead of writing the json by hand, you can use a DataProvider, then you can run the Gradle task runData to automatically generate the json files for you.

 

if you wanna know more about how to use Data Generators:

the forgedocs has a page about it: https://mcforge.readthedocs.io/en/1.16.x/datagen/intro/

this youtube video by SilentChaos512 is a very good introduction also: https://www.youtube.com/watch?v=YD_ajlZ5TdY

and this repository really has alot of really useful examples: https://collaborating.tuhh.de/cev7691/minecraftforge/blob/ebd463e92f86d78fdc3ab1192360fd74850afeba/src/test/java/net/minecraftforge/debug/DataGeneratorTest.java

 

hope I helped!

Edited by kiou.23
Posted
On 12/2/2020 at 3:49 PM, kiou.23 said:

I suppose you're talking about the generated folder that's located on the src for your mod.

it is like the resources folder, it holds json files for your block and item models, loot tables, recipes and so on.

The thing is, that instead of writing the json by hand, you can use a DataProvider, then you can run the Gradle task runData to automatically generate the json files for you.

 

if you wanna know more about how to use Data Generators:

the forgedocs has a page about it: https://mcforge.readthedocs.io/en/1.16.x/datagen/intro/

this youtube video by SilentChaos512 is a very good introduction also: https://www.youtube.com/watch?v=YD_ajlZ5TdY

and this repository really has alot of really useful examples: https://collaborating.tuhh.de/cev7691/minecraftforge/blob/ebd463e92f86d78fdc3ab1192360fd74850afeba/src/test/java/net/minecraftforge/debug/DataGeneratorTest.java

 

hope I helped!

Thank you so much! I will try to register like this and see if the mod recognizes my .jsons.

  • Like 1

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.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Announcements



×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.