Skip to content

Improvements to Portal interactions with Sublevels#874

Draft
WeatheredCopperLantern wants to merge 4 commits into
ryanhcode:mainfrom
WeatheredCopperLantern:portal_improvements
Draft

Improvements to Portal interactions with Sublevels#874
WeatheredCopperLantern wants to merge 4 commits into
ryanhcode:mainfrom
WeatheredCopperLantern:portal_improvements

Conversation

@WeatheredCopperLantern
Copy link
Copy Markdown

Tries to make portals play nicer with Sublevels.

WIP, but feel free to check commits and shout at me if I do something stupid or reinvent the wheel.

…check the entities position or bounding box in .entityInside. For example the EndPortal.

Also replace the transformInverse translation to get the local bounds, this fixes being able to trigger .entityInside through corners.
For example entering a Nether portal if standing where a corner block would be.
@ryanhcode ryanhcode self-assigned this May 13, 2026
… sublevels.

- Patch EndPortalBlock.entityInside to work properly on rotated sublevels.
- Allow NetherPortals on Sublevels to be choosen as exit targets
@WeatheredCopperLantern
Copy link
Copy Markdown
Author

Only took me 10 Days, but I finally have something to show.
The code works, but I don't consider it production ready and want to get some executive input on some things.

  1. My change to EntityMixin.sable$checkInsideBlocks
    The code is based on how SubLevelEntityCollision does collision in collide, but I could probably still use some look over from somebody that actually knows how to do physics.
    Same goes for this
  2. this mess
    I need to preload the sublevels that could be possible destinations for a portal transition.
    And while I have gotten it to work and can still cleanup the code a bit, by not doing this check and just loading all sublevels, because they will be loaded after the transition anyways. I first want to make sure, that this would even have a chance to get merged, because this obviously isn't when and how sublevels are normally intended to be loaded

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants