Special AI

Special AI

7M Downloads

Special AI Mobs not respecting Chunk protection

Divineaspect opened this issue ยท 5 comments

commented

I'm not sure how this actually pertains to SAI - what is chunk protection? This mod does not cause mobs to do anything that vanilla mobs can't already do in terms of chunks/blocks and does follow the mob griefing game rule.

commented

@FatherToast I am lsitening to BLockEvents, and it seems like you arent firing them notably (BlockEvent.BreakEvent, BlockEvent.EntityPlaceEvent, aswell as bucket fill & explosions events) but I think tjust the block place & break events are the most important since that will ensure mod compatibility.

commented

I am firing LivingDestroyBlockEvent (along with a few others) to test if blocks can be broken. BlockEvent.BreakEvent is fired for players only, so it won't catch mobs trying to break blocks.

commented

LivingDestroyBlockEvent is not part of the BLockEvents ?

commented

No, it is a subclass of the LivingEvent and in vanilla it is used for the wither, ender dragon, and zombies to check if they are allowed to break blocks/doors. I suspect if you are not checking this event, these vanilla mobs will be able to break blocks in protected chunks as well.