Jump to content

Can you set the zombie AI for it to just attack blocks and not the player?


Recommended Posts

I am trying to make a zombie that focuses on destroying blocks on your base but I can't seem to do it.

I tried removing the ApproachAndAttackTarget AI task because I thought this was the one that makes them target players but they just stopped moving then occasionally approaches me. Even with AITask-1 and 2 set to BreakBlock and DestroyArea, they just wander. 

Are there other AI Tasks other than the ones in the zombieTemplateMale class?

Link to comment
Share on other sites

On 5/9/2021 at 9:39 PM, stallionsden said:

Items.xml zombie hands. Remove entity damage lines. 

Some zombies have their own ai tasks to.

 

 

 

I tried removing their entity damage lines but they are still approaching and attacking me instead of blocks. I tried it with a horde base design like this:

 

 

I guess the AI will always go for the player as long as there is a clear path to them? Is there no way for them to just attack blocks even if there's a player within their range?

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...