datapack function library

⭐ — (13 endorsements) 📥 37,710 downloads 📌 v4.0.1 📅 1/1/2025
🟡 Updated this year

By white_elephant · adventure

⬇ Download Mod Source: Modrinth ↗ 📅 Updated: 11/3/2025 📅 Created: 1/1/2025

🔍 Analysis

  • 👍 0.0% endorsement rate
  • 🏆 #358 of 1071 adventure mods in this game by downloads

📋 About This Mod

✅ Fall damage;
✅ Fire damage;
✅ Freeze damage;
✅ Drowning damage.

中文介绍:(https://github.com/TouchController/E1epack/blob/main/subprojects/datapack-function-library/README.md#%E5%89%8D%E8%A8%80) | (https://www.mcmod.cn/class/17244.html)

This datapack is licensed under the (https://www.gnu.org/licenses/lgpl-3. 0.txt "Go to this open source license page").

This datapack provides developers with some practical functions (and some dialogs), compatible with all versions of Minecraft (except for versions that cannot install datapacks).

However, due to the large number of commands involved in the datapack, lower versions may not be able to use all functions. The applicable versions of all functions will not be specified below.

Please install the resource pack at the same time to use localized content (v3. 2+). Otherwise, the datapack language will default to zh_cn.

The mod version of this datapack is packaged through Modrinth, and the content is exactly the same as the datapack version, but it is not necessarily the latest version. Please try to use the datapack version.

This datapack provides a `dfl:dfl_enable` function, which can set the score of all entities in this scoreboard to 1, which is convenient for datapacks or mods that depend on this datapack to detect whether this datapack is loaded.

Example:

```mcfunction #Execute when the datapack is loaded: scoreboard objectives add dfl_scoreboard dummy scoreboard players set dfl_enable dfl_scoreboard 0 #If not loaded: function dfl:dfl_enable execute unless score dfl_enable dfl_scoreboard matches 1 #If loaded: function dfl:dfl_enable execute if score dfl_enable dfl_scoreboard matches 1 ```

Note: Some functions have "prerequisite functions" attached to their usage. These functions must be executed once before executing them.

Some function usages are followed by `{xx:"xx"}`. These functions are (https://zh.minecraft.wiki/w/Java%E7%89%88%E5%87%BD%E6%95%B0#%E5%AE%8F). When using them, you need to pass parameters through `{:""}` (the parameters in the usage are the recommended parameters tested by the author during development, or the parameters used by the author for testing). The parameter name (such as num) is expressed as: {num} in the text. The parameter format can refer to the function usage, and special formats will be explained.

If you encounter any problems, please click (https://github.com/TouchController/E1epack/issues/new/choose) to give feedback.

# Function Description

Functions in this category are recommended to be executed when the datapack is loaded (reloaded).

### Disable Special Damage

Function usage: `/function dfl:start/disable_special_damage`

  • Fall damage;
  • Fire damage;
  • Freeze damage;
  • Drowning damage.

### Fix the respawn point to 0 0

Function usage: `/function dfl:start/set_world_spawn`

  • Set the world respawn point to 0 0 0;
  • Set the respawn point radius to 0;
  • At this time, the player will be fixed to respawn on the highest block at coordinate 0 0.

### Enable death leaderboard

Function usage: `/function dfl:start/show/enable_death_scoreboard`

  • Create a scoreboard item named death;
  • The number of deaths will be displayed on the right side of the screen;
  • The number of player deaths is sorted from high to low;
  • Note: The death leaderboard will not be displayed when it is first enabled, and it will be displayed only after any player dies.

### Display player health

Function usage: `/function dfl:start/show/display_health_below_name`

  • Create a scoreboard item named health;
  • The player's health will be displayed below the player's ID;
  • It will not be displayed if the distance is slightly far (only the player's ID is displayed);
  • Note: When it is first enabled, the health will be displayed as 0, and it will be displayed only after the value is updated (such as being injured).

### Display player experience level

Function usage: `/function dfl:start/show/display_level_in_tab`

  • Create a scoreboard item named level;
  • The experience level of each player will be displayed in the Tab bar (player list bar);
  • Note: When it is first enabled, the experience level will be displayed as 0, and it will be displayed only after the value is updated (such as leveling up).

### Display player health bar

Function usage: `/function dfl:start/show/display_health_in_tab`

  • Create a scoreboard item named health;
  • The health bar of each player will be displayed in the Tab bar (player list bar).
  • The effect is as follows:

![ Datapack Function Support Library (datapack function library)-Image 1](https://raw.githubusercontent.com/TouchController/E1epack/main/subprojects/datapack-function-library/README/Scoreboard_Display_List_Hearts.gif)

### Quickly create a new team

Function usage: `/function dfl:start/create_teams {team_blue:"blue",team_red:"red",prefix_blue:"blue",prefix_red:"red"}`

🤖 AI-enhanced — based on mod data

📊 Mod Details

Game
Minecraft Data Packs
Author
white_elephant
Version
4.0.1
Downloads
37,710
Endorsements
13
Category
adventure
Created
1/1/2025
Updated
11/3/2025
Game Versions
1.13, 1.13.1, 1.13.2, 1.14, 1.14.1
Tags
adventure, game-mechanics, management

🔧 How to Install Minecraft Data Packs Mods

Download from Modrinth. Use Prism Launcher or drop into your mods folder.

📖 Full step-by-step install guide for Minecraft Data Packs →

Visit the official mod page for specific installation instructions for this mod.

🎮 Need cheat codes or console commands? Check ur gaming wiki for Minecraft Data Packs commands, item IDs, and more.

❓ Frequently Asked Questions

Which Minecraft Data Packs versions does datapack function library support?

The author lists 1.13, 1.13.1, 1.13.2, 1.14, 1.14.1, 1.14.2. Other versions may work but are untested by the author.

What is the latest version of datapack function library?

Version 4.0.1, published 2025-11-03 with 37,710 downloads recorded at the source.

Keep browsing — more Minecraft Data Packs mods await

📋 All Minecraft Data Packs Mods 🏆 Top 25 📂 More adventure 👤 More by white_elephant 🔎 Similar Mods 🌐 Best adventure (All Games) 🔀 Check Compatibility ⚖️ Compare Mods 🆕 New Mods