Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public boolean inRange(Entity entity)
- {
- for(BlockPos pos : scarecrowLocations)
- {
- if(entity.getCollisionBoundingBox().intersectsWith(new AxisAlignedBB(pos.getX(),pos.getY(),pos.getZ(),pos.getX(),pos.getY(),pos.getZ()).expandXyz(16)))
- {
- return true;
- }
- }
- return false;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement