Ore Growth

Ore Growth

249k Downloads

[Question] Datapack example

AnimaZVendit opened this issue ยท 4 comments

commented

Question
I'm trying to make a datapack to make glowstone grow clusters, this is the first time I've ever tried making a data pack and I'm a little lost. I have VSCode installed, which I'm relatively new to, I did watch a tutorial and got up to the point of actually writing the code. I used the example from the modpage, the pumpkin one, but I'm not sure how to edit it, or if it'll even work. Could someone help me? I'm on version 1.21.4 on NeoForge if that matters.

commented

Okaay.. again I'm not familiar with datapacks but I'll try to find a tutorial on adding a vanilla recipe. Does that mean that the example on the modpage doesn't work?

commented

The format for vanilla recipes depends on the Minecraft version you are using and is unrelated to Ore Growth. Adding a recipe is as simple as adding a json file in data/<your namespace>/recipes for Minecraft 1.20.6 and below or data/<your namespace>/recipes for Minecraft 1.21 and above in your datapack.
Any recipe json consists of a recipe type and content corresponding to that recipe type.

Does that mean that the example on the modpage doesn't work?

The example on the mod page just shows the format for oregrowth:ore_growth type recipes.

commented

It is the same as adding a vanilla recipe with a datapack.

commented

I'm, pretty well stuck on this still, but thanks for trying to help me.