Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- AxisAlignedBB box = player.getEntityBoundingBox().offset(0, 0.06, 0).expand(0.06, 0.06, 0.06);
- if (!this.getTunia().getMinecraft().world.getCollisionBoxes(player, box.offset(0, 1, 0)).isEmpty()) return;
- double stepHeight = -1;
- for (AxisAlignedBB bb : this.getTunia().getMinecraft().world.getCollisionBoxes(player, box)) {
- if (bb.maxY > stepHeight) {
- stepHeight = bb.maxY;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement