MOD developer may implement net.fabricmc.fabric.api.datagen.v1.DataGeneratorEntrypoint to generate datapack from code. This is useful when one prefer code than JSONs, and is actually convertible by "Data Generation API".
We can enable it from the build.gradle. However, one should add implementation FQCN in fabric.mod.json to refer the entrypoints in entrypoints.fabric-datagen[*].
One can notice easily by issued warning from ./gradlew runDatagen:
[04:54:40] [main/WARN] (FabricDataGenHelper) No data generator entrypoints are defined. Implement net.fabricmc.fabric.api.datagen.v1.DataGeneratorEntrypoint and add your class to the 'fabric-datagen' entrypoint key in your fabric.mod.json.
However, it might be better to have integration on plugin side.
Minecraft Development for IntelliJ plugin version
2024.2-1.8.1
Description of the feature request
MOD developer may implement
net.fabricmc.fabric.api.datagen.v1.DataGeneratorEntrypoint
to generate datapack from code. This is useful when one prefer code than JSONs, and is actually convertible by "Data Generation API".We can enable it from the
build.gradle
. However, one should add implementation FQCN infabric.mod.json
to refer the entrypoints inentrypoints.fabric-datagen[*]
.One can notice easily by issued warning from
./gradlew runDatagen
:However, it might be better to have integration on plugin side.