Added quartz variants to Ore Dictionary

This commit is contained in:
nekosune committed 2016-02-02 21:40:38 +00:00
1 parent 7bfeef18a9
commit 9e37f37c53
3 files changed
+10 -3

No files matched your search

@@ -1407,7 +1407,7 @@ public final class ModCraftingRecipes {
// Wing Recipes
GameRegistry.addRecipe(new ShapelessOreRecipe(new ItemStack(ModItems.flightTiara, 1, 1), new ItemStack(ModItems.flightTiara, 1, Short.MAX_VALUE), "gemQuartz"));
for(int i = 0; i < 7; i++)
GameRegistry.addShapelessRecipe(new ItemStack(ModItems.flightTiara, 1, 2 + i), new ItemStack(ModItems.flightTiara, 1, Short.MAX_VALUE), new ItemStack(ModItems.quartz, 1, i));
GameRegistry.addRecipe(new ShapelessOreRecipe(new ItemStack(ModItems.flightTiara, 1, 2 + i), new ItemStack(ModItems.flightTiara, 1, Short.MAX_VALUE), LibOreDict.QUARTZ[i]));
recipesWings = BotaniaAPI.getLatestAddedRecipes(8);
// Mana Fluxfield Recipe
@@ -2318,9 +2318,9 @@ public final class ModCraftingRecipes {
}
private static IRecipe addQuartzRecipes(int meta, Item req, Block block, Block stairs, Block slab) {
GameRegistry.addRecipe(new ItemStack(block),
GameRegistry.addRecipe(new ShapedOreRecipe(new ItemStack(block),
"QQ", "QQ",
'Q', new ItemStack(ModItems.quartz, 1, meta));
'Q', LibOreDict.QUARTZ[meta]));
GameRegistry.addRecipe(new ItemStack(block, 2, 2),
"Q", "Q",
'Q', block);
@@ -423,6 +423,9 @@ public final class ModItems {
OreDictionary.registerOre(LibOreDict.DYE[i], new ItemStack(dye, 1, i));
OreDictionary.registerOre(LibOreDict.RUNE[i], new ItemStack(rune, 1, i));
}
for(int i = 0; i < 7; i++)
OreDictionary.registerOre(LibOreDict.QUARTZ[i],new ItemStack(quartz,1,i));
OreDictionary.registerOre(LibOreDict.PESTLE_AND_MORTAR, pestleAndMortar);
OreDictionary.registerOre(LibOreDict.MANA_STEEL, new ItemStack(manaResource, 1, 0));
OreDictionary.registerOre(LibOreDict.MANA_PEARL, new ItemStack(manaResource, 1, 1));
@@ -90,4 +90,8 @@ public final class LibOreDict {
"stoneAndesiteBricks", "stoneBasaltBricks", "stoneDioriteBricks", "stoneGraniteBricks",
"stoneAndesiteChiseled", "stoneBasaltChiseled", "stoneDioriteChiseled", "stoneGraniteChiseled"
};
public static final String[] QUARTZ = new String[] {
"quartzDark","quartzMana","quartzBlaze","quartzLavender","quartzRed","quartzElven","quartzSunny"
};
}