Search in sources :

Example 1 with ThrowItemGoal

use of mod.azure.doom.entity.ai.goal.ThrowItemGoal in project MCDoom by AzureDoom.

the class PossessedScientistEntity method initGoals.

@Override
protected void initGoals() {
    this.goalSelector.add(8, new LookAtEntityGoal(this, PlayerEntity.class, 8.0F));
    this.goalSelector.add(8, new LookAroundGoal(this));
    this.goalSelector.add(5, new WanderAroundFarGoal(this, 0.8D));
    this.goalSelector.add(2, new ThrowItemGoal(this, 1.0D));
    this.targetSelector.add(2, new ActiveTargetGoal<>(this, PlayerEntity.class, true));
    this.targetSelector.add(2, new ActiveTargetGoal<>(this, MerchantEntity.class, true));
    this.targetSelector.add(2, new RevengeGoal(this).setGroupRevenge());
}
Also used : ThrowItemGoal(mod.azure.doom.entity.ai.goal.ThrowItemGoal) RevengeGoal(net.minecraft.entity.ai.goal.RevengeGoal) WanderAroundFarGoal(net.minecraft.entity.ai.goal.WanderAroundFarGoal) MerchantEntity(net.minecraft.entity.passive.MerchantEntity) LookAroundGoal(net.minecraft.entity.ai.goal.LookAroundGoal) LookAtEntityGoal(net.minecraft.entity.ai.goal.LookAtEntityGoal) PlayerEntity(net.minecraft.entity.player.PlayerEntity)

Aggregations

ThrowItemGoal (mod.azure.doom.entity.ai.goal.ThrowItemGoal)1 LookAroundGoal (net.minecraft.entity.ai.goal.LookAroundGoal)1 LookAtEntityGoal (net.minecraft.entity.ai.goal.LookAtEntityGoal)1 RevengeGoal (net.minecraft.entity.ai.goal.RevengeGoal)1 WanderAroundFarGoal (net.minecraft.entity.ai.goal.WanderAroundFarGoal)1 MerchantEntity (net.minecraft.entity.passive.MerchantEntity)1 PlayerEntity (net.minecraft.entity.player.PlayerEntity)1