Advertisement
Guest User

Untitled

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