Skip to main content

Documentation Index

Fetch the complete documentation index at: https://docs.borntocraftstudio.net/llms.txt

Use this file to discover all available pages before exploring further.

AI Goals Reference

This page lists all available AI Goal Selectors in BTCMobs.

Usage

Goals are added to mobs via the AIGoalSelectors configuration:
MyMob:
  Type: ZOMBIE
  AIGoalSelectors:
    - clear           # Always start with clear
    - float           # Priority 0
    - meleeattack     # Priority 1
    - randomstroll    # Priority 2

Goal Priority

Lower numbers = higher priority. Goals with priority 0 are checked first.

Essential Goals

GoalAliasesDescription
meleeattack-Standard melee attack
float-Stay on water surface
panic-Flee when hurt
randomstrollrandomwalkRandom wandering
lookaroundrandomlookaroundLook around randomly
lookatplayerslookplayersLook at nearby players

Attack Goals

GoalAliasesDescription
meleeattack-Close-range melee attacks
arrowattackrangedattackRanged projectile attacks
spiderattack-Spider-style melee
leapattargetleapJump towards target
creeperswellswellCreeper explosion behavior

Movement Goals

GoalAliasesDescription
randomstrollrandomwalkWander randomly
randomswimswimSwim randomly
movetowardstargetapproachtargetMove toward current target
movetolava-Move toward lava
movetowater-Move toward water
movethroughvillage-Navigate through villages
movetoblock-Move to specific blocks
movetowardsrestriction-Return to restricted area
gotospawngotospawnlocationReturn to spawn location

Follow Goals

GoalAliasesDescription
followownergotoownerFollow owner (tameable)
followparentgotoparentFollow parent mob
followmobfollowmobsFollow other mobs
tempt-Follow player holding item

Flee Goals

GoalAliasesDescription
fleeplayersavoidplayersFlee from players
fleesunavoidsunAvoid sunlight
restrictsun-Stay out of sunlight

Interaction Goals

GoalAliasesDescription
breakdoorsbreakdoorBreak through doors
opendooropendoorsOpen doors
breed-Animal breeding behavior
eatgrass-Sheep grass eating
lookattarget-Look at current target

Goal Parameters

Many goals support optional parameters:
AIGoalSelectors:
  - meleeattack{speed=1.5;range=2.0}
  - fleeplayers{range=16;speed=1.2}

Common Parameters

ParameterTypeDescription
speedDoubleMovement speed multiplier
rangeDoubleDetection/flee range