mirror of
https://github.com/GTNewHorizons/ForestryMC.git
synced 2026-11-19 11:49:14 +00:00
Register Charcoal Block with Ore Dictionary
This commit is contained in:
1 parent
e9019fd8c3
commit
cdb5ddeb6a
3 files changed
+9
-5
No files matched your search
@@ -59,10 +59,10 @@ public class ModuleCharcoal extends BlankForestryModule {
|
||||
|
||||
//Charcoal
|
||||
RecipeUtil.addRecipe("charcoal_block", blocks.charcoal,
|
||||
"###",
|
||||
"###",
|
||||
"###",
|
||||
'#', new ItemStack(Items.COAL, 1, 1));
|
||||
"###",
|
||||
"###",
|
||||
"###",
|
||||
'#', new ItemStack(Items.COAL, 1, 1));
|
||||
RecipeUtil.addShapelessRecipe("charcoal", new ItemStack(Items.COAL, 9, 1), blocks.charcoal);
|
||||
|
||||
//Dirt Pile Block
|
||||
|
||||
@@ -3,8 +3,11 @@ package forestry.arboriculture.blocks;
|
||||
import net.minecraft.block.Block;
|
||||
import net.minecraft.item.ItemStack;
|
||||
|
||||
import net.minecraftforge.oredict.OreDictionary;
|
||||
|
||||
import forestry.core.blocks.BlockRegistry;
|
||||
import forestry.core.items.ItemBlockForestry;
|
||||
import forestry.core.utils.OreDictUtil;
|
||||
|
||||
public class BlockRegistryCharcoal extends BlockRegistry {
|
||||
public final BlockCharcoal charcoal;
|
||||
@@ -21,6 +24,7 @@ public class BlockRegistryCharcoal extends BlockRegistry {
|
||||
return 16000;
|
||||
}
|
||||
};
|
||||
OreDictionary.registerOre(OreDictUtil.BLOCK_CHARCOAL, itemBlockCharcoal);
|
||||
registerBlock(charcoal, itemBlockCharcoal, "charcoal");
|
||||
|
||||
woodPile = new BlockWoodPile();
|
||||
|
||||
@@ -39,7 +39,7 @@ public abstract class ItemRegistry {
|
||||
item.setRegistryName(name);
|
||||
|
||||
MigrationHelper.addItemName(name);
|
||||
|
||||
|
||||
ForgeRegistries.ITEMS.register(item);
|
||||
Proxies.common.registerItem(item);
|
||||
return item;
|
||||
|
||||
Reference in new issue
Block a user