Skip to content
SoulFire LogoSoulFire

Actions

Inputs, outputs, and defaults of the 26 built-in nodes in the Actions category.

Generated from the pinned SoulFire source. Regenerate these pages with bun run generate-node-reference.

Attack

action.attack

Makes the bot attack the entity it's looking at (left click)

Also called: hit, fight, damage, combat, left click.

Inputs

PortTypeRequired / defaultDescription
in (In)execOptionalExecution input
bot (Bot)botOptionalOptional override of the bot in execution context

Outputs

PortTypeDescription
out (Out)execExecution output

Implementation

Break Block

action.break_block

Pathfinds to and breaks a block at the specified position

Also called: break, mine, dig, destroy, block.

Inputs

PortTypeRequired / defaultDescription
in (In)execOptionalExecution input
bot (Bot)botOptionalOptional override of the bot in execution context
position (Position)vector3RequiredBlock position to break

Outputs

PortTypeDescription
out (Out)execExecution output
exec_error (Error)execExecutes on failure
success (Success)booleanWhether it succeeded
errorMessage (Error Message)stringError details

Implementation

Click Slot

action.click_slot

Clicks an inventory slot (left, right, or shift click)

Also called: click, slot, inventory, move, item, swap.

Inputs

PortTypeRequired / defaultDescription
in (In)execOptionalExecution input
bot (Bot)botOptionalOptional override of the bot in execution context
slot (Slot)number0Inventory menu slot index to click (-999 to drop the carried item)
clickType (Click Type)string"left"Click type: left, right, or shift

Outputs

PortTypeDescription
out (Out)execExecution output

Implementation

Close Inventory

action.close_inventory

Closes any open container or inventory screen

Also called: close, inventory, container, screen.

Inputs

PortTypeRequired / defaultDescription
in (In)execOptionalExecution input
bot (Bot)botOptionalOptional override of the bot in execution context

Outputs

PortTypeDescription
out (Out)execExecution output

Implementation

Drop cursor item

action.drop_item

Drops the item currently held on the cursor

Also called: Drop Item, drop, item, cursor, throw, discard.

Inputs

PortTypeRequired / defaultDescription
in (In)execOptionalExecution input
bot (Bot)botOptionalOptional override of the bot in execution context
dropAll (Drop All)booleantrueDrop entire stack (true) or one item (false)

Outputs

PortTypeDescription
out (Out)execExecution output

Implementation

Drop Slot

action.drop_slot

Picks up an item from a slot and drops it outside the inventory

Also called: drop, slot, inventory, throw, discard, remove.

Inputs

PortTypeRequired / defaultDescription
in (In)execOptionalExecution input
bot (Bot)botOptionalOptional override of the bot in execution context
slot (Slot)number0Inventory menu slot index to drop from

Outputs

PortTypeDescription
out (Out)execExecution output

Implementation

Go to position

action.pathfind_to

Moves the bot to a target position using pathfinding

Also called: Pathfind To, pathfind, walk, move, goto, navigate.

Inputs

PortTypeRequired / defaultDescription
in (In)execOptionalExecution input
bot (Bot)botOptionalOptional override of the bot in execution context
destination (Destination)vector3RequiredTarget position to pathfind to

Outputs

PortTypeDescription
out (Out)execExecution output
exec_error (Error)execExecutes on failure
success (Success)booleanWhether it succeeded
errorMessage (Error Message)stringError details

Implementation

Jump

action.jump

Makes the bot jump once

Also called: hop, leap.

Inputs

PortTypeRequired / defaultDescription
in (In)execOptionalExecution input
bot (Bot)botOptionalOptional override of the bot in execution context

Outputs

PortTypeDescription
out (Out)execExecution output

Implementation

Log message

action.print

Logs a message for debugging purposes

Also called: Print, print, log, debug, console, output, message.

Inputs

PortTypeRequired / defaultDescription
in (In)execOptionalExecution input
message (Message)anyRequiredThe message to log
level (Level)string"info"Log level (debug, info, warn, error)

Outputs

PortTypeDescription
out (Out)execExecution output

Implementation

Look At

action.look_at

Makes the bot look at a specific position in the world

Also called: look, face, turn, aim, view.

Inputs

PortTypeRequired / defaultDescription
in (In)execOptionalExecution input
bot (Bot)botOptionalOptional override of the bot in execution context
target (Target)vector3RequiredPosition to look at

Outputs

PortTypeDescription
out (Out)execExecution output

Implementation

Move Backward

action.move_backward

Sets the bot's backward movement state (S key)

Also called: move, backward, back, s-key, wasd.

Inputs

PortTypeRequired / defaultDescription
in (In)execOptionalExecution input
bot (Bot)botOptionalOptional override of the bot in execution context
enabled (Enabled)booleantrueWhether to move backward

Outputs

PortTypeDescription
out (Out)execExecution output

Implementation

Move Forward

action.move_forward

Sets the bot's forward movement state (W key)

Also called: move, forward, walk, w-key, wasd.

Inputs

PortTypeRequired / defaultDescription
in (In)execOptionalExecution input
bot (Bot)botOptionalOptional override of the bot in execution context
enabled (Enabled)booleantrueWhether to move forward

Outputs

PortTypeDescription
out (Out)execExecution output

Implementation

Open Inventory

action.open_inventory

Opens the player's inventory screen

Also called: open, inventory, container, screen.

Inputs

PortTypeRequired / defaultDescription
in (In)execOptionalExecution input
bot (Bot)botOptionalOptional override of the bot in execution context

Outputs

PortTypeDescription
out (Out)execExecution output

Implementation

Pathfind Away From

action.pathfind_away_from

Moves the bot away from a position using pathfinding

Also called: pathfind, away, flee, escape, move, afk.

Inputs

PortTypeRequired / defaultDescription
in (In)execOptionalExecution input
bot (Bot)botOptionalOptional override of the bot in execution context
position (Position)vector3RequiredPosition to move away from
distance (Distance)number10Minimum distance to move away

Outputs

PortTypeDescription
out (Out)execExecution output
exec_error (Error)execExecutes on failure
success (Success)booleanWhether it succeeded
errorMessage (Error Message)stringError details

Implementation

Place Block

action.place_block

Pathfinds to and places a block at the specified position

Also called: place, build, put, block.

Inputs

PortTypeRequired / defaultDescription
in (In)execOptionalExecution input
bot (Bot)botOptionalOptional override of the bot in execution context
position (Position)vector3RequiredBlock position to place at

Outputs

PortTypeDescription
out (Out)execExecution output
exec_error (Error)execExecutes on failure
success (Success)booleanWhether it succeeded
errorMessage (Error Message)stringError details

Implementation

Respawn

action.respawn

Respawns the bot after death

Also called: death, revive, alive.

Inputs

PortTypeRequired / defaultDescription
in (In)execOptionalExecution input
bot (Bot)botOptionalOptional override of the bot in execution context

Outputs

PortTypeDescription
out (Out)execExecution output

Implementation

Select hotbar slot

action.select_slot

Selects a hotbar slot (0-8)

Also called: Select Slot, slot, hotbar, select, inventory, hand.

Inputs

PortTypeRequired / defaultDescription
in (In)execOptionalExecution input
bot (Bot)botOptionalOptional override of the bot in execution context
slot (Slot)number0Hotbar slot (0-8)

Outputs

PortTypeDescription
out (Out)execExecution output

Implementation

Send Chat

action.send_chat

Sends a chat message or command

Also called: chat, message, send, say, command.

Inputs

PortTypeRequired / defaultDescription
in (In)execOptionalExecution input
bot (Bot)botOptionalOptional override of the bot in execution context
message (Message)string""The message to send

Outputs

PortTypeDescription
out (Out)execExecution output

Implementation

Set Rotation

action.set_rotation

Sets the bot's rotation (yaw and pitch in degrees)

Also called: rotation, yaw, pitch, turn, face, angle.

Inputs

PortTypeRequired / defaultDescription
in (In)execOptionalExecution input
bot (Bot)botOptionalOptional override of the bot in execution context
yaw (Yaw)number0Horizontal rotation (-180 to 180)
pitch (Pitch)number0Vertical rotation (-90 to 90)

Outputs

PortTypeDescription
out (Out)execExecution output

Implementation

Sneak

action.sneak

Sets the bot's sneaking state

Also called: crouch, shift, stealth.

Inputs

PortTypeRequired / defaultDescription
in (In)execOptionalExecution input
bot (Bot)botOptionalOptional override of the bot in execution context
enabled (Enabled)booleantrueWhether to sneak

Outputs

PortTypeDescription
out (Out)execExecution output

Implementation

Sprint

action.sprint

Sets the bot's sprinting state

Also called: run, fast, speed.

Inputs

PortTypeRequired / defaultDescription
in (In)execOptionalExecution input
bot (Bot)botOptionalOptional override of the bot in execution context
enabled (Enabled)booleantrueWhether to sprint

Outputs

PortTypeDescription
out (Out)execExecution output

Implementation

Strafe Left

action.strafe_left

Sets the bot's left strafe movement state (A key)

Also called: move, strafe, left, a-key, wasd.

Inputs

PortTypeRequired / defaultDescription
in (In)execOptionalExecution input
bot (Bot)botOptionalOptional override of the bot in execution context
enabled (Enabled)booleantrueWhether to strafe left

Outputs

PortTypeDescription
out (Out)execExecution output

Implementation

Strafe Right

action.strafe_right

Sets the bot's right strafe movement state (D key)

Also called: move, strafe, right, d-key, wasd.

Inputs

PortTypeRequired / defaultDescription
in (In)execOptionalExecution input
bot (Bot)botOptionalOptional override of the bot in execution context
enabled (Enabled)booleantrueWhether to strafe right

Outputs

PortTypeDescription
out (Out)execExecution output

Implementation

Swing Hand

action.swing_hand

Swings the bot's arm without attacking (cosmetic swing)

Also called: swing, arm, wave, miss, fake.

Inputs

PortTypeRequired / defaultDescription
in (In)execOptionalExecution input
bot (Bot)botOptionalOptional override of the bot in execution context

Outputs

PortTypeDescription
out (Out)execExecution output

Implementation

Use Item

action.use_item

Uses the item in the bot's hand (right click)

Also called: use, item, right click, interact, eat, drink.

Inputs

PortTypeRequired / defaultDescription
in (In)execOptionalExecution input
bot (Bot)botOptionalOptional override of the bot in execution context

Outputs

PortTypeDescription
out (Out)execExecution output

Implementation

Wait

action.wait (expensive operation)

Delays execution for a specified duration with optional random jitter

Also called: delay, sleep, pause, timer, jitter.

Inputs

PortTypeRequired / defaultDescription
in (In)execOptionalExecution input
baseMs (Duration (ms))number1000Base delay in milliseconds
jitterMs (Jitter (ms))number0Random jitter +/- this value (0 = no jitter)
minMs (Min (ms))number0Minimum delay (clamp)
maxMs (Max (ms))number60000Maximum delay (clamp)

Outputs

PortTypeDescription
out (Out)execExecution output
actualMs (Actual (ms))numberActual delay used

Implementation

How is this page?

Last updated on