Posted April 19, 201312 yr Hello, I'm new to modding and I'm kinda stuck on making my mob float 1.8 blocks above ground. It works very well, but i just can't get him to the right height. I tested a few things and it worked fine, except if the mob is above glass or snow or something. So i wanted to ask, if someone has an idea on how to make the mob being always 1.8 blocks above ground without getting to high on snow and not getting to low on glass.
April 19, 201312 yr Author Hello, I'm new to modding and I'm kinda stuck on making my mob float 1.8 blocks above ground. It works very well, but i just can't get him to the right height. I tested a few things and it worked fine, except if the mob is above glass or snow or something. So i wanted to ask, if someone has an idea on how to make the mob being always 1.8 blocks above ground without getting to high on snow and not getting to low on glass.
April 20, 201312 yr Author I made a great progress on my floating code, the only thing i need now is to check if the block underneath is collideable. e.g. flowers don't block the players movement, so as snow doesn't change the players height. Has anyone an idea on how to check that?
April 20, 201312 yr Author I made a great progress on my floating code, the only thing i need now is to check if the block underneath is collideable. e.g. flowers don't block the players movement, so as snow doesn't change the players height. Has anyone an idea on how to check that?
April 21, 201312 yr "no collision" occurs when a block is returning null from getCollisionBoundingBoxFromPool, but I'm not so sure about the snow . mnn.getNativeLang() != English If I helped you please click on the "thank you" button.
April 21, 201312 yr "no collision" occurs when a block is returning null from getCollisionBoundingBoxFromPool, but I'm not so sure about the snow . mnn.getNativeLang() != English If I helped you please click on the "thank you" button.
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.