diff --git a/TODO.txt b/TODO.txt index a3397f5..933e847 100644 --- a/TODO.txt +++ b/TODO.txt @@ -16,7 +16,6 @@ plants No? Eggplant plants No? Strawberries ------------------------------------------------------------------------------------------------------- ores No Rock salt -ores No Cuprite (copper) ------------------------------------------------------------------------------------------------------- animals ??? Goats ------------------------------------------------------------------------------------------------------- diff --git a/src/java/mmm/materials/Materials.java b/src/java/mmm/materials/Materials.java index 29da5fd..a624113 100644 --- a/src/java/mmm/materials/Materials.java +++ b/src/java/mmm/materials/Materials.java @@ -2,6 +2,7 @@ package mmm.materials; import mmm.materials.ore.MOCopper; +import mmm.materials.ore.MOCuprite; import mmm.materials.ore.MOMalachite; import mmm.utils.URegistry; import net.minecraft.creativetab.CreativeTabs; @@ -18,9 +19,11 @@ public class Materials public static final MMetal COPPER; public static final Item STONE_MALACHITE; + public static final Item STONE_CUPRITE; public static final MOre ORE_COPPER; public static final MOre ORE_MALACHITE; + public static final MOre ORE_CUPRITE; static { GOLD = new MMetal( Items.GOLD_INGOT , Items.GOLD_NUGGET ); @@ -28,9 +31,11 @@ public class Materials COPPER = new MMetal( "copper" , 0.4f ); URegistry.addItem( STONE_MALACHITE = makeStone( "malachite" ) ); + URegistry.addItem( STONE_CUPRITE = makeStone( "cuprite" ) ); URegistry.addBlock( ORE_COPPER = new MOCopper( ) ); URegistry.addBlock( ORE_MALACHITE = new MOMalachite( ) ); + URegistry.addBlock( ORE_CUPRITE = new MOCuprite( ) ); } diff --git a/src/java/mmm/materials/ore/MOCuprite.java b/src/java/mmm/materials/ore/MOCuprite.java new file mode 100644 index 0000000..565fe83 --- /dev/null +++ b/src/java/mmm/materials/ore/MOCuprite.java @@ -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 ) ) ); + } + +} diff --git a/src/resources/assets/mmm/blockstates/materials/ore/cuprite.json b/src/resources/assets/mmm/blockstates/materials/ore/cuprite.json new file mode 100644 index 0000000..2dcf8c3 --- /dev/null +++ b/src/resources/assets/mmm/blockstates/materials/ore/cuprite.json @@ -0,0 +1,5 @@ +{ + "variants": { + "normal": { "model": "mmm:materials/ore/cuprite" } + } +} diff --git a/src/resources/assets/mmm/lang/en_US.lang b/src/resources/assets/mmm/lang/en_US.lang index 2ef26b8..5661746 100644 --- a/src/resources/assets/mmm/lang/en_US.lang +++ b/src/resources/assets/mmm/lang/en_US.lang @@ -28,4 +28,7 @@ item.mmm.materials.nugget.copper.name=Copper Nugget tile.mmm.materials.ore.copper.name=Native Copper 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 diff --git a/src/resources/assets/mmm/models/block/materials/ore/cuprite.json b/src/resources/assets/mmm/models/block/materials/ore/cuprite.json new file mode 100644 index 0000000..d1b98cb --- /dev/null +++ b/src/resources/assets/mmm/models/block/materials/ore/cuprite.json @@ -0,0 +1,6 @@ +{ + "parent": "minecraft:block/cube_all", + "textures": { + "all": "mmm:blocks/materials/ore/cuprite" + } +} \ No newline at end of file diff --git a/src/resources/assets/mmm/models/item/materials/ore/cuprite.json b/src/resources/assets/mmm/models/item/materials/ore/cuprite.json new file mode 100644 index 0000000..94243b1 --- /dev/null +++ b/src/resources/assets/mmm/models/item/materials/ore/cuprite.json @@ -0,0 +1,3 @@ +{ + "parent": "mmm:block/materials/ore/cuprite" +} \ No newline at end of file diff --git a/src/resources/assets/mmm/models/item/materials/stone/cuprite.json b/src/resources/assets/mmm/models/item/materials/stone/cuprite.json new file mode 100644 index 0000000..371b68e --- /dev/null +++ b/src/resources/assets/mmm/models/item/materials/stone/cuprite.json @@ -0,0 +1,6 @@ +{ + "parent": "minecraft:item/generated", + "textures": { + "layer0": "mmm:items/materials/stone/cuprite" + } +} \ No newline at end of file diff --git a/src/resources/assets/mmm/models/item/materials/stone/malachite.json b/src/resources/assets/mmm/models/item/materials/stone/malachite.json index 4cede72..c6cf27b 100644 --- a/src/resources/assets/mmm/models/item/materials/stone/malachite.json +++ b/src/resources/assets/mmm/models/item/materials/stone/malachite.json @@ -1,6 +1,6 @@ { "parent": "minecraft:item/generated", "textures": { - "layer0": "mmm:items/materials/ore/malachite" + "layer0": "mmm:items/materials/stone/malachite" } } \ No newline at end of file diff --git a/src/resources/assets/mmm/textures/blocks/materials/ore/cuprite.png b/src/resources/assets/mmm/textures/blocks/materials/ore/cuprite.png new file mode 100644 index 0000000..ff90681 Binary files /dev/null and b/src/resources/assets/mmm/textures/blocks/materials/ore/cuprite.png differ diff --git a/src/resources/assets/mmm/textures/items/materials/stone/cuprite.png b/src/resources/assets/mmm/textures/items/materials/stone/cuprite.png new file mode 100644 index 0000000..acd1b38 Binary files /dev/null and b/src/resources/assets/mmm/textures/items/materials/stone/cuprite.png differ diff --git a/src/resources/assets/mmm/textures/items/materials/ore/malachite.png b/src/resources/assets/mmm/textures/items/materials/stone/malachite.png similarity index 100% rename from src/resources/assets/mmm/textures/items/materials/ore/malachite.png rename to src/resources/assets/mmm/textures/items/materials/stone/malachite.png