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

    ben657

    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

    ItsHarry

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

    ben657

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

    JWhy

    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

    https://github.com/hwei/Minecraft-Map-Auto-Trim

    it must be in this for loop:
    https://github.com/hwei/Minecraft-Map-Auto-Trim/blob/master/src/me/hwei/mctool/MapAutoTrim.java#L148

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

    ben657

    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.

    Keir

    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