The AI (or artificial intelligence) is the behavioral pattern exhibited by an NPC. For instance, the Caster AI will always warp, shoot three times, pause for three seconds, and then warp again. Knowing the AI an enemy uses can provide an advantage in combat, as it offers an idea of how the enemy will attack and react in given scenarios.
In addition, additional AI is added for certain NPCs, such as the non-aggressive mode of surface slimes, the Eater of Souls' circling around the player, the Wandering Eye's acceleration, and the ranged attack of some Fighter AI mobs.
There are 101 different AI types:
ID | Name | Description | NPCs |
---|---|---|---|
0 | No AI | Doesn't move. | Bound Goblin, Bound Wizard, Bound Mechanic, Webbed Stylist, Sleeping Angler, Turkor The Ungrateful's Body, Dummy NPC |
1 | Slime AI | Hops in one direction, slides on slopes, floats in water, follows player if damaged or it's nighttime. | All Slimes (except King Slime), Hoppin' Jack, Grasshopper |
2 | Demon Eye AI | Flies, follows player, bounces off walls in an arc. | Demon Eye, Wandering Eye, The Hungry II (part of Wall of Flesh), Pigron |
3 | Fighter AI | Walks, jumps over holes, follows player. It will try to line up vertically first. If it fails to reach its target, it will back up a bit, then re-attempt. | Zombie, Skeleton, Undead Miner, Skeleton Archer, Angry Bones, Armored Skeleton, Goblin Scout, Goblin Archer, Corrupt Bunny, Crab, Werewolf, Clown, Chaos Elemental, Possessed Armor, Mummy, Template:Console icon Template:Mobile iconSpectral Elemental, Vampire, Vampire Miner, Frankenstein, Swamp Thing, Undead Viking, Corrupt Penguin, Face Monster, Snow Flinx, Nymph, Armored Viking, Lihzahrd, Icy Merman, Pirate Deckhand, Pirate Corsair, Pirate Deadeye, Pirate Crossbower, Pirate Captain, Cochineal Beetle, Cyan Beetle, Lac Beetle, Sea Snail, Ice Golem, Eyezor, Anomura Fungus, Mushi Ladybug, Rusty Armored Bones, Blue Armored Bones, Hell Armored Bones, Bone Lee, Paladin, Skeleton Sniper, Tactical Skeleton, Skeleton Commando, Scarecrow, Splinterling, Zombie Elf, Elf Archer, Gingerbread Man, Nutcracker, Yeti, Krampus |
4 | Eye of Cthulhu AI | Alternates between trying to stay above the player and summoning Servants of Cthulhu, and charging at the player occasionally. Spins when low health, and begins exclusively charging at the player. Always looks at player. | Eye of Cthulhu |
5 | Flying AI | Flies, looks at player, follows player. | Servant of Cthulhu, Eater of Souls, Corruptor, Hornet, Probe, Crimera, Moss Hornet, Moth, Bee, Parrot, Template:Console icon Template:Mobile icon Dragon Hornet, Template:Console icon Template:Mobile icon Servant of Ocram, Meteor Head |
6 | Worm AI | Burrows in ground, passes through blocks, follows player. | All parts of the following: Giant Worm, Devourer, Bone Serpent, Eater of Worlds, Digger, World Feeder, Wyvern, Template:Console icon Template:Mobile icon Arch Wyvern, Leech |
7 | Passive AI | Walks semi-randomly, jumps over holes.
As of the 1.3 update, all Passive NPCs talk to eachother during the day and each NPC has a different weapon to defend themselves when an enemy is nearby. |
All NPCs that move in to houses, Traveling Merchant, Old Man, Bunny, Penguin, Squirrel, Mouse, Frog, Scorpion, Black Scorpion |
8 | Caster AI | Casts spells at player, stays stationary, warps after three casts, warps if falling. | Fire Imp, Goblin Sorcerer, Dark Caster, Necromancer, Diabolist, Ragged Caster, Tim, Rune Wizard |
9 | Spell AI | Travels in a direct line toward player, going through blocks. Used by casters. | Burning Sphere, Chaos Ball, Vile Spit, Water Sphere |
10 | Cursed Skull AI | Tries to drift toward or around player, often stays a little bit out of reach once having touched the player. | Cursed Skull, Giant Cursed Skull, Template:Mobile icon/ Template:Console icon Dragon Skull |
11 | Head AI | Tries to stay above player, spins and moves towards player occasionally. | Skeletron Head, Dungeon Guardian |
12 | Skeletron Hand AI | Waves, damages player. | Skeletron Hand |
13 | Plant AI | Extends on a vine towards player, looks at player. Dies if not rooted to a block. | Snatcher, Man Eater, Clinger, Dragon Snatcher, Angry Trapper, Fungi Bulb, Giant Fungi Bulb |
14 | Bat AI | Spasmodically flies toward player. | Harpy, Cave Bat, Jungle Bat, Ice Bat, Lava Bat, Giant Flying Fox, Hellbat, Demon, Voodoo Demon, Giant Bat, Illuminant Bat, Slimer, Template:Mobile icon/ Template:Console icon Arch Demon, Red Devil, Vampire, Flying Snake |
15 | King Slime AI | Hops toward the player, releases Blue Slimes when damaged, occasionally teleports toward the player. | King Slime |
16 | Swimming AI | Swims back and forth, moves towards the player if they are in water. | Corrupt Goldfish, Piranha, Arapaima, Shark, Blood Feeder, Angler Fish, Template:Mobile icon/ Template:Console icon Orca |
17 | Vulture AI | Stands still until player gets within five blocks of AI or is damaged. AI then acts similarly to the Flying AI. | Vulture, Raven |
18 | Jellyfish AI | Floats back and forth, swims toward player in small bursts if player is in water. | Blue Jellyfish, Pink Jellyfish, Green Jellyfish, Squid, Blood Jelly, Fungo Fish |
19 | Antlion AI | Looks at player, climbs overlapping blocks, shoots at nearby players. | Antlion, Template:Mobile icon/ Template:Console icon Albino Antlion |
20 | Spike Ball AI | Swings in a circle from a pivot point on a chain. | Spike Ball |
21 | Blazing Wheel AI | Moves along the walls, floors and closed doors. | Blazing Wheel |
22 | Hovering AI | Similar to the Fighter AI, floats over the ground instead of jumping. | Wraith, Pixie, Gastropod, Spectral Gastropod, Ice Elemental, Floaty Gross, Reaper, Ichor Sticker, Ghost, Poltergeist |
23 | Flying Weapon AI | Doesn't adhere to gravity or tile collisions. Spins several times, then heads straight towards the player. Any knockback cancels its attack and forces it to spin again. | Cursed Hammer, Enchanted Sword, Template:Mobile icon/ Template:Console icon Shadow Hammer, Crimson Axe |
24 | Bird AI | Stands still until player gets nearby, then flies away. Avoids walls and obstacles and changes direction if one is in the way | Bird, Cardinal, Blue Jay |
25 | Mimic AI | Stands still until player approaches or attacks, then leaps towards them with varying heights. | Mimic, Present Mimic |
26 | Unicorn AI | Slowly gains speed while moving, jumps over obstacles. | Unicorn, Wolf, Hellhound, Headless Horseman |
27 | Wall of Flesh Body AI | Traverses the world horizontally. Spawns with two Wall of Flesh Eyes | Wall of Flesh Mouth |
28 | Wall of Flesh Eye AI | Bound to an entity, watches player, and shoots projectiles. The more damaged it is, the more it shoots. | Wall of Flesh Eye |
29 | The Hungry AI | Similar to the Plant AI, but attached to an entity. | The Hungry (part of Wall of Flesh) |
30 | Retinazer AI | Alternates between attempting to stay diagonally above player while shooting projectiles slowly, and attempting to stay beside player and shooting projectiles very rapidly. | Retinazer |
31 | Spazmatism AI | Alternates between shooting projectiles and staying beside player, and charging toward player. | Spazmatism |
32 | Skeletron Prime Head AI | Same as Head AI | Skeletron Prime |
33 | Prime Saw AI | Occasionally charges at the player, heads directly towards player when enraged. | Prime Saw |
34 | Prime Vice AI | Occasionally charges at the player, rapidly charges when enraged. | Prime Vice |
35 | Prime Cannon AI | Fires bombs upwards, aims directly at player when enraged. | Prime Cannon |
36 | Prime Laser AI | Fires projectiles at player, shoots very rapidly when enraged. | Prime Laser |
37 | The Destroyer AI | Similar to worm AI except shoot projectiles from the body and tail. It will also release Probes. | The Destroyer |
38 | Snowman AI | Jumps and runs toward the player, similar to Fighter AI. | Snowman Gangsta, Mister Stabby, Snow Balla |
39 | Tortoise AI | Crawls a bit, leaps toward player. | Giant Tortoise, Ice Tortoise, Giant Shelly, Sroller |
40 | Spider AI | Capable of climbing background walls as well as through platforms. Similar to Fighter AI when there is no background wall. | Black Recluse, Wall Creeper, Jungle Creeper, Blood Crawler |
41 | Herpling AI | Jumps high and attempts to land on the player. It can strafe to the sides in midair. | Herpling, Derpling |
42 | Lost Girl AI | Turns into a Nymph when a player gets too close. | Lost Girl |
43 | Queen Bee AI | Alternates between attempting to stay above player while firing projectiles downards, and charging back and forth very rapidly. | Queen Bee |
44 | Flying Fish AI | Flies straight towards player. | Flying Fish |
45 | Golem Body AI | Jumps towards player every few seconds, shoots lasers. | Golem |
46 | Golem Head AI | Bound to an entity. | Golem |
47 | Golem Fist AI | Flies towards player, returns when hit | Golem |
48 | Flying Golem Head AI | Attempts to fly back and forth, shoots projectiles at player, | Golem |
49 | Angry Nimbus AI | Attempts to stay directly above the player, and fires projectiles downwards. | Angry Nimbus |
50 | Spore AI | Drifts downwards while following player, destroyed on contact. | Fungi Spore, Spore |
51 | Plantera AI | Clings to nearby blocks, chases player, fires projectiles and spiky balls that bounce around. | Plantera |
52 | Plantera's Hook AI | Moves forward briefly before latching onto a block. | Plantera |
53 | Plantera's Tentacle AI | Acts very similar to the Plant AI, only bound to a certain entity. | Plantera |
54 | Brain of Cthulhu AI | Doesn't adhere to gravity or tile collisions, and teleports occasionally in first form. Once all Creepers are killed, it will begin rapidly teleporting and toward the player. | Brain of Cthulhu |
55 | Creeper AI | Circles around an entity, charging at player. | Creeper |
56 | Dungeon Spirit AI | Moves directly towards player, gaining momentum. Emits blue-ish particles. | Dungeon Spirit |
57 | Mourning Wood AI | Moves towards player, stops, and fires projectiles straight at the player. | Mourning Wood, Everscream |
58 | Pumpking AI | Very similar to the Head AI. Spawns with two Pumpking Scythes. | Pumpking |
59 | Pumpking Scythe AI | Very similar to the Hand AI. | Pumpking |
60 | Ice Queen AI | Flies around, shooting a barrage of ice-based projectiles. | Ice Queen |
61 | Santa-NK1 AI | Moves across the ground, stops moving, and launches many different types of projectiles. | Santa-NK1 |
62 | Elf Copter AI | Attempts to fly around the player, shooting bullets rapidly if they are in sight. | Elf Copter |
63 | Flocko AI | Flies towards the player at high speed. | Flocko |
64 | Firefly AI | Flies slowly in any direction and occasionally glows. | Firefly, Lightning Bug |
65 | Butterfly AI | Flies slowly in any direction. | Butterfly |
66 | Passive Worm AI | Moves along the ground, pause for a bit, then continue moving. Will avoid walls and moves in the other direction if it has hit one. | Worm, Truffle Worm |
67 | Snail AI | Acts similarly to the Passive Worm AI, but climbs up walls instead of moving away. | Snail, Glowing Snail |
68 | Duck AI | Swims in water, or walks on land. Will fly when a player is nearby, landing after a while. | Duck, Mallard Duck |
69 | Duke Fishron AI | Rams player multiple times before summoning entities. In second form, it flies in circles and summons entities. | Duke Fishron |
69 | Lepus AI Template:Mobile icon | Jumps similarly to King Slime, Generates entities while on the ground. | Lepus |
70 | Detonating Bubble AI | Flies through the air, chases player, disappears after a period of time. | Detonating Bubble |
71 | Sharkron AI | Follows an arcing path, dies when it touches a wall or player. | Sharkron |
72 | Bubble shield AI | Created by the Martian Officer, absorbs all damage dealt to the officer. | Bubble Shield |
73 | Tesla Turret AI | Built by Martian Engineers on the ground. | Tesla Turret |
74 | Corite AI | Travells through blocks, charges at the player. | Corite |
75 | Rider AI | Has a Rider and a mount, when one is destroyed the other keeps attacking. | Drakomire Rider, Scutlix |
76 | Martian Saucer AI | Flies around the player, fires a Death ray straight down, can only be damaged if all four turrets have been destroyed. | Martian Saucer |
77 | Moon lord Core AI | Positions behind the player, invulnerable until the Moon lord's head and hands are defeated. | Moon Lord core |
78 | Moon lord Hand AI | Files to the left and right of the player, opens and closes, fires Phantasmal Spheres, Phantasmal Eyes, and Phantasmal Bolts. Spawns True eye of Cthuluhu when health is depleted. | Moon Lord Hand |
79 | Moon lord Head AI | Flies above the player, shoots a Phantasmal Deathray and then some Phantasmal Bolts, spawns True eye of Cthuluhu when defeated. | Moon Lord Head |
80 | Martian Probe AI | Floats at a constant height, turns red and files away if the player gets near it, triggers the Martian Madness event if it gets off screen. | Martian Probe |
81 | True Eye of Cthulhu AI | Flies around the Moon lord, shoots Phantasmal Sphere, Phantasmal Deathray, Phantasmal Eye and Phantasmal Bolts at the player. | True Eye of Cthulhu |
82 | Moon Leech Clot AI | Travels from the player to the Moon Lord's head, heals part of the Moon Lord for 1000 HP if it reaches the mouth. | Moon Leech Clot |
83 | Lunatic Devote AI | Never moves, causes the Lunatic Cultist to spawn when all are killed. | Lunatic Devote |
84 | Lunatic Cultist AI | Teleports around the player, fires shadow fireballs, ice mist, fireballs and lighting orbs. Creates duplicates of itsself and summons Phantasm Dragons and Ancient Visions, triggers Lunar events when defeated. | Lunatic Cultist |
85 | Star Cell/Brain Suckler AI | Flies around the player, slowly floats towards them. Usually sticks to the player. | Brain Suckler, Star Cell, Deadly Sphere |
86 | Ancient Vision AI | Summoned if duplicate Lunatic cultist is attacked if a Phantasm Dragon is still alive. | Ancient Vision |
87 | Unknown | ||
88 | Mothron AI | Flies through blocks, lunges at the player, occasionally lays a Mothron Egg. | Mothron |
89 | Mothron Egg AI | Doesn't move, spawns Baby Mothrons after a while. | Mothron Egg |
90 | Unknown | ||
91 | Granite Elemental AI | Floats towards the player, passing through tiles if the player is far enough. Drops to the ground when hurt in Expert mode. | Granite Elemental |
92 | Unknown | ||
93 | Flying Dutchman AI | Floats about the player, is defeated when all 4 cannons are destroyed. | Flying Dutchman |
94 | Celestial Tower AI | Bobs up and down in place, can only be damaged when 100 (normal), 150 (expert) of its event enemies are defeated. Triggers moon lord to spawn when all 4 are defeated. | Solar Pillar, Vortex Pillar, Nebula Pillar, Stardust Pillar |
95 | Small Star Cell AI | Remains stationary, eventually grows into a full sized star cell. | Star Cell (small) |
96 | Flow Invader AI | Floats around the player, summons 3 orbiting minions, fires projectiles at the player. | Flow Invader |
97 | Nebula Floater AI | Floats around the player, summons 3 orbiting minions, charges at the player and fires laser while teleporting. | Nebula Floater |
98 | Unknown | ||
99 | Spastic AI | Jumps around frequently in random directions pointing to the player. | Chattering Teeth Bomb |
100 | Ancient Light AI | Ancient Light | |
101 | Ancient Doom AI | Spawned from Lunatic Cultist, fires 4 projectiles in a + shape when defeated/ summoned. | Ancient Doom |
Template:Translation project