Hello! I am currently creating a plugin with a friend and it teleports a player to a random set of coordinates. How would I check if the chunk within the coordinates is corrupt? Thanks in advance!
Corrupted chunk checking? I'm not sure if that's possible... I'm pretty sure you can check whether or not a chunk is loaded, I just can't remember off the top of my head. If I figure it out I'll update this post.
mind if i ask how does a corrupted chunk looks? i suspect it is just plain void, so you will just check if pos is safe to spawn
It differs widely. Sometimes corrupted chunks just get converted to normal generator chunks, sometimes they crash you when getting near one, but for none of those I think there's a way to check for those.
On my server, most of them look like this : but you can also find the full void chunk, but sorry I coudn't find one.
Ohhh indifference chunks, no idea you could check with a forumlar or so on but there will be a slight chance that someone just build a structure that send a false trigger
but for the full void chunk, you just need to check for a place player can land ex a block and that should do the trick
Corrupted chunks don't look like anything, PocketMine will generate a new one to replace the corrupted one.
But most of them aren't critical, the player does not crash, I mean, when I moove into the chunks I just showed you, I don't crash. So this isn't much of a problem (well this type of corrupted chunks)
PC imported maps sometimes do happen to have corrupted chunks which crash you when getting near them.
Corrupted chunks have lines of grass blocks that never end, it's like a chunk with void/grass stripes.
I'm not sure of the "Really far" because I find some of them at only like 500 blocks of the spawn sometimes.
You don't crash anymore, MCPE 15.0 fixed the unknown metadata bug in the blocks which caused a crash.
So I advise you to check if the player can land or not and if there is a big variation of the z axis behind (pictures up) (I'm not sure if you can check the variation though, I just started coding soooo if you can, do it)