Added a scaling system for the calculator, to scale the output passed to execute store result added sin, cos, tan, clamp, and modulo as operations usable by the calculator added aputils pathfind, which can make any mob go towards a set position or entity (does not track position changes of provided entity, only goes toward where it was when the command was run. to constantly update it, make it run every tick using a repeating command block or datapack.) added aputils target, which makes any non-passive mob target an entity (needs to be living, so stuff like item entities won't work). This does not respect a mob's view range or an entity's targetability (example, creative mode players will still be targeted by this command, although the mob will lose interest once it gets to the player)
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