use of net.minecraft.world.entity.ai.goal.RandomStrollGoal in project Tropicraft by Tropicraft.
the class AshenEntity method registerGoals.
@Override
protected void registerGoals() {
goalSelector.addGoal(1, new FloatGoal(this));
goalSelector.addGoal(2, new AIAshenChaseAndPickupLostMask(this, 1.0D));
goalSelector.addGoal(3, new AIAshenShootDart(this));
goalSelector.addGoal(4, new RandomStrollGoal(this, 1.0D));
goalSelector.addGoal(5, new EntityAIMeleeAndRangedAttack(this, 1.0D, 20 * 2, 20 * 10, 5F));
goalSelector.addGoal(6, new LookAtPlayerGoal(this, Player.class, 8.0F));
goalSelector.addGoal(7, new RandomLookAroundGoal(this));
targetSelector.addGoal(1, new HurtByTargetGoal(this));
// TODO: Change predicate in last parameter below?
targetSelector.addGoal(2, new NearestAttackableTargetGoal<>(this, Player.class, true));
targetSelector.addGoal(3, new NearestAttackableTargetGoal<>(this, EntityKoaBase.class, true));
}
use of net.minecraft.world.entity.ai.goal.RandomStrollGoal in project Tropicraft by Tropicraft.
the class VMonkeyEntity method registerGoals.
@Override
protected void registerGoals() {
super.registerGoals();
goalSelector.addGoal(1, new FloatGoal(this));
goalSelector.addGoal(3, new MonkeyFollowNearestPinaColadaHolderGoal(this, 1.0D, 2.0F, 10.0F));
goalSelector.addGoal(3, new LeapAtTargetGoal(this, 0.4F));
goalSelector.addGoal(3, new MonkeyPickUpPinaColadaGoal(this));
goalSelector.addGoal(2, new MonkeyStealDrinkGoal(this));
goalSelector.addGoal(2, new MonkeySitAndDrinkGoal(this));
goalSelector.addGoal(2, new MonkeyAngryThrowGoal(this));
goalSelector.addGoal(4, new MonkeySitInChairGoal(this));
goalSelector.addGoal(4, new SitWhenOrderedToGoal(this));
goalSelector.addGoal(6, new MeleeAttackGoal(this, 1.0D, true));
goalSelector.addGoal(7, new FollowOwnerGoal(this, 1.0D, 10.0F, 2.0F, false));
goalSelector.addGoal(8, new RandomStrollGoal(this, 1.0D));
goalSelector.addGoal(9, new LookAtPlayerGoal(this, Player.class, 8.0F));
goalSelector.addGoal(9, new RandomLookAroundGoal(this));
targetSelector.addGoal(1, new OwnerHurtByTargetGoal(this));
targetSelector.addGoal(2, new OwnerHurtTargetGoal(this));
targetSelector.addGoal(3, new HurtByTargetGoal(this));
}
use of net.minecraft.world.entity.ai.goal.RandomStrollGoal in project Tropicraft by Tropicraft.
the class BasiliskLizardEntity method registerGoals.
@Override
protected void registerGoals() {
this.goalSelector.addGoal(0, new PanicGoal(this, 1.25));
this.goalSelector.addGoal(1, new RandomStrollGoal(this, 1.0));
this.goalSelector.addGoal(2, new LookAtPlayerGoal(this, Player.class, 8.0F));
this.goalSelector.addGoal(3, new RandomLookAroundGoal(this));
}
use of net.minecraft.world.entity.ai.goal.RandomStrollGoal in project Tropicraft by Tropicraft.
the class FiddlerCrabEntity method registerGoals.
@Override
protected void registerGoals() {
this.goalSelector.addGoal(0, new PanicGoal(this, 1.25));
this.goalSelector.addGoal(1, new AvoidEntityGoal<>(this, Player.class, 6.0F, 1.0, 1.2));
this.goalSelector.addGoal(2, new RandomStrollGoal(this, 1.0));
this.goalSelector.addGoal(3, new LookAtPlayerGoal(this, Player.class, 8.0F));
this.goalSelector.addGoal(4, new RandomLookAroundGoal(this));
}
Aggregations