Skip to content

NPCPathCommand.SetPathCommand

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

public static class NPCPathCommand.SetPathCommand extends NPCWorldCommandBase

Inner 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).

ArgumentTypeRequiredDescription
instructionsStringyesComma-separated rotation,distance pairs
public SetPathCommand()

Registers as the default sub-command (empty name) with translation key "server.commands.npc.path.desc".

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