Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Doesn't work with >= 1.15.1 #39

Closed
FarmitzDugan opened this issue Jan 24, 2020 · 1 comment
Closed

Doesn't work with >= 1.15.1 #39

FarmitzDugan opened this issue Jan 24, 2020 · 1 comment

Comments

@FarmitzDugan
Copy link

Biome data was changed and now you can get biome data based on (x,z) see my super simple example and code comments:

package com.company;

import net.querz.nbt.mca.MCAFile;
import net.querz.nbt.mca.MCAUtil;
import java.io.IOException;

public class Main {
    public static void main(String[] args) throws IOException {
        int biome;
        MCAFile mcaFile1 = MCAUtil.readMCAFile("FD-000010/input/region/r.0.0.mca"); // 1.14.4 file
        biome = mcaFile1.getBiomeAt(72,26);
        System.out.println(biome); // should output 17 and does
        MCAFile mcaFile2 = MCAUtil.readMCAFile("FD-000011/input/region/r.0.0.mca"); // 1.15.1 file
        biome = mcaFile2.getBiomeAt(72,26);
        System.out.println(biome); //should output 3 but outputs -1
        MCAFile mcaFile3 = MCAUtil.readMCAFile("FD-000012/input/region/r.0.0.mca"); // 1.15.2 file
        biome = mcaFile3.getBiomeAt(28,53);
        System.out.println(biome); //should output 162 but outputs -1
    }
}

Get Biomes 1.15.1.zip

@Querz
Copy link
Owner

Querz commented Apr 27, 2020

Fixed this in the latest release (5.2).
They added support for vertical biomes in 1.15. Biomes are now stored in a 1024 long int array containing the biome of a 4x4x4 section of the chunk. This reduces the resolution of the biomes.

The F3-Screen in the game also doesn't always show the actual biome saved in the region files. It somehow blurs the edges of biomes. I explain this here using MCA Selector.

@Querz Querz closed this as completed Apr 27, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants