1.15.2 Find block on seed without generating the world

Discussion in 'Spigot Plugin Development' started by Miniaturization, Feb 28, 2020.

  1. Hey, I was wondering if it was possible in Spigot to find the block material type, from a seed & location without actually generating the world?

    Essentially I would want to create some kind of method I could use like this

    Code (Text):

    public Material getType(long seed, int x, int y, int z) {
        // math stuff
    }
     
    I was also wondering if I could create a method which would let me find the highest Y from a seed, x and y
    Something that would look like this:

    Code (Text):

    public int getHighestY(long seed, int x, int z) {
        // math stuff
    }

    I was looking through some class files for Spigot, but I couldn't find anything
     
  2. I was wondering if I could use the World object, generate a world with default settings then generate a specific chunk then check the coordinates? I want the fastest way possible, thanks!
     
  3. What is the end goal of this? Are you trying to simply replace something?
     
  4. I'm looking to generate random seeds, check to see if certain conditions are met (e.g. a block in a certain location is correct), save that seed if it meets all the conditions and then delete the world.