Rearrange goals
This commit is contained in:
parent
55688594b9
commit
6888a8c7bc
@ -73,7 +73,12 @@ class Enforcer(type: EntityType<Enforcer>, level: Level) : Monster(type,level) {
|
||||
}
|
||||
|
||||
override fun registerGoals() {
|
||||
goalSelector.addGoal(7, LookAtPlayerGoal(this, Player::class.java, 8f))
|
||||
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 ->
|
||||
entity is Player ||
|
||||
entity is Villager ||
|
||||
@ -82,11 +87,7 @@ class Enforcer(type: EntityType<Enforcer>, level: Level) : Monster(type,level) {
|
||||
entity is AbstractSkeleton
|
||||
})
|
||||
|
||||
goalSelector.addGoal(2, RammingGoal(this))
|
||||
goalSelector.addGoal(2, StayNearGoal(this))
|
||||
goalSelector.addGoal(2, BlazeFireballGoal(this))
|
||||
|
||||
targetSelector.addGoal(1, HurtByTargetGoal(this))
|
||||
goalSelector.addGoal(7, LookAtPlayerGoal(this, Player::class.java, 8f))
|
||||
}
|
||||
|
||||
override fun createNavigation(level: Level): PathNavigation = GroundPathNavigation(this, level)
|
||||
|
Loading…
Reference in New Issue
Block a user