From 226971acc5a31bf26bb1df718239a2460ab32843 Mon Sep 17 00:00:00 2001 From: williambl Date: Thu, 14 Jul 2022 15:49:04 +0100 Subject: [PATCH] feat: make vampiragers attack vampire hunters --- .../kotlin/com/williambl/haema/vampiremobs/VampiragerEntity.kt | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/main/kotlin/com/williambl/haema/vampiremobs/VampiragerEntity.kt b/src/main/kotlin/com/williambl/haema/vampiremobs/VampiragerEntity.kt index 7bf5183a..0c11acaf 100644 --- a/src/main/kotlin/com/williambl/haema/vampiremobs/VampiragerEntity.kt +++ b/src/main/kotlin/com/williambl/haema/vampiremobs/VampiragerEntity.kt @@ -5,6 +5,7 @@ import com.williambl.haema.ability.VampireAbility import com.williambl.haema.ability.component.dash.DashAbilityComponent import com.williambl.haema.api.VampireBurningEvents import com.williambl.haema.effect.SunlightSicknessEffect +import com.williambl.haema.hunter.VampireHunterEntity import com.williambl.haema.isVampire import com.williambl.haema.vampireComponent import net.minecraft.entity.* @@ -53,6 +54,7 @@ class VampiragerEntity(entityType: EntityType, world: Worl this.goalSelector.add(7, LookAroundGoal(this)) this.targetSelector.add(1, RevengeGoal(this)) this.targetSelector.add(2, ActiveTargetGoal(this, PlayerEntity::class.java, 10, true, false) { !it.isVampire }) + this.targetSelector.add(2, ActiveTargetGoal(this, VampireHunterEntity::class.java, true, false)) this.targetSelector.add(3, DrinkBloodActiveTargetGoal(this, LivingEntity::class.java, true)) }