use of de.Keyle.MyPet.compat.v1_18_R1.entity.ai.attack.MeleeAttack in project MyPet by xXKeyleXx.
the class EntityMyPet method setPathfinder.
public void setPathfinder() {
petPathfinderSelector.addGoal("Float", new Float(this));
petPathfinderSelector.addGoal("Sit", sitPathfinder);
petPathfinderSelector.addGoal("Sprint", new Sprint(this, 0.25F));
petPathfinderSelector.addGoal("RangedTarget", new RangedAttack(this, -0.1F, 12.0F));
petPathfinderSelector.addGoal("MeleeAttack", new MeleeAttack(this, 0.1F, 1.5, 20));
petPathfinderSelector.addGoal("Control", new Control(this, 0.1F));
petPathfinderSelector.addGoal("FollowOwner", new FollowOwner(this, Configuration.Misc.MYPET_FOLLOW_START_DISTANCE, 2.0F, 16F));
petPathfinderSelector.addGoal("LookAtPlayer", new LookAtPlayer(this, 8.0F));
petPathfinderSelector.addGoal("RandomLockaround", new RandomLookaround(this));
petTargetSelector.addGoal("OwnerHurtByTarget", new OwnerHurtByTarget(this));
petTargetSelector.addGoal("OwnerHurtTarget", new OwnerHurtTarget(this));
petTargetSelector.addGoal("HurtByTarget", new HurtByTarget(this));
petTargetSelector.addGoal("ControlTarget", new ControlTarget(this, 1));
petTargetSelector.addGoal("AggressiveTarget", new BehaviorAggressiveTarget(this, 15));
petTargetSelector.addGoal("FarmTarget", new BehaviorFarmTarget(this, 15));
petTargetSelector.addGoal("DuelTarget", new BehaviorDuelTarget(this, 5));
}
use of de.Keyle.MyPet.compat.v1_18_R1.entity.ai.attack.MeleeAttack in project MyPet by xXKeyleXx.
the class EntityMyGhast method setPathfinder.
public void setPathfinder() {
super.setPathfinder();
petPathfinderSelector.replaceGoal("MeleeAttack", new MeleeAttack(this, 0.1F, 5.5, 20));
}
use of de.Keyle.MyPet.compat.v1_18_R1.entity.ai.attack.MeleeAttack in project MyPet by xXKeyleXx.
the class EntityMyMagmaCube method setPathfinder.
public void setPathfinder() {
super.setPathfinder();
petPathfinderSelector.replaceGoal("MeleeAttack", new MeleeAttack(this, 0.1F, 3 + (getMyPet().getSize() * 0.51), 20));
}
use of de.Keyle.MyPet.compat.v1_18_R1.entity.ai.attack.MeleeAttack in project MyPet by xXKeyleXx.
the class EntityMyMagmaCube method updateVisuals.
@Override
public void updateVisuals() {
int size = Math.max(1, getMyPet().getSize());
this.datawatcher.watch(16, new Byte((byte) size));
EntitySize es = EntityMyMagmaCube.class.getAnnotation(EntitySize.class);
if (es != null) {
this.a(es.width() * size, es.width() * size);
}
if (petPathfinderSelector != null && petPathfinderSelector.hasGoal("MeleeAttack")) {
petPathfinderSelector.replaceGoal("MeleeAttack", new MeleeAttack(this, 0.1F, 3 + (getMyPet().getSize() * 0.51), 20));
}
}
use of de.Keyle.MyPet.compat.v1_18_R1.entity.ai.attack.MeleeAttack in project MyPet by xXKeyleXx.
the class EntityMySlime method updateVisuals.
@Override
public void updateVisuals() {
int size = Math.max(1, getMyPet().getSize());
this.datawatcher.watch(16, new Byte((byte) size));
EntitySize es = EntityMySlime.class.getAnnotation(EntitySize.class);
if (es != null) {
this.a(es.width() * size, es.width() * size);
}
if (petPathfinderSelector != null && petPathfinderSelector.hasGoal("MeleeAttack")) {
petPathfinderSelector.replaceGoal("MeleeAttack", new MeleeAttack(this, 0.1F, 3 + (getMyPet().getSize() * 0.51), 20));
}
}
Aggregations