NPCPathCommand.PolygonPathCommand
Package: com.hypixel.hytale.server.npc.commands
public static class NPCPathCommand.PolygonPathCommand extends NPCWorldCommandBaseInner class of NPCPathCommand. Creates a regular polygon path for the target NPC. Generates waypoints for each side of the polygon, with equal turn angles (2*PI / sides) and uniform side lengths.
Arguments
Section titled “Arguments”| Argument | Type | Required | Default | Description |
|---|---|---|---|---|
sides | Integer | yes | — | Number of sides (must be > 0) |
length | Double | no | 5.0 | Length of each side in blocks (must be > 0) |
Constructor
Section titled “Constructor”public PolygonPathCommand()Registers as sub-command "polygon" with translation key "server.commands.npc.path.polygon.desc".
Related Types
Section titled “Related Types”- NPCPathCommand — parent command collection
- NPCPathCommand.SetPathCommand — freeform path 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.