Skip to content
SoulFire LogoSoulFire

Data

Inputs, outputs, and defaults of the 29 built-in nodes in the Data category.

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

Can See Position

data.can_see_position

Checks if the bot has line-of-sight to a position (raytrace)

Also called: see, visible, sight, raytrace, line, wall, block.

Inputs

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

Outputs

PortTypeDescription
out (Out)execExecution output
visible (Visible)booleanWhether the position is visible

Implementation

Filter Bots

data.filter_bots

Filters a list of bots by name using a regex pattern

Also called: filter, bots, regex, match, name.

Inputs

PortTypeRequired / defaultDescription
in (In)execOptionalExecution input
bots (Bots)list<bot>RequiredList of bots to filter
pattern (Pattern)string".*"Regex pattern to match bot names

Outputs

PortTypeDescription
out (Out)execExecution output
bots (Bots)list<bot>Filtered list of bots

Implementation

Find Block

data.find_block

Finds the nearest block of a specific type within range

Also called: find, block, search, nearest, ore, locate.

Inputs

PortTypeRequired / defaultDescription
in (In)execOptionalExecution input
bot (Bot)botOptionalOptional override of the bot in execution context
blockType (Block Type)string"minecraft:diamond_ore"Block ID to search for
maxDistance (Max Distance)number16Maximum search radius

Outputs

PortTypeDescription
out (Out)execExecution output
found (Found)booleanWhether a block was found
position (Position)vector3Block position
distance (Distance)numberDistance to the block

Implementation

Find Entity

data.find_entity

Finds the nearest entity of a specific type within range

Also called: find, entity, search, nearest, mob, player, locate.

Inputs

PortTypeRequired / defaultDescription
in (In)execOptionalExecution input
bot (Bot)botOptionalOptional override of the bot in execution context
entityType (Entity Type)string"any"Entity ID or 'any' for any entity
maxDistance (Max Distance)number32Maximum search radius
excludeDead (Exclude Dead)booleantrueSkip dead or non-enemy entities
playersOnly (Players Only)booleanfalseOnly return player entities
excludeBots (Exclude Bots)booleanfalseSkip other SoulFire bots in the same instance
mustBeSeen (Must Be Seen)booleanfalseOnly return entities with line-of-sight (raytrace)

Outputs

PortTypeDescription
out (Out)execExecution output
found (Found)booleanWhether an entity was found
position (Position)vector3Entity position
entityId (Entity ID)numberThe entity's ID
distance (Distance)numberDistance to the entity

Implementation

Find Item

data.find_item

Searches inventory for items by ID or food filter

Also called: find, item, inventory, search, food, slot.

Inputs

PortTypeRequired / defaultDescription
in (In)execOptionalExecution input
bot (Bot)botOptionalOptional override of the bot in execution context
itemId (Item ID)stringOptionalItem registry name to search for (empty = any)
foodOnly (Food Only)booleanfalseOnly match edible food items

Outputs

PortTypeDescription
out (Out)execExecution output
found (Found)booleanWhether a matching item was found
slot (Slot)numberInventory menu slot index of the match
itemId (Item ID)stringRegistry name of the found item
count (Count)numberStack count of the found item
isHotbar (Is Hotbar)booleanWhether the slot is in the hotbar
hotbarIndex (Hotbar Index)numberHotbar index (0-8), or -1 if not hotbar

Implementation

Get Armor

data.get_armor

Gets the bot's armor value and toughness

Also called: armor, defence, protection, toughness.

Inputs

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

Outputs

PortTypeDescription
out (Out)execExecution output
armorValue (Armor)numberTotal armor points
armorToughness (Toughness)numberArmor toughness value

Implementation

Get Biome

data.get_biome

Gets the biome at the bot's current position

Also called: biome, terrain, environment, forest, desert, ocean.

Inputs

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

Outputs

PortTypeDescription
out (Out)execExecution output
biome (Biome)stringCurrent biome identifier

Implementation

Get Block

data.get_block

Gets information about a block at a specific position

Also called: block, get, info, type, world.

Inputs

PortTypeRequired / defaultDescription
in (In)execOptionalExecution input
bot (Bot)botOptionalOptional override of the bot in execution context
x (X)number0Block X coordinate
y (Y)number64Block Y coordinate
z (Z)number0Block Z coordinate

Outputs

PortTypeDescription
out (Out)execExecution output
blockId (Block ID)stringThe block's ID
isAir (Is Air)booleanWhether the block is air
isSolid (Is Solid)booleanWhether the block is solid

Implementation

Get Bot By Name

data.get_bot_by_name

Finds a bot by its account name

Also called: bot, name, find, get, search.

Inputs

PortTypeRequired / defaultDescription
in (In)execOptionalExecution input
name (Name)string""The bot's account name

Outputs

PortTypeDescription
out (Out)execExecution output
bot (Bot)botThe found bot (null if not found)
found (Found)booleanWhether the bot was found

Implementation

Get Bot Info

data.get_bot_info

Gets basic information about the bot

Also called: name, username, uuid, identity, info.

Inputs

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

Outputs

PortTypeDescription
out (Out)execExecution output
name (Name)stringBot's username
uuid (UUID)stringBot's unique identifier

Implementation

Get Bots

data.get_bots

Returns all connected bots in the instance

Also called: bots, all, list, connections.

Inputs

PortTypeRequired / defaultDescription
in (In)execOptionalExecution input

Outputs

PortTypeDescription
out (Out)execExecution output
bots (Bots)list<bot>List of all connected bots

Implementation

Get Dimension

data.get_dimension

Gets the bot's current dimension

Also called: dimension, world, overworld, nether, end.

Inputs

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

Outputs

PortTypeDescription
out (Out)execExecution output
dimension (Dimension)stringCurrent dimension name
isOverworld (Is Overworld)booleanTrue if in overworld
isNether (Is Nether)booleanTrue if in nether
isEnd (Is End)booleanTrue if in the end

Implementation

Get Effects

data.get_effects

Gets the bot's active potion effects

Also called: effects, potion, buff, debuff, status.

Inputs

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

Outputs

PortTypeDescription
out (Out)execExecution output
effectCount (Count)numberNumber of active effects
effectNames (Effects)stringComma-separated effect names
hasEffects (Has Effects)booleanTrue if any effects are active

Implementation

Get Entity State

data.get_entity_state

Gets an entity state by integer ID or UUID, including its position, health, and game mode

Also called: entity, state, health, alive, player, gamemode, sprint, position, uuid, rotation, motion.

Inputs

PortTypeRequired / defaultDescription
in (In)execOptionalExecution input
bot (Bot)botOptionalOptional override of the bot in execution context
entityId (Entity ID)number-1The entity's integer ID
entityUuid (Entity UUID)string""The entity's UUID (takes priority over ID)

Outputs

PortTypeDescription
out (Out)execExecution output
found (Found)booleanWhether the entity was found
position (Position)vector3Entity position
health (Health)numberCurrent health
maxHealth (Max Health)numberMaximum health
isAlive (Is Alive)booleanWhether the entity is alive
isPlayer (Is Player)booleanWhether the entity is a player
name (Name)stringEntity name or player username
gamemode (Gamemode)stringPlayer gamemode (survival, creative, etc.)
isSprinting (Is Sprinting)booleanWhether the entity is sprinting
yaw (Yaw)numberEntity yaw rotation (horizontal)
pitch (Pitch)numberEntity pitch rotation (vertical)
motion (Motion)vector3Entity motion/velocity vector

Implementation

Get Experience

data.get_experience

Gets the bot's experience level and points

Also called: experience, xp, level, points.

Inputs

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

Outputs

PortTypeDescription
out (Out)execExecution output
level (Level)numberCurrent experience level
totalXp (Total XP)numberTotal experience points
xpProgress (XP Progress)numberProgress to next level (0-1)

Implementation

Get Gamemode

data.get_gamemode

Gets the bot's current gamemode

Also called: gamemode, survival, creative, adventure, spectator.

Inputs

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

Outputs

PortTypeDescription
out (Out)execExecution output
gamemode (Gamemode)stringCurrent gamemode name
isSurvival (Is Survival)booleanTrue if in survival mode
isCreative (Is Creative)booleanTrue if in creative mode
isAdventure (Is Adventure)booleanTrue if in adventure mode
isSpectator (Is Spectator)booleanTrue if in spectator mode

Implementation

Get Health

data.get_health

Gets the bot's current health and max health

Also called: health, hp, hearts, life.

Inputs

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

Outputs

PortTypeDescription
out (Out)execExecution output
health (Health)numberCurrent health
maxHealth (Max Health)numberMaximum health

Implementation

Get Hunger

data.get_hunger

Gets the bot's food level and saturation

Also called: hunger, food, saturation, eat.

Inputs

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

Outputs

PortTypeDescription
out (Out)execExecution output
foodLevel (Food Level)numberCurrent food level (0-20)
saturation (Saturation)numberCurrent saturation
needsFood (Needs Food)booleanWhether the bot needs food (food level < 20)

Implementation

Get Inventory

data.get_inventory

Gets information about an item in a specific inventory slot

Also called: inventory, item, slot, count, stack.

Inputs

PortTypeRequired / defaultDescription
in (In)execOptionalExecution input
bot (Bot)botOptionalOptional override of the bot in execution context
slot (Slot)number0Inventory slot (0-35 main, 36-39 armor, 40 offhand)

Outputs

PortTypeDescription
out (Out)execExecution output
itemId (Item ID)stringThe item's registry ID
count (Count)numberStack count
isEmpty (Is Empty)booleanWhether the slot is empty

Implementation

Get Light Level

data.get_light_level

Gets the light level at the bot's current position

Also called: light, brightness, dark, spawn, mob.

Inputs

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

Outputs

PortTypeDescription
out (Out)execExecution output
blockLight (Block Light)numberLight from blocks (0-15)
skyLight (Sky Light)numberLight from sky (0-15)
combinedLight (Combined)numberMaximum of block and sky light

Implementation

Get movement state

data.get_bot_state

Gets various movement and state flags of the bot

Also called: Get Bot State, state, ground, water, swimming, sprinting, sneaking, flying, elytra.

Inputs

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

Outputs

PortTypeDescription
out (Out)execExecution output
isOnGround (On Ground)booleanTrue if bot is on ground
isInWater (In Water)booleanTrue if bot is in water
isSwimming (Swimming)booleanTrue if bot is swimming
isSprinting (Sprinting)booleanTrue if bot is sprinting
isSneaking (Sneaking)booleanTrue if bot is sneaking
isFallFlying (Elytra Flying)booleanTrue if bot is elytra flying

Implementation

Get Position

data.get_position

Gets the bot's current position in the world

Also called: position, location, coordinates, xyz.

Inputs

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

Outputs

PortTypeDescription
out (Out)execExecution output
position (Position)vector3Current position

Implementation

Get Rotation

data.get_rotation

Gets the bot's current rotation (yaw and pitch)

Also called: rotation, yaw, pitch, angle, direction.

Inputs

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

Outputs

PortTypeDescription
out (Out)execExecution output
yaw (Yaw)numberHorizontal rotation (-180 to 180)
pitch (Pitch)numberVertical rotation (-90 to 90)

Implementation

Get Selected Slot

data.get_selected_slot

Gets the bot's currently selected hotbar slot and item

Also called: slot, hotbar, selected, hand, held.

Inputs

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

Outputs

PortTypeDescription
out (Out)execExecution output
slot (Slot)numberSelected hotbar slot (0-8)
itemId (Item ID)stringItem in selected slot
itemCount (Count)numberStack count in selected slot

Implementation

Get Target Block

data.get_target_block

Gets the block the bot is currently looking at (raycast)

Also called: target, look, raycast, crosshair, aim.

Inputs

PortTypeRequired / defaultDescription
in (In)execOptionalExecution input
bot (Bot)botOptionalOptional override of the bot in execution context
maxDistance (Max Distance)number5Maximum raycast distance

Outputs

PortTypeDescription
out (Out)execExecution output
found (Found)booleanTrue if a block was found
blockId (Block ID)stringBlock identifier
position (Position)vector3Block position
distance (Distance)numberDistance to block

Implementation

Get Time

data.get_time

Gets the current game time and day/night status

Also called: time, day, night, tick, clock.

Inputs

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

Outputs

PortTypeDescription
out (Out)execExecution output
gameTime (Game Time)numberTotal game time in ticks
dayTime (Day Time)numberTime of day (0-24000)
isDay (Is Day)booleanTrue if daytime (6000-18000)
isNight (Is Night)booleanTrue if nighttime

Implementation

Get Velocity

data.get_velocity

Gets the bot's current velocity and speed

Also called: velocity, speed, movement, motion.

Inputs

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

Outputs

PortTypeDescription
out (Out)execExecution output
velocity (Velocity)vector3Current velocity vector
speed (Speed)numberMovement speed (magnitude)

Implementation

Get Weather

data.get_weather

Gets the current weather conditions

Also called: weather, rain, thunder, storm, clear.

Inputs

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

Outputs

PortTypeDescription
out (Out)execExecution output
isRaining (Is Raining)booleanTrue if raining
isThundering (Is Thundering)booleanTrue if thunderstorm
rainLevel (Rain Level)numberRain intensity (0-1)
thunderLevel (Thunder Level)numberThunder intensity (0-1)

Implementation

Is Container Open

data.is_container_open

Checks if a container or inventory screen is open

Also called: container, inventory, open, screen, check.

Inputs

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

Outputs

PortTypeDescription
out (Out)execExecution output
isOpen (Is Open)booleanWhether a container or inventory screen is open

Implementation

How is this page?

Last updated on