datapack function library
Datapack Function Library is a set of reusable functions for datapack authors, covering damage, respawn control and a death scoreboard item.
What it does
Datapack Function Library gives datapack authors reusable functions for fall, fire, freeze and drowning damage. Other functions place the world respawn point at the origin with a radius of zero, and fix respawn time at the highest block coordinate. A scoreboard item named death is created so a pack can count deaths.
The library depends on the data pack system, so it only works on versions where data packs can be installed. Server owners and developers build their own packs on top of these functions. Localization Resource Pack is a required dependency, and it should be added together with the localized content, version 3.2 or later. Otherwise the data pack language falls back to the default zh_cn.
The license is the GNU Lesser General Public License v3.0 or later, so the code is open source. It is published for Fabric, Forge, NeoForge and Quilt, and as a data pack, across 51 release versions, 1.13 – 26.3. Only the server has to run it; players may add it but need nothing to join. no entity lag requires this mod.
Key features
Damage functions
Functions for fall, fire, freeze and drowning damage can be called from other data packs.
Respawn control
Functions place the respawn point at the origin with a radius of zero, and fix respawn time at the highest block coordinate.
Death scoreboard item
A scoreboard item named death is created so a pack can count player deaths.
Macro functions
Some functions are macros that take named parameters. Each function must be run once before others can use it, and the parameter format is described per function.
Gallery
Compatibility
Latest build for each game version and loader.
26.x5 of 5 versions with builds
1.21.x12 of 12 versions with builds
1.20.x7 of 7 versions with builds
1.19.x5 of 5 versions with builds
1.18.x3 of 3 versions with builds
1.17.x2 of 2 versions with builds
1.16.x6 of 6 versions with builds
1.15.x3 of 3 versions with builds
1.14.x5 of 5 versions with builds
Only full game releases are shown. This mod publishes no snapshot builds.
3 older game versions (1.13 – 1.13.2) not shown. All files on Modrinth
Requirements
Dependencies declared by the latest file for each loader.
Required 1
Required by 1 mod
How it compares
Simple Player Freeze is a data pack for freezing players, released under the MIT License, and runs for 1.13 – 1.21.10 on Fabric, Forge, NeoForge and Quilt. ID System is also MIT licensed and covers the same 1.13 – 1.21.10 range. Remove Items From Ground is covered by All rights reserved and supports 1.13 – 1.21.11, so it is not open source.
| Mod | Loaders | Game versions | Environment | Updated |
|---|---|---|---|---|
| datapack function library | Fabric, Forge, NeoForge and Quilt | 1.13 – 26.3 | Server required, client optional | 2026-09-26 |
| Simple Player Freeze | Fabric, Forge, NeoForge and Quilt | 1.13 – 1.21.10 | Server required, client optional | 2025-11-20 |
| ID System | Fabric, Forge, NeoForge and Quilt | 1.13 – 1.21.10 | Server required, client optional | 2025-10-29 |
| Remove Items From Ground | Fabric, Forge, NeoForge and Quilt | 1.13 – 1.21.11 | Server required, client optional | 2025-10-13 |
Questions
Does Datapack Function Library need Localization Resource Pack?
Can the library run without a data pack?
Do players need to install it?
In the catalog
datapack function library is one of 8,016 Management mods on ModsFinder, and one of 5,930 Management mods for Fabric. 8,071 mods support Minecraft 26.3.
More from white_elephant
Similar mods
What the author says
This datapack is licensed under the GNU LESSER GENERAL PUBLIC LICENSE. This datapack provides developers with some practical functions (and some dialogs), compatible with all versions of Minecraft (except for versions that cannot install datapacks).
Official listing
- Modrinth page
- modrinth.com/mod/datapack-function-library
- Owner
- white_elephant
- Published
- 2024-11-29
- Updated on Modrinth
- 2026-09-26
- Facts verified
- 2026-10-15
