SandboxPowered / SandboxDesign

0 stars 0 forks source link

Data Generators #5

Open TheCodedOne opened 3 years ago

TheCodedOne commented 3 years ago

With a lot of resources being JSON data, it would be helpful to allow modders to provide most of the data in-code which automatically generates the respective JSON for them.

The API should contain:

Bluexin commented 3 years ago

These should be aimed at bulk creation rather than fine customization via code then.

Bluexin commented 3 years ago

There's different options possible :

What options would be acceptable ?

Bluexin commented 3 years ago

One data generator that could be useful would be for translating vanilla recipes in our own to use the more advanced resource features.

TheCodedOne commented 3 years ago

my thought is that they always generate to a “generated” directory & used a gradle plugin, so they couldn’t be used at runtime.

We also shouldn't need to overwrite vanilla recipes in this circumstance as the way the resource system works is it only allows 1 to be registered, vanilla would always be there & as such modded iron ingot couldn't exist, so no need to translate.

Bluexin commented 3 years ago

We also shouldn't need to overwrite vanilla recipes in this circumstance as the way the resource system works is it only allows 1 to be registered, vanilla would always be there & as such modded iron ingot couldn't exist, so no need to translate.

I was thinking more for the work of porting mods. You don't want to rewrite your 23654 json recipes from using mc tags to the resources system. Is there some doc on the resource system ? Could help to know how all of this should be done

TheCodedOne commented 3 years ago

The resource system is still in dev, no docs have been made.

Bluexin commented 3 years ago

The resource system is still in dev, no docs have been made.

Btw, a design proposal can serve as base for writing docs :wesmart: