Perfect Utils - Reusable Systems for Developers

A library of modular and resuable systems for mod developers to use directly.
Back to Files

Perfect Utils-1.0.1.jar

File namePerfect Utils-1.0.1.jar
Uploader
ziggfreedziggfreed
Uploaded
Apr 27, 2026
Downloads
12.1K
Size
37.6 KB
File ID
8002369
Type
R
Release
Supported game versions
  • Early Access

What's new

[1.0.1] - 2026-04-27

Added

  • AggroAPI — mob aggro / taunt controller, ported from Zephyr's KunaiVanishTickSystem.
    • dropAggro(store, playerRef, radius) — one-shot targeting reset within radius.
    • suppress(store, playerRef, durationMs, radius) — sustained Attitude.IGNORE window.
    • taunt(store, tauntRef, durationMs, radius) — pin nearby mobs to the taunter.
    • clear, isSuppressed, isTaunting, getRemainingMs queries.
  • AggroComponent, AggroTickSystem, AggroQueueDrainSystem — per-player ECS state, swept once per tick. Drain stages components only; the tick system owns all forEachChunk(NPCEntity, ...) work to avoid nested-iteration errors on the store.
  • AggroUtil — static helpers (resetTargetingNearby, suppressTargeting, redirectAggro) using MarkedEntitySupport + WorldSupport.overrideAttitude + TargetMemory.knownHostiles.
  • radius <= 0 iterates every NPC in the world (Zephyr-style true invisibility); positive values bound the sweep with a squared-distance filter against TransformComponent.

This mod has no additional files