Compatibility of "GTOres" and "Astrominer" from "Galacticraft 3". Need help with NBT

It is not abut the inconvenience, its simply because I dont know how to exactly explain it to you that you can just create an Array like the following and then use metadata as the index.

public static final OreDictMaterial[] MY_ORE_MATERIALS = {MT.CertusQuartz, MT.OREMATS.Cooperite, MT.OREMATS.Dolamide, MT.Ir, MT.Nq, MT.Pyrite, MT.OREMATS.Scheelite, MT.OREMATS.Sperrylite, MT.Ke, MT.NULL, MT.NULL, MT.NULL, MT.NULL, MT.NULL, MT.NULL, MT.NULL};

public ArrayList<ItemStack> getDrops(World world, int x, int y, int z, int metadata, int fortune) {
    ArrayList<ItemStack> ret = new ArrayList<ItemStack>();
    ret.add(OP.dust.mat(MT.STONES.SpaceRock, 1));
    ret.add(OP.crushed.mat(MY_ORE_MATERIALS[metadata], 1));
    return ret;
}

And yes the MT.NULL is necessary but for Arcane Minecraft Bullshit reasons I did not want to mention.

2 Likes