Idō (Deprecated)

Idō (Deprecated)

2M Downloads

Clipping with Better Portals

M0DSteam opened this issue · 4 comments

commented

If you create a horizontal nether portal in the floor using Better Portals you can enter normally from the upper side, but when trying to get out of the nether from below, you just clip into the blocks from the other dimension (the overworld), making you suffocate and subsequently, die.

To Recreate This: you gotta have both Better Portals and Idō installed, create a horizontal portal in the floor and try to enter from above to the nether and then return to the overworld from below in survival (I believe that is may even happen when trying to do it with creative flying, but I haven't tested).

I didn't take any picture for now, but I'll get some if they are required.

I hope I was clear with this and it isn't confusing, thanks :)

commented

Issue should be fixed in the next update

commented

Pictures are always welcome, so send some over so I can see whats happening on your end and to allow me to recreate it when testing.

commented

instead of taking pictures I recorded a video https://streamable.com/mgka4
I hope this is useful

commented

You're using World.collidesWithAnyBlock(AABB) to check for bounding boxes, consider using World.getCollisionBoxes(Entity, AABB) instead.
BP needs to know which entity the BB are being queried for because they're different depending on which side of the portal it is standing.
Additionally getCollisionBoxes will also return solid collision boxes of entities (e.g. shulker, boat, etc.) which I believe is what you want anyway.

if(!player.isSneaking() && !underWater(player) && (player.height == 1.50F || player.height == 0.6F) && player.world.collidesWithAnyBlock(sneak))

if(player.height == 0.6f && !player.isInWater() && player.world.collidesWithAnyBlock(crawl))

if(player.isInWater() && player.isSprinting() && underWater(player) || player.world.collidesWithAnyBlock(axisalignedbb))