Jump to content

Recommended Posts

Posted

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.

Posted

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.

Posted

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?

Posted

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?

Posted

"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.

Posted

"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.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Announcements



×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.