How to add custom materials? #398
Replies: 4 comments 22 replies
-
I have also tried what is currently in the wiki, placing the material file in |
Beta Was this translation helpful? Give feedback.
-
Hi! And thanks for trying out the new data system! The docs on the wiki are outdated and should be removed not to confuse anyone. You did everything correctly it seems, but the only thing that is missing is the fact the the datapack has to be packaged as a mod, that is, inside a jar. The reason for this is that vanilla datapacks are loaded after the item registry is frozen. This means that datapacks cannot add resources that would result in new items being created. Therefore datapacks can only update the stats of currently registered resources. It might be possible to look at if kubejs could be used as a lightweight entrypoint for adding new resources, but I haven't looked at it enough to know for sure. Are you familiar with how to create basic mods, or would you like me to create an example for how it could be done? |
Beta Was this translation helpful? Give feedback.
-
Here's a very simple example repo for adding custom resources: https://github.com/SigmundGranaas/forgero-example-datapack |
Beta Was this translation helpful? Give feedback.
-
Custom materials have been added, thanks a lot! I've been trying to use the autogenerating palette feature via "palette": {
"name": "flint",
"include": [
"minecraft:textures/item/flint.png"
],
"exclude": []
} but it doesn't appear to work, I've also tried removing |
Beta Was this translation helpful? Give feedback.
-
I'm making a modpack and trying to add new materials. I'm using KubeJS's data folder to register a new forgero pack with the materials but it never gets registered.
I've added the following file in
data/forgero/packs/halstein/materials/flint.json
I've also added
package.json
anddefault.json
indata/forgero/packs/halstein
What am I missing?
Beta Was this translation helpful? Give feedback.
All reactions