Tags
Creators
Details
Licensed LGPL-3.0-or-later
Published 2 years ago
Updated 3 hours ago
All versions
6.0.0
Release
datapack-function-library_v6.0.0_1.13-1.21.103 hours ago 8
Compatibility
Minecraft: Java Edition
1.21–1.21.10
1.20.x
1.19.x
1.18.x
1.17.x
1.16.x
1.15.x
1.14.x
1.13.x
Platform
Data Pack
Supported environments
Required content
Any compatible version
Changes
- 移除
dfl:dfl_enable函数,改用dfl:installed(内容为return 1)供依赖方通过execute store success检测加载状态,不再需要前置命令与额外记分板; - 新增
dfl:lib/get_side_entity_count/{side}系列函数,统计命令执行者视角 front、back、left、right、up、down 一侧的实体数量。
- Removed the
dfl:dfl_enablefunction. Dependents now detect the datapack viadfl:installed(return 1) withexecute store success, no longer requiring setup commands or an extra scoreboard; - Added
dfl:lib/get_side_entity_count/{side}functions, which count the entities on the front, back, left, right, up or down side of the executor's view.
Projects on Modrinth are automatically available through a Maven repository for use with JVM build tools such as Gradle. To learn more about the Modrinth Maven API, click here.
Note: When available, you should use the creator's maven repo instead as it will have transitive dependency information that the Modrinth Maven API does not. You may also end up with duplicate dependencies if you use a mix of Modrinth and non-Modrinth Maven repositories for your dependencies, because the group identifier will be different when served through the Modrinth Maven API.
Maven coordinates:
Version ID:
build.gradle:
repositories {
exclusiveContent {
forRepository {
maven {
name = "Modrinth"
url = "https://api.modrinth.com/maven"
}
}
// forRepositories(fg.repository) // Uncomment when using ForgeGradle
filter {
includeGroup "maven.modrinth"
}
}
}
// Standard Gradle dependency
dependencies {
implementation "maven.modrinth:xfcXTP3W:BzZlNYcY"
}
// Legacy Loom dependency
dependencies {
modImplementation "maven.modrinth:xfcXTP3W:BzZlNYcY"
}

