Respawn position search algorithm #833
Labels
No Label
#P1 CRITICAL
#P2: HIGH
#P3: elevated
#P4 priority: medium
#P6: low
#Review
annoying
API
bug
code quality
combat
commands
compatibility
configurability
contribution inside
controls
core feature
creative mode
delayed for engine release
documentation
duplicate
enhancement
environment
feature request
gameplay
graphics
ground content conflict
GUI/HUD
help wanted
incomplete feature
invalid / won't fix
items
looking for contributor
mapgen
meta
mineclone2+
Minecraft >= 1.13
Minecraft >= 1.17
missing feature
mobile
mobs
mod support
model needed
multiplayer
Needs adoption
needs discussion
needs engine change
needs more information
needs research
nodes
non-mob entities
performance
player
possible close
redstone
release notes
schematics
Skyblock
sounds
Testing / Retest
tools
translation
unconfirmed
mcl5
mcla
Media missing
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: VoxeLibre/VoxeLibre#833
Loading…
Reference in New Issue
No description provided.
Delete Branch "%!s(<nil>)"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
I close Wuzzy/MineClone2#785 and open this because it's a different problem.
Closing Wuzzy/MineClone2#785 I added a search algorithm according official MC wiki (more or less) but got a feedback from @anon5 that it can teleport him on the roof of the house when the bed obscured and that he'd prefer MC's algorithm instead.
So I started MC 1.16.2 and tested its algorithm: https://youtu.be/FcQhLpOUEH0 - in MC 1.16.2 and it's very simple and doesn't correspond the wiki at all!
if there's a free node next to the bed at the same altitude as the bed - player respawns at this point;
if there's no free node near the bed but the bed has 2 nodes above itself - player respawns at this point;
otherwise, player's personal respawn point deletes from memory and the player goes to the world respawn point.
And that's all! I wonder who ever edit this wiki :)
Also I found kinda a bug (or maybe not but!): in 1.16.2 when I sleep in the bed which has only one additional free node above it - it looks very odd when I wake up, in the video above it's from 5:52 (when I find the key to change the view).
Not as hard to copy... Can't imagine a trigger to restore vertical character orientation when there would be enough space for it but not a problem to check periodically and stop immediately on becoming vertical. I just think it's odd and creepy. Not sure whether it could be desired and preferred behavior for MCL2. Guys what do you think?
So a day passed and I still don't have any idea better and don't want to keep it open anymore :)
Change the algorithm in favor of @anon5 :
fa97aca76a
To be honest I don't like it so much. See the screenshot - this causes respawn blocking and you will appear at the world respawn, because some nodes around the bed occupied while the others digged out.
But at least it is simple, fast and very similar to MC. So not as bad :)
P. S. One difference: if you undig the bed it will work again.