nineMinecraft is a joke site.
nineMinecraft is in no way affiliated with Modrinth or 9minecraft. (And frankly, who wants to be affiliated with the latter?)

Andrew's Datapack Utils

Mod

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

Server Game MechanicsLibraryManagementUtility

585 downloads
1 follower
Filter loader...
Filter versions...

Fabric-only hotfix to fix the mod not working on older game versions

Add an /aputils loader command to detect if it is the fabric or neoforge version of this mod

Add an /aputils check_damage command to check if an entity took damage, and optionally filter for a specific type.

Add an /aputils loader command to detect if it is the fabric or neoforge version of this mod

Add an /aputils check_damage command to check if an entity took damage, and optionally filter for a specific type.

/aputils check_damage is broken on neoforge.

Neoforge port! Only 1.21.5 because I don't know how to set a range of versions yet. Would work on other versions if you changed the depended version.

Add some packet stuff to improve /aputils velocity

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.

Added /aputils velocity (x, y, z,) (add|set) to allow manipulation of the velocity of mobs.

Initial Release

External resources


Project members

AndrewGaming587

Member


Technical information

License
CC-BY-4.0
Client side
unsupported
Server side
required
Project ID