Advertisement
Guest User

Untitled

a guest
Oct 10th, 2016
78
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.29 KB | None | 0 0
  1. public static boolean inRange(Entity entity)
  2.     {
  3.         AxisAlignedBB range = new AxisAlignedBB(16, 16, 16, -16, -16, -16);
  4.        
  5.         for(BlockPos pos : scarecrowLocations)
  6.         {
  7.             if(entity.getCollisionBoundingBox().intersectsWith(range))
  8.             {
  9.                 return true;
  10.             }
  11.             else return false;
  12.         }
  13.     }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement