Create a mod with embedded data pack? #2626
-
Hello everyone. Tell me please how can I add a datapack to my client mod for single player game so that the datapack is automatically added to the world upon creation. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Your mod jar is automatically a datapack. e.g. this is the fabric api (which is itself just a mod) adding tags |
Beta Was this translation helpful? Give feedback.
Your mod jar is automatically a datapack.
Fabric will add your mod's data subfolder to the "Fabric Mods" datapack.
e.g. this is the fabric api (which is itself just a mod) adding tags
https://github.com/FabricMC/fabric/tree/1.19.2/fabric-convention-tags-v1/src/generated/resources/data
They are in src/generated instead of src/main because they are created programmatically using datagen.