Advertisement
Guest User

Untitled

a guest
Mar 23rd, 2018
88
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.45 KB | None | 0 0
  1. AxisAlignedBB box = player.getEntityBoundingBox().offset(0, 0.06, 0).expand(0.06, 0.06, 0.06);
  2.  
  3. if (!this.getTunia().getMinecraft().world.getCollisionBoxes(player, box.offset(0, 1, 0)).isEmpty()) return;
  4.  
  5. double stepHeight = -1;
  6.  
  7. for (AxisAlignedBB bb : this.getTunia().getMinecraft().world.getCollisionBoxes(player, box)) {
  8. if (bb.maxY > stepHeight) {
  9. stepHeight = bb.maxY;
  10. }
  11. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement