Ores that drop the product will now grind to the product. e.g coal ore now grinds to coal, not coal dust
This has room for improvement to allow modded ores to work seamlessly with this, but this will do for now.
This commit is contained in:
parent
7f8dff1dd0
commit
319f74d5cd
1 changed files with 29 additions and 1 deletions
|
@ -253,6 +253,28 @@ public class ModRecipes {
|
|||
120, 10));
|
||||
}
|
||||
|
||||
//See comments bellow, this allows the ore to go to the product when it sometimes goes stright to dust.
|
||||
RecipeHandler.addRecipe(new GrinderRecipe(
|
||||
"oreCoal", new ItemStack(Items.COAL, 2),
|
||||
270, 31));
|
||||
|
||||
RecipeHandler.addRecipe(new GrinderRecipe(
|
||||
"oreDiamond", new ItemStack(Items.DIAMOND, 1),
|
||||
270, 31));
|
||||
|
||||
RecipeHandler.addRecipe(new GrinderRecipe(
|
||||
"oreEmerald", new ItemStack(Items.EMERALD, 1),
|
||||
270, 31));
|
||||
|
||||
RecipeHandler.addRecipe(new GrinderRecipe(
|
||||
"oreRedstone", new ItemStack(Items.REDSTONE, 8),
|
||||
270, 31));
|
||||
|
||||
RecipeHandler.addRecipe(new GrinderRecipe(
|
||||
"oreQuartz", new ItemStack(Items.QUARTZ, 2),
|
||||
270, 31));
|
||||
|
||||
|
||||
for (String oreDictionaryName : OreDictionary.getOreNames()) {
|
||||
if (isDictPrefixed(oreDictionaryName, "ore", "gem", "ingot")) {
|
||||
ItemStack oreStack = getDictOreOrEmpty(oreDictionaryName, 1);
|
||||
|
@ -264,7 +286,13 @@ public class ModRecipes {
|
|||
data[1].equals("titanium") ||
|
||||
data[1].equals("aluminium") ||
|
||||
data[1].equals("iridium") ||
|
||||
data[1].equals("saltpeter")) ||
|
||||
data[1].equals("saltpeter")||
|
||||
data[1].equals("coal") || //Done here to skip going to dust so it can go to the output
|
||||
data[1].equals("diamond") || //For example diamond ore should go to diamonds not the diamond dust
|
||||
data[1].equals("emerald") || //TODO possibly remove this and make it a bit more dyamic? (Check for furnace recipes? and then the block drop?)
|
||||
data[1].equals("redstone") ||
|
||||
data[1].equals("quartz")
|
||||
) ||
|
||||
oreStack.isEmpty())
|
||||
continue;
|
||||
|
||||
|
|
Loading…
Reference in a new issue