Chalk (no gen)
This commit is contained in:
parent
0e3cb6fd1a
commit
479e014f34
8 changed files with 51 additions and 5 deletions
|
@ -6,7 +6,8 @@ import mmm.materials.ore.MOCopper;
|
||||||
import mmm.materials.ore.MOCuprite;
|
import mmm.materials.ore.MOCuprite;
|
||||||
import mmm.materials.ore.MOMalachite;
|
import mmm.materials.ore.MOMalachite;
|
||||||
import mmm.materials.ore.MOSphalerite;
|
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.I_URecipeRegistrar;
|
||||||
import mmm.utils.URegistry;
|
import mmm.utils.URegistry;
|
||||||
import net.minecraft.block.material.MapColor;
|
import net.minecraft.block.material.MapColor;
|
||||||
|
@ -20,7 +21,8 @@ import net.minecraft.item.Item;
|
||||||
public class Materials
|
public class Materials
|
||||||
implements I_URecipeRegistrar
|
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 GOLD;
|
||||||
public static final MMetal IRON;
|
public static final MMetal IRON;
|
||||||
|
@ -48,7 +50,8 @@ public class Materials
|
||||||
|
|
||||||
static {
|
static {
|
||||||
// Rocks
|
// Rocks
|
||||||
URegistry.addBlock( ROCK_LIMESTONE = new MLimestone( ) );
|
URegistry.addBlock( ROCK_LIMESTONE = new MRLimestone( ) );
|
||||||
|
URegistry.addBlock( ROCK_CHALK = new MRChalk( ) );
|
||||||
|
|
||||||
// Vanilla metals
|
// Vanilla metals
|
||||||
GOLD = new MMetal( Blocks.GOLD_BLOCK , Items.GOLD_INGOT , Items.GOLD_NUGGET );
|
GOLD = new MMetal( Blocks.GOLD_BLOCK , Items.GOLD_INGOT , Items.GOLD_NUGGET );
|
||||||
|
|
28
src/java/mmm/materials/rock/MRChalk.java
Normal file
28
src/java/mmm/materials/rock/MRChalk.java
Normal 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" );
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
|
@ -16,12 +16,12 @@ import net.minecraft.creativetab.CreativeTabs;
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
public class MLimestone
|
public class MRLimestone
|
||||||
extends Block
|
extends Block
|
||||||
implements I_UOreGenerationRegistrar
|
implements I_UOreGenerationRegistrar
|
||||||
{
|
{
|
||||||
|
|
||||||
public MLimestone( )
|
public MRLimestone( )
|
||||||
{
|
{
|
||||||
super( Material.ROCK , MapColor.SNOW );
|
super( Material.ROCK , MapColor.SNOW );
|
||||||
this.setCreativeTab( CreativeTabs.BUILDING_BLOCKS );
|
this.setCreativeTab( CreativeTabs.BUILDING_BLOCKS );
|
|
@ -0,0 +1,5 @@
|
||||||
|
{
|
||||||
|
"variants": {
|
||||||
|
"normal": { "model": "mmm:materials/rock/chalk" }
|
||||||
|
}
|
||||||
|
}
|
|
@ -9,6 +9,7 @@ gui.mmm.tech.base.am.disabled=Deactivated
|
||||||
|
|
||||||
|
|
||||||
tile.mmm.materials.rock.limestone.name=Limestone
|
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.coke.name=Coke
|
||||||
item.mmm.materials.stone.slag.name=Slag
|
item.mmm.materials.stone.slag.name=Slag
|
||||||
|
|
|
@ -0,0 +1,6 @@
|
||||||
|
{
|
||||||
|
"parent": "minecraft:block/cube_all",
|
||||||
|
"textures": {
|
||||||
|
"all": "mmm:blocks/materials/rock/chalk"
|
||||||
|
}
|
||||||
|
}
|
|
@ -0,0 +1,3 @@
|
||||||
|
{
|
||||||
|
"parent": "mmm:block/materials/rock/chalk"
|
||||||
|
}
|
Binary file not shown.
After Width: | Height: | Size: 266 B |
Reference in a new issue