Skip to content

com.hypixel.hytale.server.npc.commands

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

This package contains the 23 command classes (49 types including inner classes) that implement the /npc command tree. These commands are registered by NPCPlugin.setup() via NPCCommand and provide server operators with tools for spawning, inspecting, debugging, and controlling NPC entities at runtime.

All types in this package are internal (api_surface: false). They are not part of the public plugin API.

/npc
all -- Spawn all NPC roles in a grid
appearance -- Change NPC model
attack -- Override attack interactions
(set) -- Set attack overrides
clear -- Clear attack overrides
benchmark -- Start performance benchmarks
blackboard -- Inspect NPC perception data
chunks -- List blackboard chunk sections
chunk -- Inspect a specific chunk
drop -- Clear all blackboard data
views -- List block type views
view -- Inspect a specific block type view
blockevents -- Show block event subscriptions
entityevents -- Show entity event subscriptions
resourceviews -- List resource views
resourceview -- Inspect a specific resource view
reserve -- Add/remove player-NPC reservation
reservation -- Check reservation status
clean -- Remove all NPCs from world
debug -- Manage debug flags
show -- Show current flags
set -- Replace flags
toggle -- Toggle individual flags
defaults -- Apply default preset
clear -- Remove all flags
presets -- List available presets
dump -- Dump NPC state to log
freeze -- Pause NPC behavior
give -- Give item to NPC
nothing -- Clear held item
message -- Send beacon message to NPC
path -- Assign transient paths
(set) -- Set path from rotation/distance pairs
polygon -- Set regular polygon path
role -- Change NPC role
(get) -- Display current role
runtests -- Run NPC behavior test suite
sensorstats -- Display sensor range statistics
spawn -- Spawn NPCs with options
(page) -- Open spawn UI page
step -- Step NPC behavior one tick
test -- Diagnostic tests
probe -- Test position validity
thaw -- Unfreeze NPCs
TypeKindDescription
NPCWorldCommandBaseabstract classBase for single-NPC world commands with automatic target resolution
NPCMultiSelectCommandBaseabstract classBase for multi-NPC commands with spatial selection (cone, sphere, ray)
NPCCommandUtilsclassStatic utility for resolving target NPC from command context
TypeKindSub-commandDescription
NPCCommandclass/npcRoot command collection
NPCDescriptorsCommandclassdescriptorsGenerate and save NPC descriptors
NPCAllCommandclassallSpawn all roles in a grid
NPCAppearanceCommandclassappearanceChange NPC model
NPCAttackCommandclassattackOverride attack interactions
NPCBenchmarkCommandclassbenchmarkPerformance benchmarking
NPCBlackboardCommandclassblackboardInspect perception data
NPCCleanCommandclasscleanRemove all NPCs
NPCDebugCommandclassdebugManage debug flags
NPCDumpCommandclassdumpDump NPC state
NPCFreezeCommandclassfreezePause NPC behavior
NPCGiveCommandclassgiveGive item to NPC
NPCMessageCommandclassmessageSend beacon messages
NPCPathCommandclasspathAssign transient paths
NPCRoleCommandclassroleChange NPC role
NPCRunTestsCommandclassruntestsRun behavior test suite
NPCSensorStatsCommandclasssensorstatsSensor range statistics
NPCSpawnCommandclassspawnSpawn NPCs
NPCStepCommandclassstepStep behavior one tick
NPCTestCommandclasstestDiagnostic tests
NPCThawCommandclassthawUnfreeze NPCs
TypeKindParentDescription
NPCAttackCommand.SetAttackCommandclassNPCAttackCommandSets attack overrides
NPCAttackCommand.ClearAttackCommandclassNPCAttackCommandClears attack overrides
NPCBlackboardCommand.ChunksCommandclassNPCBlackboardCommandLists chunk sections
NPCBlackboardCommand.ChunkCommandclassNPCBlackboardCommandInspects a chunk
NPCBlackboardCommand.DropCommandclassNPCBlackboardCommandClears blackboard
NPCBlackboardCommand.ViewsCommandclassNPCBlackboardCommandLists block type views
NPCBlackboardCommand.ViewCommandclassNPCBlackboardCommandInspects a view
NPCBlackboardCommand.BlockEventsCommandclassNPCBlackboardCommandBlock event subscriptions
NPCBlackboardCommand.EntityEventsCommandclassNPCBlackboardCommandEntity event subscriptions
NPCBlackboardCommand.ResourceViewsCommandclassNPCBlackboardCommandLists resource views
NPCBlackboardCommand.ResourceViewCommandclassNPCBlackboardCommandInspects a resource view
NPCBlackboardCommand.ReserveCommandclassNPCBlackboardCommandManages reservations
NPCBlackboardCommand.ReservationCommandclassNPCBlackboardCommandChecks reservation status
NPCDebugCommand.ShowCommandclassNPCDebugCommandShows debug flags
NPCDebugCommand.SetCommandclassNPCDebugCommandSets debug flags
NPCDebugCommand.ToggleCommandclassNPCDebugCommandToggles debug flags
NPCDebugCommand.DefaultsCommandclassNPCDebugCommandApplies default preset
NPCDebugCommand.ClearCommandclassNPCDebugCommandClears debug flags
NPCDebugCommand.PresetsCommandclassNPCDebugCommandLists presets
NPCGiveCommand.GiveNothingCommandclassNPCGiveCommandClears held item
NPCPathCommand.SetPathCommandclassNPCPathCommandSets freeform path
NPCPathCommand.PolygonPathCommandclassNPCPathCommandSets polygon path
NPCRoleCommand.GetRoleCommandclassNPCRoleCommandGets current role
NPCRunTestsCommand.NPCTestDataclassNPCRunTestsCommandTest session ECS component
NPCSpawnCommand.SpawnPageCommandclassNPCSpawnCommandSpawn UI page
NPCTestCommand.ProbeTestCommandclassNPCTestCommandPosition probe test
Hydex is an independent community resource. Hytale is a trademark of Hypixel Studios. Hydex is not affiliated with or endorsed by Hypixel Studios.