Search in sources :

Example 1 with RangedAttackGoal

use of net.minecraft.world.entity.ai.goal.RangedAttackGoal in project Tropicraft by Tropicraft.

the class TreeFrogEntity method registerGoals.

@Override
public void registerGoals() {
    goalSelector.addGoal(0, new FloatGoal(this));
    goalSelector.addGoal(1, new RangedAttackGoal(this, 1.0D, 60, 10.0F));
    goalSelector.addGoal(2, new WaterAvoidingRandomStrollGoal(this, 1.0D));
}
Also used : WaterAvoidingRandomStrollGoal(net.minecraft.world.entity.ai.goal.WaterAvoidingRandomStrollGoal) FloatGoal(net.minecraft.world.entity.ai.goal.FloatGoal) RangedAttackGoal(net.minecraft.world.entity.ai.goal.RangedAttackGoal)

Aggregations

FloatGoal (net.minecraft.world.entity.ai.goal.FloatGoal)1 RangedAttackGoal (net.minecraft.world.entity.ai.goal.RangedAttackGoal)1 WaterAvoidingRandomStrollGoal (net.minecraft.world.entity.ai.goal.WaterAvoidingRandomStrollGoal)1