-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathEntityCrawler.java
29 lines (24 loc) · 1.13 KB
/
EntityCrawler.java
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
package freeradicalx.zombies;
import net.minecraft.entity.ai.EntityAIAttackOnCollide;
import net.minecraft.entity.ai.EntityAIHurtByTarget;
import net.minecraft.entity.ai.EntityAILookIdle;
import net.minecraft.entity.ai.EntityAINearestAttackableTarget;
import net.minecraft.entity.ai.EntityAISwimming;
import net.minecraft.entity.ai.EntityAIWander;
import net.minecraft.entity.ai.EntityAIWatchClosest;
import net.minecraft.entity.player.EntityPlayer;
import net.minecraft.world.World;
public class EntityCrawler extends EntityModZombie{
public static String zombieType = "crawler";
public EntityCrawler(World par1World) {
super(par1World);
tasks.addTask(1, new EntityAISwimming(this));
tasks.addTask(2, new AIGrabAttack(this));
tasks.addTask(3, new EntityAIAttackOnCollide(this, 1F, false));
tasks.addTask(4, new EntityAIWander(this, 0.8F));
tasks.addTask(5, new EntityAIWatchClosest(this, EntityPlayer.class, 8F));
tasks.addTask(5, new EntityAILookIdle(this));
targetTasks.addTask(1, new EntityAIHurtByTarget(this, false));
targetTasks.addTask(2, new EntityAINearestAttackableTarget(this, EntityPlayer.class, 0, true));
}
}