promotional bannermobile promotional banner

Perfect Utils - Reusable Systems for Developers

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

File Details

Perfect Utils-1.1.0.jar

  • R
  • Jun 21, 2026
  • 37.90 KB
  • 3.4K
  • 0.5

File Name

Perfect Utils-1.1.0.jar

Supported Versions

  • 0.5

[1.1.0] - 2026-06-21

Added

  • StunMobAPI.stunEntity(store, target, durationMs, source) and the no-source overload stunEntity(store, target, durationMs): entity-neutral entry points that stun ANY entity, mob OR player. The stun pipeline was already entity-agnostic (movement is frozen by pushing a stun EntityEffect of zero horizontal speed + MovementEffects.DisableAll through the target's EffectControllerComponent, which a player carries just like a mob via the vanilla /player effect apply path, so the player's client disables its own movement input; the NPC-AI suppression is null-guarded and no-ops on a player). stunEntity is the explicitly-named entry point for stunning an enemy player; applyStun / applyStagger keep their original names and behave identically on any entity. Enables PvP consumers (Kweebec Clash) to stun an opponent.