Chalk (no gen)

This commit is contained in:
Emmanuel BENOîT 2016-07-03 18:18:14 +02:00
parent 0e3cb6fd1a
commit 479e014f34
8 changed files with 51 additions and 5 deletions

View file

@ -6,7 +6,8 @@ import mmm.materials.ore.MOCopper;
import mmm.materials.ore.MOCuprite;
import mmm.materials.ore.MOMalachite;
import mmm.materials.ore.MOSphalerite;
import mmm.materials.rock.MLimestone;
import mmm.materials.rock.MRChalk;
import mmm.materials.rock.MRLimestone;
import mmm.utils.I_URecipeRegistrar;
import mmm.utils.URegistry;
import net.minecraft.block.material.MapColor;
@ -20,7 +21,8 @@ import net.minecraft.item.Item;
public class Materials
implements I_URecipeRegistrar
{
public static final MLimestone ROCK_LIMESTONE;
public static final MRLimestone ROCK_LIMESTONE;
public static final MRChalk ROCK_CHALK;
public static final MMetal GOLD;
public static final MMetal IRON;
@ -48,7 +50,8 @@ public class Materials
static {
// Rocks
URegistry.addBlock( ROCK_LIMESTONE = new MLimestone( ) );
URegistry.addBlock( ROCK_LIMESTONE = new MRLimestone( ) );
URegistry.addBlock( ROCK_CHALK = new MRChalk( ) );
// Vanilla metals
GOLD = new MMetal( Blocks.GOLD_BLOCK , Items.GOLD_INGOT , Items.GOLD_NUGGET );

View file

@ -0,0 +1,28 @@
package mmm.materials.rock;
import mmm.utils.URegistry;
import net.minecraft.block.Block;
import net.minecraft.block.SoundType;
import net.minecraft.block.material.MapColor;
import net.minecraft.block.material.Material;
import net.minecraft.creativetab.CreativeTabs;
public class MRChalk
extends Block
{
public MRChalk( )
{
super( Material.ROCK , MapColor.SNOW );
this.setCreativeTab( CreativeTabs.BUILDING_BLOCKS );
this.setHardness( 1f );
this.setResistance( 5f );
this.setSoundType( SoundType.STONE );
this.setHarvestLevel( "pickaxe" , 0 );
URegistry.setIdentifiers( this , "materials" , "rock" , "chalk" );
}
}

View file

@ -16,12 +16,12 @@ import net.minecraft.creativetab.CreativeTabs;
public class MLimestone
public class MRLimestone
extends Block
implements I_UOreGenerationRegistrar
{
public MLimestone( )
public MRLimestone( )
{
super( Material.ROCK , MapColor.SNOW );
this.setCreativeTab( CreativeTabs.BUILDING_BLOCKS );

View file

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

View file

@ -9,6 +9,7 @@ gui.mmm.tech.base.am.disabled=Deactivated
tile.mmm.materials.rock.limestone.name=Limestone
tile.mmm.materials.rock.chalk.name=Chalk
item.mmm.materials.stone.coke.name=Coke
item.mmm.materials.stone.slag.name=Slag

View file

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

View file

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

Binary file not shown.

After

Width:  |  Height:  |  Size: 266 B