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

Make World->getSafeSpawn() more intelligent #6662

Open
dktapps opened this issue Mar 23, 2025 · 0 comments
Open

Make World->getSafeSpawn() more intelligent #6662

dktapps opened this issue Mar 23, 2025 · 0 comments
Labels
Category: Gameplay Related to Minecraft gameplay experience Type: Enhancement Contributes features or other improvements to PocketMine-MP

Comments

@dktapps
Copy link
Member

dktapps commented Mar 23, 2025

Problem description

World->getSafeSpawn() will currently not consider a 2-block space between two slabs like so:

Top half slab
Air
Bottom half slab

Back in the day, this enabled the creation of magic respawn elevators, where a player would stand on top of a lower slab with an upper slab in the next block up but one, which would cause the server to respawn the player in a higher position. I used this to escape caves while lost.

Proposed solution

World->getSafeSpawn() should consider block collision boxes and determine whether there is at least 1.8m of vertical space available at a chosen position, rather than searching for 2 air blocks.

Alternative solutions or workarounds

No response

@dktapps dktapps added Category: Gameplay Related to Minecraft gameplay experience Type: Enhancement Contributes features or other improvements to PocketMine-MP labels Mar 23, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Category: Gameplay Related to Minecraft gameplay experience Type: Enhancement Contributes features or other improvements to PocketMine-MP
Projects
None yet
Development

No branches or pull requests

1 participant