diff --git a/src/main/kotlin/ru/dbotthepony/mc/otm/entity/Enforcer.kt b/src/main/kotlin/ru/dbotthepony/mc/otm/entity/Enforcer.kt index 5b2b6be3c..b3d29e7e3 100644 --- a/src/main/kotlin/ru/dbotthepony/mc/otm/entity/Enforcer.kt +++ b/src/main/kotlin/ru/dbotthepony/mc/otm/entity/Enforcer.kt @@ -75,11 +75,7 @@ class Enforcer(type: EntityType, level: Level) : Monster(type,level) { override fun registerGoals() { targetSelector.addGoal(1, HurtByTargetGoal(this)) - goalSelector.addGoal(2, RammingGoal(this)) - goalSelector.addGoal(2, StayNearGoal(this)) - goalSelector.addGoal(2, BlazeFireballGoal(this)) - - goalSelector.addGoal(3, NearestAttackableTargetGoal(this, LivingEntity::class.java, 10, true, true) { entity -> + targetSelector.addGoal(2, NearestAttackableTargetGoal(this, LivingEntity::class.java, 10, true, true) { entity -> entity is Player || entity is Villager || entity is AbstractIllager || @@ -87,6 +83,10 @@ class Enforcer(type: EntityType, level: Level) : Monster(type,level) { entity is AbstractSkeleton }) + goalSelector.addGoal(2, RammingGoal(this)) + goalSelector.addGoal(2, StayNearGoal(this)) + goalSelector.addGoal(2, BlazeFireballGoal(this)) + goalSelector.addGoal(7, LookAtPlayerGoal(this, Player::class.java, 8f)) }