Andrew's Datapack Utils

Mod

Useful utilities for datapacks, such as a calculator and allowing player data modification, and more.

Server Game MechanicsLibraryManagementUtility

791 downloads
2 followers
Follow Save

Andrew's Datapack Utils 1.2.0

Changelog

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 with force

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.

Files

AndrewsPackUtils-1.2.0.jar(17.77 KiB) Primary Download

Project members

AndrewGaming587

Member

Details

Licensed CC-BY-4.0
Published 4 months ago
Updated 24 days ago