Skip to content

Implement Nether Portals#1122

Open
xNatsuri wants to merge 5 commits intodf-mc:masterfrom
xNatsuri:feature/portal
Open

Implement Nether Portals#1122
xNatsuri wants to merge 5 commits intodf-mc:masterfrom
xNatsuri:feature/portal

Conversation

@xNatsuri
Copy link
Contributor

@xNatsuri xNatsuri commented Oct 1, 2025

This PR is built off of #426

Comment on lines +40 to +42
if n, ok := portal.NetherPortalFromPos(tx, pos); ok && (!n.Framed() || !n.Activated()) {
n.Deactivate()
}
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is it worth adding a slight optimization to only run these checks if the neighbour is on the same axis as the portal is facing?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Probably a good idea

Comment on lines +261 to +266
if p, ok := b.(interface {
Place(pos cube.Pos, w *World) bool
}); ok && !p.Place(pos, w) {
// Don't place the block.
return
}
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is there anything that's using this?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yes flint and steel

@xNatsuri xNatsuri closed this Dec 7, 2025
@xNatsuri xNatsuri reopened this Feb 13, 2026
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.

3 participants