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