Doors - Missing recipe + fixed text

This commit is contained in:
Emmanuel BENOîT 2016-07-12 17:40:20 +02:00
parent e616e01762
commit 70a00a4c85
2 changed files with 12 additions and 2 deletions

View file

@ -2,8 +2,11 @@ package mmm.deco.doors;
import mmm.core.CRegistry; import mmm.core.CRegistry;
import mmm.core.api.I_RecipeRegistrar;
import mmm.materials.MWood; import mmm.materials.MWood;
import net.minecraft.item.ItemDoor; 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 ); this.ITEM = new ItemDoor( this.BLOCK );
CRegistry.setIdentifiers( this.ITEM , "deco" , "door" , wood.getSuffix( ) ); CRegistry.setIdentifiers( this.ITEM , "deco" , "door" , wood.getSuffix( ) );
CRegistry.addBlock( this.BLOCK , this.ITEM ); CRegistry.addBlock( this.BLOCK , this.ITEM );
CRegistry.addRecipeRegistrar( (I_RecipeRegistrar) ( ) -> {
GameRegistry.addShapedRecipe( new ItemStack( DDoor.this.ITEM , 3 ) , //
"WW" , //
"WW" , //
"WW" , //
'W' , wood.getPlanksBlock( ) );
} );
} }
} }

View file

@ -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.bamboo.name=Bamboo Fence
tile.mmm.deco.fence.gate.bamboo.name=Bamboo Fence Gate tile.mmm.deco.fence.gate.bamboo.name=Bamboo Fence Gate
tile.mmm.deco.door.hevea.name=Hevea Door item.mmm.deco.door.hevea.name=Hevea Door
tile.mmm.deco.door.bamboo.name=Bamboo Door item.mmm.deco.door.bamboo.name=Bamboo Door
tile.mmm.deco.table.oak.name=Oak Table tile.mmm.deco.table.oak.name=Oak Table
tile.mmm.deco.table.birch.name=Birch Table tile.mmm.deco.table.birch.name=Birch Table