Read chunks out of the region files

Discussion in 'Programming' started by JacobGunther12, Feb 26, 2020.

  1. I want to program a top-down Minecraft world renderer that allows the user to define a rectangular region that they want to render, and it outputs an top view of all the blocks in the dimensions they specified. I want users to select the level.dat file of the world, and it reads the region files out of the subfolder. I've been looking through the Spigot, Bukkit and Minecraft API but I can't find any utility that will take an input (like a byte array of the contents of the region file) and give out a Region class that I can do something with. Am I looking in the wrong place or is there just no built-in API for that, that is exposed?
     
  2. This is all in NMS. Not sure where. Bukkit only provides API methods that call the NMS methods, it doesn’t do anything itself.
     
  3. Where in the NMS are these methods? As I said, I already looked through the Minecraft server API and didn't see it.
     
    • Like Like x 1
    • Agree Agree x 1
  4. You should have a look at the Minutor project. I think it does exactly what you want.
    https://github.com/mrkite/minutor