NPCFreezeCommand
Package: com.hypixel.hytale.server.npc.commands
public class NPCFreezeCommand extends AbstractWorldCommandImplements /npc freeze. Pauses NPC behavior ticking by adding the Frozen ECS component to target entities.
Arguments
Section titled “Arguments”| Argument | Type | Required | Description |
|---|---|---|---|
--all | flag | no | Freeze all NPCs and items in the world |
--toggle | flag | no | Toggle freeze state on the target NPC |
entity | entity ID | no | Target NPC (defaults to player’s look-target) |
Behavior
Section titled “Behavior”--allmode: Iterates all entities withNPCEntitycomponent in parallel, addingFrozen. Also freezes allItemComponententities and makes themInteractable.- Single target mode: Uses NPCCommandUtils to resolve the target NPC.
- With
--toggle: removesFrozenif present, or adds it if absent. - Without
--toggle: always addsFrozen.
- With
Constructor
Section titled “Constructor”public NPCFreezeCommand()Registers as sub-command "freeze" with translation key "server.commands.npc.freeze.desc".
Related Types
Section titled “Related Types”- NPCThawCommand — unfreezes NPCs (inverse operation)
- NPCStepCommand — steps frozen NPCs one tick at a time
- NPCCommandUtils — used for single-target resolution
- NPCCommand — parent command collection
Hydex is an independent community resource. Hytale is a trademark of Hypixel Studios. Hydex is not affiliated with or endorsed by Hypixel Studios.