Special AI Mobs not respecting Chunk protection
Divineaspect opened this issue ยท 5 comments
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.
@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.
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.
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.