Polished limestone / slate / basalt

This commit is contained in:
Emmanuel BENOîT 2016-07-12 18:20:40 +02:00
parent 70a00a4c85
commit 25a58e091b
18 changed files with 128 additions and 2 deletions

View file

@ -5,7 +5,7 @@ deco No Copper pots
deco No Copper plates
deco No Lanterns
deco No Light plates
deco No Stone - Smooth + stairs + slabs
deco No Stone - Stairs + slabs
Limestone
Slate
Basalt
@ -45,7 +45,6 @@ materials No Metals
Silver
materials No Liquids
Mercury
materials No Missing bamboo plank textures BF
materials No Make bamboo behave like bamboo BF
materials No Olivine
-------------------------------------------------------------------------------------------------------

BIN
graphics/smooth-stones.xcf Normal file

Binary file not shown.

View file

@ -3,6 +3,7 @@ package mmm;
import mmm.deco.DChairs;
import mmm.deco.DSeatEntity;
import mmm.deco.DSmoothStone;
import mmm.deco.DStairs;
import mmm.deco.DTables;
import mmm.deco.doors.DDoors;
@ -15,6 +16,7 @@ import net.minecraftforge.fml.common.registry.EntityRegistry;
public class MmmDeco
{
public static final DSmoothStone STONE;
public static final DStairs STAIRS;
public static final DSlabs SLAB;
public static final DFences FENCE;
@ -24,6 +26,7 @@ public class MmmDeco
public static final DThrones THRONE;
static {
STONE = new DSmoothStone( );
STAIRS = new DStairs( );
SLAB = new DSlabs( );
FENCE = new DFences( );

View file

@ -0,0 +1,70 @@
package mmm.deco;
import com.google.common.base.Throwables;
import mmm.MmmMaterials;
import mmm.core.CAccessors;
import mmm.core.CRegistry;
import mmm.core.api.I_RecipeRegistrar;
import mmm.materials.MRock;
import net.minecraft.block.Block;
import net.minecraft.block.SoundType;
import net.minecraft.block.material.Material;
import net.minecraft.creativetab.CreativeTabs;
import net.minecraft.item.ItemStack;
import net.minecraftforge.fml.common.registry.GameRegistry;
public class DSmoothStone
{
public static class SmoothStoneBlock
extends Block
implements I_RecipeRegistrar
{
public final MRock rock;
public SmoothStoneBlock( final MRock rock )
{
super( Material.ROCK );
this.rock = rock;
this.setCreativeTab( CreativeTabs.BUILDING_BLOCKS );
try {
this.setHardness( CAccessors.getBlockHardness( rock ) );
this.setResistance( CAccessors.getBlockResistance( rock ) );
} catch ( final Throwable t ) {
throw Throwables.propagate( t );
}
this.setSoundType( SoundType.STONE );
this.setHarvestLevel( "pickaxe" , rock.rockHarvestLevel );
CRegistry.setIdentifiers( this , "deco" , "smoothstone" , rock.name );
}
@Override
public void registerRecipes( )
{
GameRegistry.addShapedRecipe( new ItemStack( this , 4 ) , //
"RR" , //
"RR" , //
'R' , this.rock );
}
}
public final SmoothStoneBlock LIMESTONE;
public final SmoothStoneBlock SLATE;
public final SmoothStoneBlock BASALT;
public DSmoothStone( )
{
CRegistry.addBlock( this.LIMESTONE = new SmoothStoneBlock( MmmMaterials.ROCK.LIMESTONE ) );
CRegistry.addBlock( this.SLATE = new SmoothStoneBlock( MmmMaterials.ROCK.SLATE ) );
CRegistry.addBlock( this.BASALT = new SmoothStoneBlock( MmmMaterials.ROCK.BASALT ) );
}
}

View file

@ -15,6 +15,10 @@ public class MRock
implements I_MRock
{
public final int rockHarvestLevel;
public final String name;
public MRock( final String name , final MapColor mapColor )
{
this( name , mapColor , 0 , 1.5f , 10f );
@ -31,11 +35,15 @@ public class MRock
final float resistance )
{
super( Material.ROCK , mapColor );
this.rockHarvestLevel = harvestLevel;
this.name = name;
this.setCreativeTab( CreativeTabs.BUILDING_BLOCKS );
this.setHardness( hardness );
this.setResistance( resistance );
this.setSoundType( SoundType.STONE );
this.setHarvestLevel( "pickaxe" , harvestLevel );
CRegistry.setIdentifiers( this , "materials" , "rock" , name );
CRegistry.addBlock( this );
}

View file

@ -0,0 +1,5 @@
{
"variants": {
"normal": { "model": "mmm:deco/smoothstone/basalt" }
}
}

View file

@ -0,0 +1,5 @@
{
"variants": {
"normal": { "model": "mmm:deco/smoothstone/limestone" }
}
}

View file

@ -0,0 +1,5 @@
{
"variants": {
"normal": { "model": "mmm:deco/smoothstone/slate" }
}
}

View file

@ -133,6 +133,10 @@ item.mmm.food.milk.horse.name=Horse milk
item.mmm.food.milk.donkey.name=Donkey milk
tile.mmm.deco.smoothstone.limestone.name=Polished Limestone
tile.mmm.deco.smoothstone.basalt.name=Polished Basalt
tile.mmm.deco.smoothstone.slate.name=Polished Slate
tile.mmm.deco.stairs.granite.name=Granite Stairs
tile.mmm.deco.stairs.diorite.name=Diorite Stairs
tile.mmm.deco.stairs.andesite.name=Andesite Stairs

View file

@ -0,0 +1,6 @@
{
"parent": "minecraft:block/cube_all",
"textures": {
"all": "mmm:blocks/deco/smoothstone/basalt"
}
}

View file

@ -0,0 +1,6 @@
{
"parent": "minecraft:block/cube_all",
"textures": {
"all": "mmm:blocks/deco/smoothstone/limestone"
}
}

View file

@ -0,0 +1,6 @@
{
"parent": "minecraft:block/cube_all",
"textures": {
"all": "mmm:blocks/deco/smoothstone/slate"
}
}

View file

@ -0,0 +1,3 @@
{
"parent": "mmm:block/deco/smoothstone/basalt"
}

View file

@ -0,0 +1,3 @@
{
"parent": "mmm:block/deco/smoothstone/limestone"
}

View file

@ -0,0 +1,3 @@
{
"parent": "mmm:block/deco/smoothstone/slate"
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 473 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 514 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 410 B