Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix Link Portal #2

Closed
Euphillya opened this issue Apr 2, 2024 · 1 comment
Closed

Fix Link Portal #2

Euphillya opened this issue Apr 2, 2024 · 1 comment

Comments

@Euphillya
Copy link
Contributor

The portals on Folia are disabled, that's a fact. However, we can know when a player will arrive in a portal with this event: https://jd.papermc.io/paper/1.20/io/papermc/paper/event/entity/EntityInsideBlockEvent.html
This works very well as a solution, because I experimented with it on my Skyblock plugin for Folia.

Example with my code : Euphillya/Skyllia@f4646b1#diff-c59f1510ca874602d06e351e9b35637a7f553f9ad9eb1e07eff0687aa048ce02

@Euphillya
Copy link
Contributor Author

Euphillya commented Apr 2, 2024

Furthermore, to make it even better, since 1.20.3, Mojang has added in gamerule: PLAYERS_NETHER_PORTAL_CREATIVE_DELAY and PLAYERS_NETHER_PORTAL_DEFAULT_DELAY, it would be enough to change its value to a very high value, and put a teleportation delay like in Vanilla. We could definitely resimulate the teleportation of disabled portals.

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

No branches or pull requests

2 participants