NPCPathCommand.SetPathCommand
Package: com.hypixel.hytale.server.npc.commands
public static class NPCPathCommand.SetPathCommand extends NPCWorldCommandBaseInner class of NPCPathCommand. Sets a transient path on the target NPC from a comma-separated string of rotation/distance pairs (e.g., "90,5,45,3" means turn 90 degrees and walk 5 blocks, then turn 45 degrees and walk 3 blocks). Rotation values are in degrees (converted to radians internally).
Arguments
Section titled “Arguments”| Argument | Type | Required | Description |
|---|---|---|---|
instructions | String | yes | Comma-separated rotation,distance pairs |
Constructor
Section titled “Constructor”public SetPathCommand()Registers as the default sub-command (empty name) with translation key "server.commands.npc.path.desc".
Related Types
Section titled “Related Types”- NPCPathCommand — parent command collection
- NPCPathCommand.PolygonPathCommand — polygon variant
- NPCWorldCommandBase — base class
Hydex is an independent community resource. Hytale is a trademark of Hypixel Studios. Hydex is not affiliated with or endorsed by Hypixel Studios.