NPCStepCommand
Package: com.hypixel.hytale.server.npc.commands
public class NPCStepCommand extends AbstractWorldCommandImplements /npc step. Advances NPC behavior by a single tick for debugging purposes. The NPC is frozen (via the Frozen component) and a StepComponent is added with the specified delta time. The StepCleanupSystem removes the StepComponent after processing.
Arguments
Section titled “Arguments”| Argument | Type | Required | Default | Description |
|---|---|---|---|---|
--all | flag | no | — | Step all NPCs in the world |
entity | entity ID | no | — | Target NPC (defaults to player’s look-target) |
dt | Float | no | 1.0 / world.getTps() | Delta time for the step (must be > 0) |
Behavior
Section titled “Behavior”--allmode: Iterates all entities withNPCEntityin parallel, addingFrozenandStepComponentto each.- Single target mode: Resolves the target NPC (via entity argument or player look-target), adds
FrozenandStepComponent.
Constructor
Section titled “Constructor”public NPCStepCommand()Registers as sub-command "step" with translation key "server.commands.npc.step.desc".
Related Types
Section titled “Related Types”- NPCFreezeCommand — freezes NPCs without stepping
- NPCThawCommand — unfreezes NPCs
- 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.