13 lines
296 B
Rust
13 lines
296 B
Rust
use crate::entity::ai::goal::{look_at_entity::LookAtEntityGoal, target_goal::TargetGoal};
|
|
|
|
use super::MobEntity;
|
|
|
|
pub struct Zombie;
|
|
|
|
impl Zombie {
|
|
pub async fn make(mob: &MobEntity) {
|
|
mob.goal(LookAtEntityGoal::new(8.0)).await;
|
|
mob.goal(TargetGoal::new(16.0)).await;
|
|
}
|
|
}
|