Skip to content

GitLab

  • Projects
  • Groups
  • Snippets
  • Help
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in
MythicMobs MythicMobs
  • Project overview
    • Project overview
    • Details
    • Activity
  • Issues 136
    • Issues 136
    • List
    • Boards
    • Labels
    • Service Desk
    • Milestones
  • Operations
    • Operations
    • Incidents
  • Analytics
    • Analytics
    • Repository
    • Value Stream
  • Wiki
    • Wiki
  • Members
    • Members
  • Activity
  • Create a new issue
  • Issue Boards
Collapse sidebar
  • MythicCraft
  • MythicMobsMythicMobs
  • Wiki
    • Mobs
  • AI

Last edited by Woodyso Aug 31, 2021
Page history
This is an old version of this page. You can view the most recent version or browse the history.

AI

This page contains a list of all available AI Goals in MythicMobs.


Goal Selectors

Goal Selectors are used with the AIGoalSelectors field and determine what mobs want to “do”. Certain custom goals might not work if they're not included in the base AI of the mob you're creating. For example, a zombie won't be able to use the AI goal “EatGrass”, because a zombie would never use that goal in the first place. Feel free to experiment however! You also cannot cause a passive mob to attack a target as the event is not handled and will crash the server.

Example:

SuperMob:
  Type: zombie
  Health: 200
  Display: 'Superb Zombie'
  AIGoalSelectors:
  - 0 clear
  - 1 meleeattack
  - 2 randomstroll

This zombie would attack players, and walk around randomly when not targeting an enemy.

All Mobs

AI Goal Aliases Description
clear reset Removes the AI from the mob
breakdoors Causes the mob to break down doors it runs into
eatgrass Makes the mob occasionally… eat grass
float swim Makes the mob swim in water/not sink
lookatplayers The mob will look at nearby players
opendoors opendoor The mob will open doors it runs into and close the door behind it
closedoors restrictopendoor Not sure what this one does
randomlookaround lookaround The mob will randomly look around
fleeconditional Causes the mob to flee based on provided conditions.

FleeConditional Example:

AIGoalSelectors:
- clear 0
- fleeConditional{distance=5; speed=2; conditions=[
      - inlineofsight true
      - entitytype COW true
    ]} 1

Creatures Only

AI Goal Aliases Description
avoidcreepers Causes the mob to avoid Creepers
avoidskeletons Causes the mob to avoid Skeletons
avoidzombies Causes the mob to avoid Zombies
fleesun The mob will hide in the shade when the sun it out
meleeattack Causes the mob to move to and melee-attack its target
movetowardstarget Causes the mob to move towards its target
randomstroll The mob will randomly walk around
restrictsun In theory this will keep the mob from entering sunlight
fleeplayers runfromplayers Causes the mob to avoid Players
fleegolems runfromgolems Causes the mob to avoid Iron Golems
fleevillagers runfromvillages Causes the mob to avoid villagers
spiderattack Uses the attack a spider would (doesn't seem any different from a meleeattack)
leapattarget Makes the mob leap at its target
moveindoors
movethroughvillage
movetowardsrestriction
patrol x1,y1,z1;x2,y2,z2;x3,y3,z3;… patrolroute Makes the mob patrol between the specified locations
gotolocation x,y,z goto Makes the mob go to the specified location
gotoowner # Makes the mob move towards its owner when beyond a certain distance (defaults to 5 blocks)
gotoparent Makes the mob move towards its parent mob

Ranged Entities Only

AI Goal Aliases Description
arrowattack Projectile attack (shooting a bow for a skeleton)
skeletonbowattack bowshoot, bowmaster The new strafing AI for skeletons in Minecraft 1.9 and up

Target Selectors

Target Selectors are used with the AITargetSelectors field and determine what mobs want to target.

Example:

SuperMob:
  Type: zombie
  Health: 200
  Display: 'Superb Zombie'
  AIGoalSelectors:
  - 0 clear
  - 1 meleeattack
  - 2 randomstroll
  AITargetSelectors:
  - 0 clear
  - 1 players
  - 2 golems

All Creatures

AI Goal Aliases Description
clear Special Option. Clears all of the mob's AI.
attacker hurtbytarget Targets whatever attacks the mob
monsters Targets monsters.
players Targets players.
villagers Targets villagers.
golems Targets Golems.
NearestConditionalTarget Targets the nearest entity that meets the conditions provided.

NearestConditionalTarget Example:

AITargetSelectors:
- clear 0
- nearestConditionalTarget{conditions=[
      - entitytype PLAYER true
      - hasaura{aura=marked_for_death} true
    ]} 1

All Creatures(Faction Support)

AI Goal Description
OtherFaction Targets ANY entities that are in a different faction.
OtherFactionMonsters Targets any monsters that are in a different faction.
OtherFactionVillagers Targets any villagers that are in a different faction.
SpecificFaction [faction_name] Targets any entities that are in the given faction.
SpecificFactionMonsters [faction_name] Targets any monsters that are in the given faction.

Example:

AITargetSelectors:
- 1 SpecificFaction undead

This will force a mob to attack mobs only in the “undead” faction.

Tameable Creatures

AI Goal Description
ownerattacker Targets whatever attacks the mob's owner.
ownertarget Targets whatever the mob's owner attacks.
Clone repository
  • Home
  • Changelogs
  • Premium Features
  • Commands and Permissions
  • FAQ / Common Issues
  • Mythic Add-ons
  • Compatible Plugins
  • API Information

Mobs

  • Overview
  • Types
  • Mob Options
  • Mob Levels
  • Mob Factions
  • Power Scaling
  • Damage Modifiers
  • Equipment
  • BossBar
  • Custom AI
  • Custom Kill Messages
  • Threat Tables
  • Immunity Tables
  • Extra: Disguises
  • Extra: MiniaturePets

Skills

  • Overview
  • Mechanics
  • Effects
  • Targeters
  • Triggers
  • Conditions
  • Placeholders
  • Variables

Items & Drops

  • Drops and Drop Tables
  • Options
  • Attributes
  • Enchantments
  • Potions
  • Banner Layers

Spawning

  • Spawners
  • Random Spawns