Tweak how nugget recipes are done once again, and \o/ 2500th commit!
This commit is contained in:
parent
2e9bf11569
commit
415660c988
2 changed files with 10 additions and 5 deletions
|
@ -2,6 +2,7 @@ package techreborn.items;
|
|||
|
||||
import com.google.common.base.CaseFormat;
|
||||
import net.minecraft.creativetab.CreativeTabs;
|
||||
import net.minecraft.init.Items;
|
||||
import net.minecraft.item.Item;
|
||||
import net.minecraft.item.ItemStack;
|
||||
import net.minecraft.util.NonNullList;
|
||||
|
@ -29,6 +30,12 @@ public class ItemIngots extends ItemTRNoDestroy {
|
|||
return new ItemStack(ModItems.ingots, count, i);
|
||||
}
|
||||
}
|
||||
if (name.equalsIgnoreCase("iron")) {
|
||||
return new ItemStack(Items.IRON_INGOT);
|
||||
}
|
||||
if (name.equalsIgnoreCase("gold")) {
|
||||
return new ItemStack(Items.GOLD_INGOT);
|
||||
}
|
||||
throw new InvalidParameterException("The ingot " + name + " could not be found.");
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue