Posted August 31, 20178 yr In previous versions of Forge, I used this code to check if a person was standing on the edge of a block if (!mc.thePlayer.worldObj.getCollidingBoundingBoxes(mc.thePlayer, mc.thePlayer.getEntityBoundingBox().offset(mc.thePlayer.motionX, -1, mc.thePlayer.motionZ)).isEmpty()) return; How would I do that in 1.12? As far as I've been trying to get the worldObj, it doesn't seem that the normal world has getCollidingBoundingBoxes method included.
August 31, 20178 yr Use World#getCollisionBoxes(Entity, AxisAlignedBB) to get all Block and Entity collision bounding boxes that intersect with the specified AABB. Use World#collidesWithAnyBlock to check if the AABB intersects any Block collision bounding boxes. Please don't PM me to ask for help. Asking your question in a public thread preserves it for people who are having the same problem in the future.
August 31, 20178 yr Author 43 minutes ago, Choonster said: Use World#getCollisionBoxes(Entity, AxisAlignedBB) to get all Block and Entity collision bounding boxes that intersect with the specified AABB. Use World#collidesWithAnyBlock to check if the AABB intersects any Block collision bounding boxes. Thank you
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.