This commit is contained in:
Emmanuel BENOîT 2016-07-07 15:05:33 +02:00
parent 42a455d4c0
commit 3a5ba9fbfd
9 changed files with 53 additions and 1 deletions

View file

@ -46,7 +46,6 @@ materials.rock No Smooth limestone
materials.rock No Smooth slate
materials.rock No Basalt
-------------------------------------------------------------------------------------------------------
materials.ore No Aluminium (bauxite)
materials.ore No Silver (native, horn silver)
materials.ore No Lead (galena)
materials.ore No Cinnabar

Binary file not shown.

View file

@ -1,6 +1,7 @@
package mmm.materials;
import mmm.materials.ore.MOBauxite;
import mmm.materials.ore.MOCassiterite;
import mmm.materials.ore.MOCopper;
import mmm.materials.ore.MOCuprite;
@ -52,6 +53,7 @@ public class Materials
public static final MOre ORE_CASSITERITE;
public static final MOre ORE_SPHALERITE;
public static final MOre ORE_ROCK_SALT;
public static final MOre ORE_BAUXITE;
static {
// Rocks
@ -95,6 +97,7 @@ public class Materials
ORE_CASSITERITE = new MOCassiterite( );
ORE_SPHALERITE = new MOSphalerite( );
ORE_ROCK_SALT = new MORockSalt( );
ORE_BAUXITE = new MOBauxite( );
// Other recipes
URegistry.addRecipeRegistrar( new Materials( ) );

View file

@ -0,0 +1,34 @@
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.gen.WGOreCondition;
import mmm.world.gen.WGOreParameters;
import net.minecraft.block.state.pattern.BlockMatcher;
public class MOBauxite
extends MOre
implements I_UOreGenerationRegistrar
{
public MOBauxite( )
{
super( "bauxite" , 1 );
}
@Override
public void addConditions( final List< WGOreCondition > conditions )
{
conditions.add( new WGOreCondition( WLocation.inOverworld( ) , new WGOreParameters( this.getDefaultState( ) ,
10 , 9 , 45 , 80 , BlockMatcher.forBlock( Materials.ROCK_LIMESTONE ) ) ) );
}
}

View file

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

View file

@ -15,6 +15,8 @@ tile.mmm.materials.rock.slate.name=Slate
tile.mmm.materials.ore.rock_salt.name=Rock Salt
item.mmm.materials.stone.rock_salt.name=Salt Crystals
tile.mmm.materials.ore.bauxite.name=Bauxite
item.mmm.materials.stone.coke.name=Coke
item.mmm.materials.stone.slag.name=Slag
item.mmm.materials.nugget.iron.name=Iron Nugget

View file

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

View file

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

Binary file not shown.

After

Width:  |  Height:  |  Size: 434 B