• If you have a mod, tool or prefab, please use the Resources section. Click Mods at the top of the forums.

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

adrian

New member
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?

 
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?

 
Back
Top