Tags
Creators
Details
Licensed LGPL-3.0-or-later
Published 2 years ago
Updated 9 months ago
All versions
2.0.0
Release
datapack-function-library_v2.0.0_1.13-1.21.1010 months ago 21
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
Required content
Changes
- 大规模函数重命名,将多个函数名称标准化为更具描述性的英文名称
- 重命名的函数包括:things_count → count_items、fill_outline → create_glass_box、clear → force_death_drops、player_id → generate_player_id、daytime → get_day_time、entity → get_entity_count、entity_density → get_entity_density、day → get_game_day、gametime → get_game_time、item → get_item_count、players → get_player_count、other_entity → non_player_entities、spawn → spawn_dummies、kill_item → clear_items、show_entity → display_entity_info、addteam → create_teams、nodamage → disable_special_damage、setworldspawn → set_world_spawn、health → display_health_below_name、health_list → display_health_in_tab、level → display_level_in_tab、death → enable_death_scoreboard、debuff → apply_debuffs、clear_run_b → clear_and_execute_multiple、clear_run_a → clear_and_execute_single、things_to_xp → convert_items_to_xp、slime → create_rescue_platform、team → disable_friendly_fire、show_entity → display_entity_count、kill_better → kill_by_density、kill → kill_excess_entities、kill_tnt → kill_tnt_by_density、keep_have_things → maintain_item_count、ban → soft_ban_player、tpa → teleport_request、suicide → trigger_suicide
- 改进函数命名规范,使函数功能更加清晰易懂
- 保持函数功能不变,仅优化命名以提高代码可读性
- Large-scale function renaming, standardizing multiple function names to more descriptive English names
- Renamed functions include: things_count → count_items、fill_outline → create_glass_box、clear → force_death_drops、player_id → generate_player_id、daytime → get_day_time、entity → get_entity_count、entity_density → get_entity_density、day → get_game_day、gametime → get_game_time、item → get_item_count、players → get_player_count、other_entity → non_player_entities、spawn → spawn_dummies、kill_item → clear_items、show_entity → display_entity_info、addteam → create_teams、nodamage → disable_special_damage、setworldspawn → set_world_spawn、health → display_health_below_name、health_list → display_health_in_tab、level → display_level_in_tab、death → enable_death_scoreboard、debuff → apply_debuffs、clear_run_b → clear_and_execute_multiple、clear_run_a → clear_and_execute_single、things_to_xp → convert_items_to_xp、slime → create_rescue_platform、team → disable_friendly_fire、show_entity → display_entity_count、kill_better → kill_by_density、kill → kill_excess_entities、kill_tnt → kill_tnt_by_density、keep_have_things → maintain_item_count、ban → soft_ban_player、tpa → teleport_request、suicide → trigger_suicide
- Improved function naming conventions to make function purposes clearer and more understandable
- Maintained function functionality unchanged, only optimized naming to improve code readability
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:eAIA68yN"
}
// Legacy Loom dependency
dependencies {
modImplementation "maven.modrinth:xfcXTP3W:eAIA68yN"
}


