From 70a00a4c85c47515bd4e8985077c2b44d04c06e6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Emmanuel=20Beno=C3=AEt?= Date: Tue, 12 Jul 2016 17:40:20 +0200 Subject: [PATCH] Doors - Missing recipe + fixed text --- src/java/mmm/deco/doors/DDoor.java | 10 ++++++++++ src/resources/assets/mmm/lang/en_US.lang | 4 ++-- 2 files changed, 12 insertions(+), 2 deletions(-) diff --git a/src/java/mmm/deco/doors/DDoor.java b/src/java/mmm/deco/doors/DDoor.java index 3873e8b..ce4a3da 100644 --- a/src/java/mmm/deco/doors/DDoor.java +++ b/src/java/mmm/deco/doors/DDoor.java @@ -2,8 +2,11 @@ package mmm.deco.doors; import mmm.core.CRegistry; +import mmm.core.api.I_RecipeRegistrar; import mmm.materials.MWood; import net.minecraft.item.ItemDoor; +import net.minecraft.item.ItemStack; +import net.minecraftforge.fml.common.registry.GameRegistry; @@ -20,6 +23,13 @@ public class DDoor this.ITEM = new ItemDoor( this.BLOCK ); CRegistry.setIdentifiers( this.ITEM , "deco" , "door" , wood.getSuffix( ) ); CRegistry.addBlock( this.BLOCK , this.ITEM ); + CRegistry.addRecipeRegistrar( (I_RecipeRegistrar) ( ) -> { + GameRegistry.addShapedRecipe( new ItemStack( DDoor.this.ITEM , 3 ) , // + "WW" , // + "WW" , // + "WW" , // + 'W' , wood.getPlanksBlock( ) ); + } ); } } diff --git a/src/resources/assets/mmm/lang/en_US.lang b/src/resources/assets/mmm/lang/en_US.lang index 5bbee92..52bd4b7 100644 --- a/src/resources/assets/mmm/lang/en_US.lang +++ b/src/resources/assets/mmm/lang/en_US.lang @@ -150,8 +150,8 @@ tile.mmm.deco.fence.gate.hevea.name=Hevea Fence Gate tile.mmm.deco.fence.bamboo.name=Bamboo Fence tile.mmm.deco.fence.gate.bamboo.name=Bamboo Fence Gate -tile.mmm.deco.door.hevea.name=Hevea Door -tile.mmm.deco.door.bamboo.name=Bamboo Door +item.mmm.deco.door.hevea.name=Hevea Door +item.mmm.deco.door.bamboo.name=Bamboo Door tile.mmm.deco.table.oak.name=Oak Table tile.mmm.deco.table.birch.name=Birch Table