Posted March 22, 20205 yr Hi guys! I want to generate my json files within my code because it would take too long to do it all by hand. Before noticing that forge provides some useful classes / interfaces, I wrote some code myself which I thought would work... but it doesn't. I don't really know why, and I am super obwhelmed by forge's classes / interfaces for this purpose, so if someone would share some insight on ItemModelProvider and which methods are important, I'd be delighted! Do I need a modelBuilder, modelLoader and modelProvider? What about the DataGenerator? My code The main mod class: https://github.com/celinemargaux/Plantastic/blob/crop-experiments/src/main/java/com/celinemargaux/plantastic/Plantastic.java the init class with nested json: https://github.com/celinemargaux/Plantastic/blob/crop-experiments/src/main/java/com/celinemargaux/plantastic/init/Init.java my assets: https://github.com/celinemargaux/Plantastic/tree/crop-experiments/src/main/resources/assets/plantastic Thanks in advance! Celine
March 23, 20205 yr Hi I guess you're talking about json models for blocks or items? If this is just a once-off thing, I would personally use Excel (with formulas to copy the right words into the right places in the file) and then export as text. I would also get my mod working perfectly with just one item/block first. And then when I had ironed out all the bugs, I would add all the remaining items/blocks. -TGG
March 23, 20205 yr Author Sorry for the late response! Yes, it's for generating the object_name.json files! Okay, I could do that, but in the long run I'd like to understand that as well. I will definitely work on the core code of my mod before making more things, you're right. Thanks for your answer, Celi
March 24, 20205 yr I looked at Lex's mod CobbleForDays to get mine working. Tropicraft's 1.14 branch was useful to start with as well (I used that until I found Lex's).
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.