-
Notifications
You must be signed in to change notification settings - Fork 0
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
Safe Spawning #1
Comments
Now having more free time to talk about this. So, store player's location along with the game mode when spectating. As for defining safe: What if lava is making its way down? :3 |
That’s why you check for lava above/below for, say, 10 blocks? But “safe” is a hard definition, what do you think of the concept of spiraling to find the closest possible location?
|
Spiraling sounds fun, but predictable. For fun I'd like to change direction of spiraling ^_^ |
It’s the golden spiral… you could start it in any direction ^^.
|
Pfffffft |
Make the safe area slightly larger, teleport the player to the position they are going to spawn in, still in spectator mode, Limit their movement to that safe area, and let them exit it either by clicking or interacting or something? |
So we all know people are going to be a******* and place blocks where someone spectates. Therefore, I propose the following algorithm for determining a "safe spawn":
safe(pos) =
(a) no lava or harmful liquid above or below the position without a separating block.
(b) no blocks that could suffocate or trap the player (spider webs?)
(c) a player could AFK there safely (without drowning).
This has the benefit of returning them as close to their original location as possible while progressively broadening the search.
The text was updated successfully, but these errors were encountered: