Skip to content

NPCFreezeCommand

Package: com.hypixel.hytale.server.npc.commands

public class NPCFreezeCommand extends AbstractWorldCommand

Implements /npc freeze. Pauses NPC behavior ticking by adding the Frozen ECS component to target entities.

ArgumentTypeRequiredDescription
--allflagnoFreeze all NPCs and items in the world
--toggleflagnoToggle freeze state on the target NPC
entityentity IDnoTarget NPC (defaults to player’s look-target)
  • --all mode: Iterates all entities with NPCEntity component in parallel, adding Frozen. Also freezes all ItemComponent entities and makes them Interactable.
  • Single target mode: Uses NPCCommandUtils to resolve the target NPC.
    • With --toggle: removes Frozen if present, or adds it if absent.
    • Without --toggle: always adds Frozen.
public NPCFreezeCommand()

Registers as sub-command "freeze" with translation key "server.commands.npc.freeze.desc".

Hydex is an independent community resource. Hytale is a trademark of Hypixel Studios. Hydex is not affiliated with or endorsed by Hypixel Studios.