Better Datapacks
by Micalobia
Better Datapacks extends what a datapack can do on a Fabric server, adding commands, recipe types, advancement triggers and tag removal that vanilla datapacks lack.
What it does
The mod widens the scope of what a datapack can express. Its execute command gains a raycast subcommand, and a calculate command performs math operations on numbers and stores the results anywhere a datapack can reach. Recipes gain new types: an empty type removes a recipe without writing an error to the log, a potion type creates potion recipes, and NBT-aware shaped, shapeless and smithing recipes are available.
Advancements can use a block-broken trigger, and events can be defined in an events folder in a datapack, following the same pattern as advancements. Negative tags let a datapack remove a single entry from an existing tag without rewriting the whole tag. The author describes the aim as improving on the datapack system while staying close to vanilla behavior.
Better Datapacks is a Fabric mod with the required dependency Fabric API. It is server-side only, so players join without installing it and the server alone needs it. Files exist for 1.20.2 and 1.20.4, and the latest Fabric file is 1.2.1 for 1.20.4. The code is released under the MIT License and is open source.
Key features
Raycast execute subcommand
The execute command gains a raycast subcommand for running logic against the block or entity a player is looking at.
Calculate command
A calculate command runs math operations on numbers and stores the result in a score or data location of the datapack's choice.
Block-broken advancement trigger
An advancement trigger fires when a block is broken, so datapack progression can react to mining.
Negative tags
Single entries can be removed from an existing tag without replacing the whole tag, which keeps overrides short.
Events folder
Datapacks gain an events folder that defines event-driven logic in a format similar to advancements.
Compatibility
Latest build for each game version and loader.
Only full game releases are shown. This mod publishes no snapshot builds.
Requirements
Dependencies declared by the latest file for each loader.
Required 1
Questions
Does Better Datapacks need to be installed on clients?
Which Fabric API version is required?
Does Better Datapacks work on Forge or NeoForge?
In the catalog
Better Datapacks is one of 36,990 Utility mods on ModsFinder, and one of 25,772 Utility mods for Fabric. 13,907 mods support Minecraft 1.20.4.
More from Micalobia
Similar mods
What the author says
This mod aims to improve and add upon what is possible with the datapack system in Vanilla, ideally shooting for completely server-side features If you find a bug or have an idea, be sure to create an issue! Would also love it if anyone wants to make a pull request, help is always appreciated!
Official listing
- Modrinth page
- modrinth.com/mod/better-datapacks
- Owner
- Micalobia
- Published
- 2023-12-07
- Updated on Modrinth
- 2024-01-28
- Facts verified
- 2026-10-15
