repeater64
Guest
Member
Hi all,
I need a way to accurately check if there are any entity hitboxes inside of an air block. The client performs such a check when it tries to place a block - I need to precisely and efficiently recreate this check server-side. Happy to use NMS. Any ideas?
Note: The only thing I can think of at the moment is to call Entity#getBoundingBox() on any entities within a certain radius and checking if the returned hitbox collides with the block. Not sure if this is the most efficient way...
Check if entities are inside a block
Continue reading...
I need a way to accurately check if there are any entity hitboxes inside of an air block. The client performs such a check when it tries to place a block - I need to precisely and efficiently recreate this check server-side. Happy to use NMS. Any ideas?
Note: The only thing I can think of at the moment is to call Entity#getBoundingBox() on any entities within a certain radius and checking if the returned hitbox collides with the block. Not sure if this is the most efficient way...
Check if entities are inside a block
Continue reading...