This commit is contained in:
Emmanuel BENOîT 2016-06-29 21:50:05 +02:00
parent d979339ee9
commit 82db0f476d
5 changed files with 25 additions and 1 deletions

View file

@ -34,7 +34,6 @@ food No Extra recipes
Various mashes Various mashes
------------------------------------------------------------------------------------------------------- -------------------------------------------------------------------------------------------------------
materials No Alloys materials No Alloys
Pig iron
Steel Steel
Brass Brass
Alnico Alnico

View file

@ -33,6 +33,7 @@ public class Materials
public static final Item ITEM_CUPRITE; public static final Item ITEM_CUPRITE;
public static final Item ITEM_COKE; public static final Item ITEM_COKE;
public static final Item ITEM_CASSITERITE; public static final Item ITEM_CASSITERITE;
public static final Item ITEM_PIG_IRON_INGOT;
public static final MOre ORE_COPPER; public static final MOre ORE_COPPER;
public static final MOre ORE_MALACHITE; public static final MOre ORE_MALACHITE;
@ -60,6 +61,8 @@ public class Materials
ITEM_CUPRITE = Materials.makeItem( "cuprite" ); ITEM_CUPRITE = Materials.makeItem( "cuprite" );
ITEM_COKE = Materials.makeFuel( "coke" , 9600 ); ITEM_COKE = Materials.makeFuel( "coke" , 9600 );
ITEM_CASSITERITE = Materials.makeItem( "cassiterite" ); ITEM_CASSITERITE = Materials.makeItem( "cassiterite" );
ITEM_PIG_IRON_INGOT = new MMetalItem( E_MMetalItemType.INGOT , "pig_iron" );
URegistry.addItem( Materials.ITEM_PIG_IRON_INGOT );
// Actual ores // Actual ores
ORE_COPPER = new MOCopper( ); ORE_COPPER = new MOCopper( );
@ -105,12 +108,27 @@ public class Materials
@Override @Override
public void registerRecipes( ) public void registerRecipes( )
{ {
// Bronze
MAlloyRecipe.build( ).setName( "materials/bronze" ).setBurnTime( 400 ) // MAlloyRecipe.build( ).setName( "materials/bronze" ).setBurnTime( 400 ) //
.addInput( Materials.COPPER.INGOT ) // .addInput( Materials.COPPER.INGOT ) //
.addInput( Materials.TIN.NUGGET ) // .addInput( Materials.TIN.NUGGET ) //
.setOutput( Materials.BRONZE.INGOT ).setSlag( 1 ) // .setOutput( Materials.BRONZE.INGOT ).setSlag( 1 ) //
.register( ); .register( );
// Pig iron
MAlloyRecipe.build( ).setName( "materials/pig_iron/from_ingot" ).setBurnTime( 1600 ) //
.addInput( Materials.IRON.INGOT ) //
.addInput( Materials.ROCK_LIMESTONE ) //
.addInput( Materials.ITEM_COKE ) //
.setOutput( Materials.ITEM_PIG_IRON_INGOT , 2 ).setSlag( 3 ) //
.register( );
MAlloyRecipe.build( ).setName( "materials/pig_iron/from_ore" ).setBurnTime( 1600 ) //
.addInput( Blocks.IRON_ORE ) //
.addInput( Materials.ROCK_LIMESTONE ) //
.addInput( Materials.ITEM_COKE ) //
.setOutput( Materials.ITEM_PIG_IRON_INGOT ).setSlag( 5 ) //
.register( );
// MAlloyRecipe.build( ).setName( "materials/red_copper" ).setBurnTime( 800 ) // MAlloyRecipe.build( ).setName( "materials/red_copper" ).setBurnTime( 800 )
// .addInput( Materials.COPPER.INGOT , 1 ).addInput( Items.REDSTONE , 2 ) // .addInput( Materials.COPPER.INGOT , 1 ).addInput( Items.REDSTONE , 2 )
// .setOutput( Materials.RED_COPPER.INGOT ).setSlag( 1 ).register( ); // .setOutput( Materials.RED_COPPER.INGOT ).setSlag( 1 ).register( );

View file

@ -13,6 +13,7 @@ tile.mmm.materials.rock.limestone.name=Limestone
item.mmm.materials.stone.coke.name=Coke item.mmm.materials.stone.coke.name=Coke
item.mmm.materials.stone.slag.name=Slag item.mmm.materials.stone.slag.name=Slag
item.mmm.materials.nugget.iron.name=Iron Nugget item.mmm.materials.nugget.iron.name=Iron Nugget
item.mmm.materials.ingot.pig_iron.name=Pig Iron Ingot
item.mmm.materials.ingot.copper.name=Copper Ingot item.mmm.materials.ingot.copper.name=Copper Ingot
item.mmm.materials.nugget.copper.name=Copper Nugget item.mmm.materials.nugget.copper.name=Copper Nugget

View file

@ -0,0 +1,6 @@
{
"parent": "minecraft:item/generated",
"textures": {
"layer0": "mmm:items/materials/ingots/pig_iron"
}
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 404 B