Checking if a block is natural?

Discussion in 'Plugin Development' started by ben657, Jan 21, 2012.

Thread Status:
Not open for further replies.
  1. Offline


    Hello, in the plugin i'm programming i've come across a need to know whether a block is natural or not, is there a simple way to do this? my first guess is no, not without logging absolutely everything, but still, anybody done it or know a way? :)
  2. Offline


    I believe there's no such method in the source itself
  3. Offline


    ItsHarry yeah I guessed that much, but I was wondering if anyone has an idea how it could be done.
  4. Offline


    I'm sure that McMap Auto Trim has something like that. It checks, whether the blocks in the world are the same, when its generated with the worldseed. If there are chunks generated with no changes to the seeds default, it deletes those chunks

    it must be in this for loop:

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
    Last edited by a moderator: May 23, 2016
  5. Offline


    That's along the right lines, but it runs as a separate piece of software rather than a plugin, so it's not quite right, although I think I've come up with an idea :)
  6. You could maybe do integration with HawkEye, LogBlock, BigBrother and if the block doesn't exist in the logs then it will class it as a natural block.


    EDIT: I know HawkEye and LogBlock have an API you can use to get the logs.
Thread Status:
Not open for further replies.

Share This Page