Slime AI

Slime AI is an AI followed by every Slime in the game (with the exception of King Slime and Gastropods), as well as the Hoppin' Jack and Grasshoppers.

Behavior
Slimes exhibit the following behavior:


 * Chase the player by jumping towards them
 * Float on water
 * Jump up to higher Wood Platforms, but can not drop down them
 * Take damage from Lava, except the Lava Slime
 * Suffer knockback

Exceptions
Slimes will not chase the player above ground at daytime, not even after hitting the player. However, if nighttime sets in or the player lands in a hit with any weapon, the chasing behavior sets in. In all versions except, Grasshoppers will never chase the player, even after being attacked.

Slimes will also behave as if they are above ground and it is daytime when the player has Royal Gel equipped. They will even stay passive after being hit while Royal Gel is equipped.

Strategies
Slimes jiggle up and down slightly, which becomes faster when they are about to jump. It is a good idea to attack just after they land, as you'll have a few seconds to retreat before they jump again. Since Slimes have a limited jump height, get to a place where they can't reach you. The height depends on the type of slime it is.

History
IA Slime 史莱姆 AI