Skip to content

NPCTestCommand.ProbeTestCommand

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

public static class NPCTestCommand.ProbeTestCommand extends AbstractPlayerCommand

Inner class of NPCTestCommand. Tests NPC spawn position validity at the player’s current location. Runs three probes and a collision validation:

  1. Air probe (PositionProbeAir): checks if the position is valid for air-based NPCs.
  2. Water probe (PositionProbeWater): checks if the position is valid for aquatic NPCs, using the player model’s eye height.
  3. Collision validation (CollisionModule.validatePosition()): checks for block collisions at the position with material type 4.

Displays results to the player and logs them to the NPC plugin logger, including the Y position, bounding box, and chunk height at the player’s location.

public ProbeTestCommand()

Registers as sub-command "probe" with translation key "server.commands.npc.test.probe.desc".

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