Tags
Creators
Details
Licensed CC-BY-4.0
Published last year
Updated 4 months ago
All versions
1.2.0
Release
Andrew's Datapack Utils 1.2.0last year 564
Compatibility
Minecraft: Java Edition
25w17a
1.21.2–1.21.5
Platform
Fabric
Supported environments
Server-side
Singleplayer
Changes
Additions
/aputils attack_cooldown (single player selector)
No permissions needed, for now.
Get the attack cooldown progress of a player. Returns the current progress of the specified player's attack cooldown, as a percent, to/execute store result. The command feedback for the command says"The attack cooldown progress of %s is %s", where the first %s is replaced with the player that the provided selector targets, and the second %s is replaced with the attack cooldown progress of the player as a value from 0 to 1./aputils despawn (non-player entity/entities)
Requires Permission Level 2
Despawns an entity/entities. Not the same as /kill, which kills the entity/entities. This command despawns the entity/entities, not triggering any death events or dropping any items. Just straight up removing the entity/entities from existence. If the selector used includes a player (not if it allows players, only if it includes a player at the time of the command running), the command fails and doesn't despawn any entities. This is to prevent you from breaking the game.
But since I hate restrictions,
/aputils despawn (ANY entities) force
Ignores the player check for this command and forces the entities to despawn regardless of if they are a player. Requires permission level 4, so functions and command blocks can't run the command withforce
Changes
- Changed fabric.mod.json to 'recommend' Minecraft 1.21.5 instead of 'depend' on it, so it hopefully is able to help datapacks on older versions of Minecraft.
/aputils velocity (vector3) (add|set)(add|set)can now be omitted.- if it is omitted, uses the same behavior as specifying
set.
- if it is omitted, uses the same behavior as specifying
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:j2YjrqXa:HxR26F8G"
}
// Legacy Loom dependency
dependencies {
modImplementation "maven.modrinth:j2YjrqXa:HxR26F8G"
}
