Skip to main content

Agent Actions Reference

This page documents all 24 actions available to ElizaOS agents in Hyperscape. Actions are the executable commands that agents use to interact with the game world.
Actions are defined in packages/plugin-hyperscape/src/actions/.

Action Categories

Movement

6 actions for navigation

Combat

3 actions for fighting

Skills

4 actions for gathering/crafting

Inventory

3 actions for item management

Social

1 action for communication

Banking

3 actions for storage

Goals

2 actions for planning

Questing

2 actions for quests

Movement Actions

moveTo

Move to specific coordinates.
Usage: Navigate to resources, NPCs, or destinations.

followEntity

Follow another player or NPC.
Usage: Follow players for social interaction or group activities.

stopMovement

Stop all movement.
Usage: Halt when reaching destination or when threatened.

explore

Explore the surrounding area.
Usage: Discover new areas, find resources.

approachEntity

Move closer to an entity for interaction.
Usage: Get within combat or interaction range.
Navigate to a named location.
Usage: Navigate using location names instead of coordinates.

Combat Actions

attackEntity

Attack a target entity.
Usage: Engage mobs or hostile players.

changeCombatStyle

Change combat style for XP distribution.
Usage: Train specific combat skills.

flee

Escape from combat.
Usage: Escape when low on health.

Skill Actions

chopTree

Chop a tree for logs. Automatically walks to tree if within 40m approach range.
Requirements: Hatchet in inventory, Woodcutting level. Approach Range: 40m (increased from 20m in commit 593cd56b to fix “choppableTrees=0” errors despite visible trees) How to Get Hatchet: Accept quest lumberjacks_first_lesson from Forester Wilma (grants Bronze Hatchet + Tinderbox immediately)

mineRock

Mine a rock for ore. Automatically walks to rock if within 40m approach range.
Requirements: Pickaxe in inventory, Mining level. Approach Range: 40m (increased from 20m in commit 593cd56b to match skills validation) How to Get Pickaxe: Accept quest torvins_tools from Torvin (grants Bronze Pickaxe + Hammer immediately)

catchFish

Catch fish at a fishing spot. Automatically walks to spot if within 40m approach range.
Requirements: Fishing net or rod in inventory, Fishing level. Approach Range: 40m (increased from 20m in commit 593cd56b) How to Get Fishing Net: Accept quest fresh_catch from Fisherman Pete (grants Small Fishing Net immediately)

lightFire

Light logs to create a fire.
Requirements: Tinderbox and logs in inventory.

cookFood

Cook raw food on a fire.
Requirements: Raw food in inventory, fire nearby.

Inventory Actions

equipItem

Equip an item from inventory.
Usage: Equip weapons, armor, tools.

useItem

Use a consumable item.
Usage: Heal with food, buff with potions.

dropItem

Drop an item on the ground.
Usage: Make room in inventory.

Social Actions

chatMessage

Send a chat message.
Usage: Communicate with other players.

Banking Actions

bankDeposit

Deposit specific items into bank. Automatically walks to nearest bank if not already there.
Behavior:
  1. Finds nearest bank entity or station
  2. Walks to bank if distance > 5 units (awaits movement completion)
  3. Opens bank session (bankOpen packet)
  4. Deposits specified item (bankDeposit packet)
  5. Closes bank session (bankClose packet)

bankWithdraw

Withdraw items from bank. Automatically walks to nearest bank if not already there.
Behavior:
  1. Finds nearest bank entity or station
  2. Walks to bank if distance > 5 units (awaits movement completion)
  3. Opens bank session (bankOpen packet)
  4. Withdraws specified item (bankWithdraw packet)
  5. Closes bank session (bankClose packet)

bankDepositAll

Deposit all non-essential items at the bank. Keeps essential tools (axe, pickaxe, tinderbox, fishing net). Automatically walks to nearest bank and awaits movement completion.
Behavior (commit 60a03f49, Feb 26 2026):
  1. Finds nearest bank entity or station from nearby entities or world map
  2. Walks to bank if distance > 5 units (awaits movement completion)
  3. Opens bank session (bankOpen packet)
  4. Deposits ALL items (bankDepositAll packet)
  5. Withdraws back essential tools one by one (bankWithdraw packets)
  6. Closes bank session (bankClose packet)
Essential Items (Never Deposited):
  • Bronze/Iron/Steel/Mithril Hatchet
  • Bronze/Iron/Steel/Mithril Pickaxe
  • Tinderbox
  • Small Fishing Net
Autonomous Banking Behavior:
  • Agents automatically bank when inventory reaches 25/28 slots
  • Banking goal has high priority (triggers before gathering goals)
  • After banking, agent restores previous goal (e.g., woodcutting)
  • Movement is awaited (no early return) to ensure agent reaches bank
Bank Packet Protocol (commit 593cd56b): The old bankAction packet was broken. The new protocol uses proper packet sequence:
Usage: Autonomous agents use this when inventory reaches 25/28 slots to free space for continued gathering.
This action replaced the old LOOT_STARTER_CHEST action as part of the quest-driven progression system (commit 593cd56b, Feb 26 2026).
Related Changes:
  • Action locks prevent LLM ticks while movement is in progress (commit 60a03f49)
  • Fast-tick mode (2s) for quick follow-up after movement/goal changes
  • Short-circuit LLM for obvious decisions (repeat resource, banking, set goal)
  • Banking goal type with auto-restore of previous goal after deposit
  • Await movement completion instead of returning early (ensures agent reaches bank)

Questing Actions

acceptQuest

Accept a quest from an NPC. Quest items are granted immediately on accept.
Usage: Get starter tools and rewards from quests. Tool-Granting Quests:
  • lumberjacks_first_lesson → Bronze Hatchet + Tinderbox (from Forester Wilma)
  • fresh_catch → Small Fishing Net (from Fisherman Pete)
  • torvins_tools → Bronze Pickaxe + Hammer (from Torvin)
Quest-based tool acquisition replaced the old starter chest system (commit 593cd56b). Agents now get tools by talking to NPCs and accepting quests.

completeQuest

Complete a quest and claim rewards.
Usage: Turn in completed quests for XP rewards.

Goal Actions

setGoal

Set a new goal for the agent.
Usage: Direct agent behavior toward objectives. Example Goals:
  • “Reach level 10 Woodcutting”
  • “Collect 100 logs”
  • “Kill 50 goblins”
  • “Earn 10,000 coins”
New Goal Types (commit 60a03f49):
  • questing - Accept quests to get tools
  • banking - Deposit items when inventory full

idle

Wait without taking action.
Usage: Wait for events, conserve resources.

Action Execution

Actions are executed through the HyperscapeService:

Action Selection

The LLM selects actions based on:
  1. Providers - Current game state context
  2. Evaluators - Assessment of opportunities
  3. Goals - Current objectives
  4. Available Actions - Context-aware action list