Search in sources :

Example 1 with EntityAIRatGnawing

use of com.lying.variousoddities.entity.ai.hostile.EntityAIRatGnawing in project VariousOddities by Lyinginbedmon.

the class AbstractRat method registerGoals.

protected void registerGoals() {
    this.goalSelector.addGoal(3, new EntityAIRatStand(this));
    this.goalSelector.addGoal(5, new MeleeAttackGoal(this, 1.0D, true));
    this.goalSelector.addGoal(6, new WaterAvoidingRandomWalkingGoal(this, 1.0D));
    this.goalSelector.addGoal(7, new LookAtGoal(this, PlayerEntity.class, 6.0F));
    this.goalSelector.addGoal(8, new LookRandomlyGoal(this));
    if (ConfigVO.MOBS.aiSettings.isOddityAIEnabled(getType()))
        this.goalSelector.addGoal(3, new EntityAIRatGnawing(this, 6, 100));
}
Also used : EntityAIRatStand(com.lying.variousoddities.entity.ai.hostile.EntityAIRatStand) LookAtGoal(net.minecraft.entity.ai.goal.LookAtGoal) LookRandomlyGoal(net.minecraft.entity.ai.goal.LookRandomlyGoal) MeleeAttackGoal(net.minecraft.entity.ai.goal.MeleeAttackGoal) WaterAvoidingRandomWalkingGoal(net.minecraft.entity.ai.goal.WaterAvoidingRandomWalkingGoal) EntityAIRatGnawing(com.lying.variousoddities.entity.ai.hostile.EntityAIRatGnawing) PlayerEntity(net.minecraft.entity.player.PlayerEntity)

Aggregations

EntityAIRatGnawing (com.lying.variousoddities.entity.ai.hostile.EntityAIRatGnawing)1 EntityAIRatStand (com.lying.variousoddities.entity.ai.hostile.EntityAIRatStand)1 LookAtGoal (net.minecraft.entity.ai.goal.LookAtGoal)1 LookRandomlyGoal (net.minecraft.entity.ai.goal.LookRandomlyGoal)1 MeleeAttackGoal (net.minecraft.entity.ai.goal.MeleeAttackGoal)1 WaterAvoidingRandomWalkingGoal (net.minecraft.entity.ai.goal.WaterAvoidingRandomWalkingGoal)1 PlayerEntity (net.minecraft.entity.player.PlayerEntity)1