Cuprite (copper ore/gem)

This commit is contained in:
Emmanuel BENOîT 2016-06-16 15:02:04 +02:00
parent a03ec70140
commit e13ca1bc2f
12 changed files with 66 additions and 3 deletions

View file

@ -16,7 +16,6 @@ plants No? Eggplant
plants No? Strawberries plants No? Strawberries
------------------------------------------------------------------------------------------------------- -------------------------------------------------------------------------------------------------------
ores No Rock salt ores No Rock salt
ores No Cuprite (copper)
------------------------------------------------------------------------------------------------------- -------------------------------------------------------------------------------------------------------
animals ??? Goats animals ??? Goats
------------------------------------------------------------------------------------------------------- -------------------------------------------------------------------------------------------------------

View file

@ -2,6 +2,7 @@ package mmm.materials;
import mmm.materials.ore.MOCopper; import mmm.materials.ore.MOCopper;
import mmm.materials.ore.MOCuprite;
import mmm.materials.ore.MOMalachite; import mmm.materials.ore.MOMalachite;
import mmm.utils.URegistry; import mmm.utils.URegistry;
import net.minecraft.creativetab.CreativeTabs; import net.minecraft.creativetab.CreativeTabs;
@ -18,9 +19,11 @@ public class Materials
public static final MMetal COPPER; public static final MMetal COPPER;
public static final Item STONE_MALACHITE; public static final Item STONE_MALACHITE;
public static final Item STONE_CUPRITE;
public static final MOre ORE_COPPER; public static final MOre ORE_COPPER;
public static final MOre ORE_MALACHITE; public static final MOre ORE_MALACHITE;
public static final MOre ORE_CUPRITE;
static { static {
GOLD = new MMetal( Items.GOLD_INGOT , Items.GOLD_NUGGET ); GOLD = new MMetal( Items.GOLD_INGOT , Items.GOLD_NUGGET );
@ -28,9 +31,11 @@ public class Materials
COPPER = new MMetal( "copper" , 0.4f ); COPPER = new MMetal( "copper" , 0.4f );
URegistry.addItem( STONE_MALACHITE = makeStone( "malachite" ) ); URegistry.addItem( STONE_MALACHITE = makeStone( "malachite" ) );
URegistry.addItem( STONE_CUPRITE = makeStone( "cuprite" ) );
URegistry.addBlock( ORE_COPPER = new MOCopper( ) ); URegistry.addBlock( ORE_COPPER = new MOCopper( ) );
URegistry.addBlock( ORE_MALACHITE = new MOMalachite( ) ); URegistry.addBlock( ORE_MALACHITE = new MOMalachite( ) );
URegistry.addBlock( ORE_CUPRITE = new MOCuprite( ) );
} }

View file

@ -0,0 +1,36 @@
package mmm.materials.ore;
import java.util.List;
import mmm.materials.MOre;
import mmm.materials.Materials;
import mmm.utils.I_UOreGenerationRegistrar;
import mmm.world.WLocation;
import mmm.world.WOreGenerationCondition;
import mmm.world.WOreGenerationParameters;
public class MOCuprite
extends MOre
implements I_UOreGenerationRegistrar
{
public MOCuprite( )
{
super( "cuprite" , 1 );
this.setMetal( Materials.COPPER , 2 );
this.setDrops( Materials.STONE_CUPRITE );
this.setExperience( 2 , 5 );
}
@Override
public void addConditions( final List< WOreGenerationCondition > conditions )
{
conditions.add( new WOreGenerationCondition( WLocation.inOverworld( ) ,
new WOreGenerationParameters( this.getDefaultState( ) , 10 , 9 , 0 , 60 ) ) );
}
}

View file

@ -0,0 +1,5 @@
{
"variants": {
"normal": { "model": "mmm:materials/ore/cuprite" }
}
}

View file

@ -28,4 +28,7 @@ item.mmm.materials.nugget.copper.name=Copper Nugget
tile.mmm.materials.ore.copper.name=Native Copper tile.mmm.materials.ore.copper.name=Native Copper
item.mmm.materials.stone.malachite.name=Malachite item.mmm.materials.stone.malachite.name=Malachite
tile.mmm.materials.ore.malachite.name=Malachite tile.mmm.materials.ore.malachite.name=Malachite Ore
item.mmm.materials.stone.cuprite.name=Cuprite
tile.mmm.materials.ore.cuprite.name=Cuprite Ore

View file

@ -0,0 +1,6 @@
{
"parent": "minecraft:block/cube_all",
"textures": {
"all": "mmm:blocks/materials/ore/cuprite"
}
}

View file

@ -0,0 +1,3 @@
{
"parent": "mmm:block/materials/ore/cuprite"
}

View file

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

View file

@ -1,6 +1,6 @@
{ {
"parent": "minecraft:item/generated", "parent": "minecraft:item/generated",
"textures": { "textures": {
"layer0": "mmm:items/materials/ore/malachite" "layer0": "mmm:items/materials/stone/malachite"
} }
} }

Binary file not shown.

After

Width:  |  Height:  |  Size: 316 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 385 B