#How to generate data depends on exist datapack/mod

16 messages · Page 1 of 1 (latest)

plush helm
#

I'm gonna to generate data depends on another datapack/mod's json. How can I do that?
Run the data generation seems isn't loading the datapacks.

lapis ruin
#

datapacks are loaded on world load, while in game

#

datagen runs at dev time, not in game

plush helm
lapis ruin
#

what exactly are you trynig to do? why do you need those files?

plush helm
lapis ruin
#

load the json using FabricLoader and the ModContainer for that mod

#

then deserialize it / parse it

#

I'm not that sure that your "override" will works since mod loading order is undefined

plush helm
plush helm
lapis ruin
plush helm
plush helm
#

But the registriesFuture provided by fabric to data generator is built by fabric that only contains MC's registries instead of the Minecraft one that loaded packs.

#

Maybe I should try to make the built registries loading packs instead of let the server starting. But it's complex. 'll use the MC's registries directly.