Added config option for tiny coal and charcoal block

Closes #163
This commit is contained in:
Ellpeck 2016-07-22 11:06:05 +02:00
parent 9140b39f65
commit b0e96caaf1
3 changed files with 21 additions and 14 deletions

View file

@ -166,7 +166,10 @@ public enum ConfigCrafting{
SPAWNER_CHANGER("Spawner Changer", ConfigCategories.ITEMS_CRAFTING),
ITEM_INTERFACE("Item Interface", ConfigCategories.BLOCKS_CRAFTING),
DISPLAY_STAND("Display Stand", ConfigCategories.BLOCKS_CRAFTING),
FILTER("Item Filter", ConfigCategories.ITEMS_CRAFTING);
FILTER("Item Filter", ConfigCategories.ITEMS_CRAFTING),
CHARCOAL_BLOCK("Charcoal Block", ConfigCategories.BLOCKS_CRAFTING),
TINY_COAL("Tiny Coal", ConfigCategories.ITEMS_CRAFTING);
public final String name;
public final String category;

View file

@ -317,6 +317,7 @@ public final class BlockCrafting{
recipeSolidifier = RecipeUtil.lastIRecipe();
}
if(ConfigCrafting.CHARCOAL_BLOCK.isEnabled()){
//Charcoal Block
GameRegistry.addRecipe(new ItemStack(InitBlocks.blockMisc, 1, TheMiscBlocks.CHARCOAL_BLOCK.ordinal()),
"CCC", "CCC", "CCC",
@ -324,6 +325,7 @@ public final class BlockCrafting{
recipeBlockChar = RecipeUtil.lastIRecipe();
GameRegistry.addShapelessRecipe(new ItemStack(Items.COAL, 9, 1),
new ItemStack(InitBlocks.blockMisc, 1, TheMiscBlocks.CHARCOAL_BLOCK.ordinal()));
}
//Wood Casing
if(ConfigCrafting.WOOD_CASING.isEnabled()){

View file

@ -490,12 +490,14 @@ public final class ItemCrafting{
}
//Tiny Coal
if(ConfigCrafting.TINY_COAL.isEnabled()){
GameRegistry.addShapelessRecipe(new ItemStack(InitItems.itemMisc, 8, TheMiscItems.TINY_COAL.ordinal()),
new ItemStack(Items.COAL));
recipeTinyCoal = RecipeUtil.lastIRecipe();
GameRegistry.addShapelessRecipe(new ItemStack(InitItems.itemMisc, 8, TheMiscItems.TINY_CHAR.ordinal()),
new ItemStack(Items.COAL, 1, 1));
recipeTinyChar = RecipeUtil.lastIRecipe();
}
//Rice Seeds
GameRegistry.addShapelessRecipe(new ItemStack(InitItems.itemRiceSeed),