Skip to content

Create a mod with embedded data pack? #2626

Discussion options

You must be logged in to vote

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.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@diskree
Comment options

Answer selected by diskree
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants