Extra stairs from granite, diorite and andesite

This commit is contained in:
Emmanuel BENOîT 2016-06-14 21:35:10 +02:00
parent aab0faa13c
commit 457a6f33e4
17 changed files with 270 additions and 0 deletions

View file

@ -0,0 +1,49 @@
package mmm.deco;
import mmm.utils.I_URecipeRegistrar;
import mmm.utils.URegistry;
import net.minecraft.block.Block;
import net.minecraft.block.BlockStairs;
import net.minecraft.block.BlockStone;
import net.minecraft.block.state.IBlockState;
import net.minecraft.init.Blocks;
import net.minecraft.item.ItemStack;
import net.minecraftforge.fml.common.registry.GameRegistry;
public class DExtraStairs
extends BlockStairs
implements I_URecipeRegistrar
{
public static DExtraStairs makeStoneStairs( BlockStone.EnumType type )
{
IBlockState bs = Blocks.STONE.getDefaultState( ).withProperty( BlockStone.VARIANT , type );
return new DExtraStairs( bs , type.getName( ).replace( "smooth_" , "" ) );
}
public final IBlockState modelState;
public final Block modelBlock;
public DExtraStairs( final IBlockState modelState , String name )
{
super( modelState );
this.modelState = modelState;
this.modelBlock = modelState.getBlock( );
URegistry.setIdentifiers( this , "deco" , "stairs" , name );
}
@Override
public void registerRecipes( )
{
GameRegistry.addShapedRecipe( new ItemStack( this ) , //
"B " , //
"BB " , //
"BBB" , //
'B' , new ItemStack( this.modelBlock , 1 , this.modelBlock.getMetaFromState( this.modelState ) ) );
}
}

View file

@ -2,11 +2,15 @@ package mmm.deco;
import mmm.utils.URegistry;
import net.minecraft.block.BlockStone;
public class DecorativeBlocks
{
public static final DExtraStairs STAIRS_GRANITE;
public static final DExtraStairs STAIRS_DIORITE;
public static final DExtraStairs STAIRS_ANDESITE;
public static final DBlockTable TABLE_OAK;
public static final DBlockTable TABLE_BIRCH;
@ -23,6 +27,10 @@ public class DecorativeBlocks
public static final DBlockChair CHAIR_ACACIA;
static {
URegistry.addBlock( STAIRS_GRANITE = DExtraStairs.makeStoneStairs( BlockStone.EnumType.GRANITE_SMOOTH ) );
URegistry.addBlock( STAIRS_DIORITE = DExtraStairs.makeStoneStairs( BlockStone.EnumType.DIORITE_SMOOTH ) );
URegistry.addBlock( STAIRS_ANDESITE = DExtraStairs.makeStoneStairs( BlockStone.EnumType.ANDESITE_SMOOTH ) );
URegistry.addBlock( TABLE_OAK = new DBlockTable( E_DWoodType.OAK ) );
URegistry.addBlock( TABLE_BIRCH = new DBlockTable( E_DWoodType.BIRCH ) );
URegistry.addBlock( TABLE_SPRUCE = new DBlockTable( E_DWoodType.SPRUCE ) );

View file

@ -0,0 +1,44 @@
{
"variants": {
"facing=east,half=bottom,shape=straight": { "model": "mmm:deco/stairs/andesite/straight" },
"facing=west,half=bottom,shape=straight": { "model": "mmm:deco/stairs/andesite/straight", "y": 180, "uvlock": true },
"facing=south,half=bottom,shape=straight": { "model": "mmm:deco/stairs/andesite/straight", "y": 90, "uvlock": true },
"facing=north,half=bottom,shape=straight": { "model": "mmm:deco/stairs/andesite/straight", "y": 270, "uvlock": true },
"facing=east,half=bottom,shape=outer_right": { "model": "mmm:deco/stairs/andesite/outer" },
"facing=west,half=bottom,shape=outer_right": { "model": "mmm:deco/stairs/andesite/outer", "y": 180, "uvlock": true },
"facing=south,half=bottom,shape=outer_right": { "model": "mmm:deco/stairs/andesite/outer", "y": 90, "uvlock": true },
"facing=north,half=bottom,shape=outer_right": { "model": "mmm:deco/stairs/andesite/outer", "y": 270, "uvlock": true },
"facing=east,half=bottom,shape=outer_left": { "model": "mmm:deco/stairs/andesite/outer", "y": 270, "uvlock": true },
"facing=west,half=bottom,shape=outer_left": { "model": "mmm:deco/stairs/andesite/outer", "y": 90, "uvlock": true },
"facing=south,half=bottom,shape=outer_left": { "model": "mmm:deco/stairs/andesite/outer" },
"facing=north,half=bottom,shape=outer_left": { "model": "mmm:deco/stairs/andesite/outer", "y": 180, "uvlock": true },
"facing=east,half=bottom,shape=inner_right": { "model": "mmm:deco/stairs/andesite/inner" },
"facing=west,half=bottom,shape=inner_right": { "model": "mmm:deco/stairs/andesite/inner", "y": 180, "uvlock": true },
"facing=south,half=bottom,shape=inner_right": { "model": "mmm:deco/stairs/andesite/inner", "y": 90, "uvlock": true },
"facing=north,half=bottom,shape=inner_right": { "model": "mmm:deco/stairs/andesite/inner", "y": 270, "uvlock": true },
"facing=east,half=bottom,shape=inner_left": { "model": "mmm:deco/stairs/andesite/inner", "y": 270, "uvlock": true },
"facing=west,half=bottom,shape=inner_left": { "model": "mmm:deco/stairs/andesite/inner", "y": 90, "uvlock": true },
"facing=south,half=bottom,shape=inner_left": { "model": "mmm:deco/stairs/andesite/inner" },
"facing=north,half=bottom,shape=inner_left": { "model": "mmm:deco/stairs/andesite/inner", "y": 180, "uvlock": true },
"facing=east,half=top,shape=straight": { "model": "mmm:deco/stairs/andesite/straight", "x": 180, "uvlock": true },
"facing=west,half=top,shape=straight": { "model": "mmm:deco/stairs/andesite/straight", "x": 180, "y": 180, "uvlock": true },
"facing=south,half=top,shape=straight": { "model": "mmm:deco/stairs/andesite/straight", "x": 180, "y": 90, "uvlock": true },
"facing=north,half=top,shape=straight": { "model": "mmm:deco/stairs/andesite/straight", "x": 180, "y": 270, "uvlock": true },
"facing=east,half=top,shape=outer_right": { "model": "mmm:deco/stairs/andesite/outer", "x": 180, "y": 90, "uvlock": true },
"facing=west,half=top,shape=outer_right": { "model": "mmm:deco/stairs/andesite/outer", "x": 180, "y": 270, "uvlock": true },
"facing=south,half=top,shape=outer_right": { "model": "mmm:deco/stairs/andesite/outer", "x": 180, "y": 180, "uvlock": true },
"facing=north,half=top,shape=outer_right": { "model": "mmm:deco/stairs/andesite/outer", "x": 180, "uvlock": true },
"facing=east,half=top,shape=outer_left": { "model": "mmm:deco/stairs/andesite/outer", "x": 180, "uvlock": true },
"facing=west,half=top,shape=outer_left": { "model": "mmm:deco/stairs/andesite/outer", "x": 180, "y": 180, "uvlock": true },
"facing=south,half=top,shape=outer_left": { "model": "mmm:deco/stairs/andesite/outer", "x": 180, "y": 90, "uvlock": true },
"facing=north,half=top,shape=outer_left": { "model": "mmm:deco/stairs/andesite/outer", "x": 180, "y": 270, "uvlock": true },
"facing=east,half=top,shape=inner_right": { "model": "mmm:deco/stairs/andesite/inner", "x": 180, "y": 90, "uvlock": true },
"facing=west,half=top,shape=inner_right": { "model": "mmm:deco/stairs/andesite/inner", "x": 180, "y": 270, "uvlock": true },
"facing=south,half=top,shape=inner_right": { "model": "mmm:deco/stairs/andesite/inner", "x": 180, "y": 180, "uvlock": true },
"facing=north,half=top,shape=inner_right": { "model": "mmm:deco/stairs/andesite/inner", "x": 180, "uvlock": true },
"facing=east,half=top,shape=inner_left": { "model": "mmm:deco/stairs/andesite/inner", "x": 180, "uvlock": true },
"facing=west,half=top,shape=inner_left": { "model": "mmm:deco/stairs/andesite/inner", "x": 180, "y": 180, "uvlock": true },
"facing=south,half=top,shape=inner_left": { "model": "mmm:deco/stairs/andesite/inner", "x": 180, "y": 90, "uvlock": true },
"facing=north,half=top,shape=inner_left": { "model": "mmm:deco/stairs/andesite/inner", "x": 180, "y": 270, "uvlock": true }
}
}

View file

@ -0,0 +1,44 @@
{
"variants": {
"facing=east,half=bottom,shape=straight": { "model": "mmm:deco/stairs/diorite/straight" },
"facing=west,half=bottom,shape=straight": { "model": "mmm:deco/stairs/diorite/straight", "y": 180, "uvlock": true },
"facing=south,half=bottom,shape=straight": { "model": "mmm:deco/stairs/diorite/straight", "y": 90, "uvlock": true },
"facing=north,half=bottom,shape=straight": { "model": "mmm:deco/stairs/diorite/straight", "y": 270, "uvlock": true },
"facing=east,half=bottom,shape=outer_right": { "model": "mmm:deco/stairs/diorite/outer" },
"facing=west,half=bottom,shape=outer_right": { "model": "mmm:deco/stairs/diorite/outer", "y": 180, "uvlock": true },
"facing=south,half=bottom,shape=outer_right": { "model": "mmm:deco/stairs/diorite/outer", "y": 90, "uvlock": true },
"facing=north,half=bottom,shape=outer_right": { "model": "mmm:deco/stairs/diorite/outer", "y": 270, "uvlock": true },
"facing=east,half=bottom,shape=outer_left": { "model": "mmm:deco/stairs/diorite/outer", "y": 270, "uvlock": true },
"facing=west,half=bottom,shape=outer_left": { "model": "mmm:deco/stairs/diorite/outer", "y": 90, "uvlock": true },
"facing=south,half=bottom,shape=outer_left": { "model": "mmm:deco/stairs/diorite/outer" },
"facing=north,half=bottom,shape=outer_left": { "model": "mmm:deco/stairs/diorite/outer", "y": 180, "uvlock": true },
"facing=east,half=bottom,shape=inner_right": { "model": "mmm:deco/stairs/diorite/inner" },
"facing=west,half=bottom,shape=inner_right": { "model": "mmm:deco/stairs/diorite/inner", "y": 180, "uvlock": true },
"facing=south,half=bottom,shape=inner_right": { "model": "mmm:deco/stairs/diorite/inner", "y": 90, "uvlock": true },
"facing=north,half=bottom,shape=inner_right": { "model": "mmm:deco/stairs/diorite/inner", "y": 270, "uvlock": true },
"facing=east,half=bottom,shape=inner_left": { "model": "mmm:deco/stairs/diorite/inner", "y": 270, "uvlock": true },
"facing=west,half=bottom,shape=inner_left": { "model": "mmm:deco/stairs/diorite/inner", "y": 90, "uvlock": true },
"facing=south,half=bottom,shape=inner_left": { "model": "mmm:deco/stairs/diorite/inner" },
"facing=north,half=bottom,shape=inner_left": { "model": "mmm:deco/stairs/diorite/inner", "y": 180, "uvlock": true },
"facing=east,half=top,shape=straight": { "model": "mmm:deco/stairs/diorite/straight", "x": 180, "uvlock": true },
"facing=west,half=top,shape=straight": { "model": "mmm:deco/stairs/diorite/straight", "x": 180, "y": 180, "uvlock": true },
"facing=south,half=top,shape=straight": { "model": "mmm:deco/stairs/diorite/straight", "x": 180, "y": 90, "uvlock": true },
"facing=north,half=top,shape=straight": { "model": "mmm:deco/stairs/diorite/straight", "x": 180, "y": 270, "uvlock": true },
"facing=east,half=top,shape=outer_right": { "model": "mmm:deco/stairs/diorite/outer", "x": 180, "y": 90, "uvlock": true },
"facing=west,half=top,shape=outer_right": { "model": "mmm:deco/stairs/diorite/outer", "x": 180, "y": 270, "uvlock": true },
"facing=south,half=top,shape=outer_right": { "model": "mmm:deco/stairs/diorite/outer", "x": 180, "y": 180, "uvlock": true },
"facing=north,half=top,shape=outer_right": { "model": "mmm:deco/stairs/diorite/outer", "x": 180, "uvlock": true },
"facing=east,half=top,shape=outer_left": { "model": "mmm:deco/stairs/diorite/outer", "x": 180, "uvlock": true },
"facing=west,half=top,shape=outer_left": { "model": "mmm:deco/stairs/diorite/outer", "x": 180, "y": 180, "uvlock": true },
"facing=south,half=top,shape=outer_left": { "model": "mmm:deco/stairs/diorite/outer", "x": 180, "y": 90, "uvlock": true },
"facing=north,half=top,shape=outer_left": { "model": "mmm:deco/stairs/diorite/outer", "x": 180, "y": 270, "uvlock": true },
"facing=east,half=top,shape=inner_right": { "model": "mmm:deco/stairs/diorite/inner", "x": 180, "y": 90, "uvlock": true },
"facing=west,half=top,shape=inner_right": { "model": "mmm:deco/stairs/diorite/inner", "x": 180, "y": 270, "uvlock": true },
"facing=south,half=top,shape=inner_right": { "model": "mmm:deco/stairs/diorite/inner", "x": 180, "y": 180, "uvlock": true },
"facing=north,half=top,shape=inner_right": { "model": "mmm:deco/stairs/diorite/inner", "x": 180, "uvlock": true },
"facing=east,half=top,shape=inner_left": { "model": "mmm:deco/stairs/diorite/inner", "x": 180, "uvlock": true },
"facing=west,half=top,shape=inner_left": { "model": "mmm:deco/stairs/diorite/inner", "x": 180, "y": 180, "uvlock": true },
"facing=south,half=top,shape=inner_left": { "model": "mmm:deco/stairs/diorite/inner", "x": 180, "y": 90, "uvlock": true },
"facing=north,half=top,shape=inner_left": { "model": "mmm:deco/stairs/diorite/inner", "x": 180, "y": 270, "uvlock": true }
}
}

View file

@ -0,0 +1,44 @@
{
"variants": {
"facing=east,half=bottom,shape=straight": { "model": "mmm:deco/stairs/granite/straight" },
"facing=west,half=bottom,shape=straight": { "model": "mmm:deco/stairs/granite/straight", "y": 180, "uvlock": true },
"facing=south,half=bottom,shape=straight": { "model": "mmm:deco/stairs/granite/straight", "y": 90, "uvlock": true },
"facing=north,half=bottom,shape=straight": { "model": "mmm:deco/stairs/granite/straight", "y": 270, "uvlock": true },
"facing=east,half=bottom,shape=outer_right": { "model": "mmm:deco/stairs/granite/outer" },
"facing=west,half=bottom,shape=outer_right": { "model": "mmm:deco/stairs/granite/outer", "y": 180, "uvlock": true },
"facing=south,half=bottom,shape=outer_right": { "model": "mmm:deco/stairs/granite/outer", "y": 90, "uvlock": true },
"facing=north,half=bottom,shape=outer_right": { "model": "mmm:deco/stairs/granite/outer", "y": 270, "uvlock": true },
"facing=east,half=bottom,shape=outer_left": { "model": "mmm:deco/stairs/granite/outer", "y": 270, "uvlock": true },
"facing=west,half=bottom,shape=outer_left": { "model": "mmm:deco/stairs/granite/outer", "y": 90, "uvlock": true },
"facing=south,half=bottom,shape=outer_left": { "model": "mmm:deco/stairs/granite/outer" },
"facing=north,half=bottom,shape=outer_left": { "model": "mmm:deco/stairs/granite/outer", "y": 180, "uvlock": true },
"facing=east,half=bottom,shape=inner_right": { "model": "mmm:deco/stairs/granite/inner" },
"facing=west,half=bottom,shape=inner_right": { "model": "mmm:deco/stairs/granite/inner", "y": 180, "uvlock": true },
"facing=south,half=bottom,shape=inner_right": { "model": "mmm:deco/stairs/granite/inner", "y": 90, "uvlock": true },
"facing=north,half=bottom,shape=inner_right": { "model": "mmm:deco/stairs/granite/inner", "y": 270, "uvlock": true },
"facing=east,half=bottom,shape=inner_left": { "model": "mmm:deco/stairs/granite/inner", "y": 270, "uvlock": true },
"facing=west,half=bottom,shape=inner_left": { "model": "mmm:deco/stairs/granite/inner", "y": 90, "uvlock": true },
"facing=south,half=bottom,shape=inner_left": { "model": "mmm:deco/stairs/granite/inner" },
"facing=north,half=bottom,shape=inner_left": { "model": "mmm:deco/stairs/granite/inner", "y": 180, "uvlock": true },
"facing=east,half=top,shape=straight": { "model": "mmm:deco/stairs/granite/straight", "x": 180, "uvlock": true },
"facing=west,half=top,shape=straight": { "model": "mmm:deco/stairs/granite/straight", "x": 180, "y": 180, "uvlock": true },
"facing=south,half=top,shape=straight": { "model": "mmm:deco/stairs/granite/straight", "x": 180, "y": 90, "uvlock": true },
"facing=north,half=top,shape=straight": { "model": "mmm:deco/stairs/granite/straight", "x": 180, "y": 270, "uvlock": true },
"facing=east,half=top,shape=outer_right": { "model": "mmm:deco/stairs/granite/outer", "x": 180, "y": 90, "uvlock": true },
"facing=west,half=top,shape=outer_right": { "model": "mmm:deco/stairs/granite/outer", "x": 180, "y": 270, "uvlock": true },
"facing=south,half=top,shape=outer_right": { "model": "mmm:deco/stairs/granite/outer", "x": 180, "y": 180, "uvlock": true },
"facing=north,half=top,shape=outer_right": { "model": "mmm:deco/stairs/granite/outer", "x": 180, "uvlock": true },
"facing=east,half=top,shape=outer_left": { "model": "mmm:deco/stairs/granite/outer", "x": 180, "uvlock": true },
"facing=west,half=top,shape=outer_left": { "model": "mmm:deco/stairs/granite/outer", "x": 180, "y": 180, "uvlock": true },
"facing=south,half=top,shape=outer_left": { "model": "mmm:deco/stairs/granite/outer", "x": 180, "y": 90, "uvlock": true },
"facing=north,half=top,shape=outer_left": { "model": "mmm:deco/stairs/granite/outer", "x": 180, "y": 270, "uvlock": true },
"facing=east,half=top,shape=inner_right": { "model": "mmm:deco/stairs/granite/inner", "x": 180, "y": 90, "uvlock": true },
"facing=west,half=top,shape=inner_right": { "model": "mmm:deco/stairs/granite/inner", "x": 180, "y": 270, "uvlock": true },
"facing=south,half=top,shape=inner_right": { "model": "mmm:deco/stairs/granite/inner", "x": 180, "y": 180, "uvlock": true },
"facing=north,half=top,shape=inner_right": { "model": "mmm:deco/stairs/granite/inner", "x": 180, "uvlock": true },
"facing=east,half=top,shape=inner_left": { "model": "mmm:deco/stairs/granite/inner", "x": 180, "uvlock": true },
"facing=west,half=top,shape=inner_left": { "model": "mmm:deco/stairs/granite/inner", "x": 180, "y": 180, "uvlock": true },
"facing=south,half=top,shape=inner_left": { "model": "mmm:deco/stairs/granite/inner", "x": 180, "y": 90, "uvlock": true },
"facing=north,half=top,shape=inner_left": { "model": "mmm:deco/stairs/granite/inner", "x": 180, "y": 270, "uvlock": true }
}
}

View file

@ -0,0 +1,8 @@
{
"parent": "minecraft:block/inner_stairs",
"textures": {
"bottom": "minecraft:blocks/stone_andesite_smooth",
"top": "minecraft:blocks/stone_andesite_smooth",
"side": "minecraft:blocks/stone_andesite_smooth"
}
}

View file

@ -0,0 +1,8 @@
{
"parent": "minecraft:block/outer_stairs",
"textures": {
"bottom": "minecraft:blocks/stone_andesite_smooth",
"top": "minecraft:blocks/stone_andesite_smooth",
"side": "minecraft:blocks/stone_andesite_smooth"
}
}

View file

@ -0,0 +1,8 @@
{
"parent": "minecraft:block/stairs",
"textures": {
"bottom": "minecraft:blocks/stone_andesite_smooth",
"top": "minecraft:blocks/stone_andesite_smooth",
"side": "minecraft:blocks/stone_andesite_smooth"
}
}

View file

@ -0,0 +1,8 @@
{
"parent": "minecraft:block/inner_stairs",
"textures": {
"bottom": "minecraft:blocks/stone_diorite_smooth",
"top": "minecraft:blocks/stone_diorite_smooth",
"side": "minecraft:blocks/stone_diorite_smooth"
}
}

View file

@ -0,0 +1,8 @@
{
"parent": "minecraft:block/outer_stairs",
"textures": {
"bottom": "minecraft:blocks/stone_diorite_smooth",
"top": "minecraft:blocks/stone_diorite_smooth",
"side": "minecraft:blocks/stone_diorite_smooth"
}
}

View file

@ -0,0 +1,8 @@
{
"parent": "minecraft:block/stairs",
"textures": {
"bottom": "minecraft:blocks/stone_diorite_smooth",
"top": "minecraft:blocks/stone_diorite_smooth",
"side": "minecraft:blocks/stone_diorite_smooth"
}
}

View file

@ -0,0 +1,8 @@
{
"parent": "minecraft:block/inner_stairs",
"textures": {
"bottom": "minecraft:blocks/stone_granite_smooth",
"top": "minecraft:blocks/stone_granite_smooth",
"side": "minecraft:blocks/stone_granite_smooth"
}
}

View file

@ -0,0 +1,8 @@
{
"parent": "minecraft:block/outer_stairs",
"textures": {
"bottom": "minecraft:blocks/stone_granite_smooth",
"top": "minecraft:blocks/stone_granite_smooth",
"side": "minecraft:blocks/stone_granite_smooth"
}
}

View file

@ -0,0 +1,8 @@
{
"parent": "minecraft:block/stairs",
"textures": {
"bottom": "minecraft:blocks/stone_granite_smooth",
"top": "minecraft:blocks/stone_granite_smooth",
"side": "minecraft:blocks/stone_granite_smooth"
}
}

View file

@ -0,0 +1,3 @@
{
"parent": "mmm:block/deco/stairs/andesite/straight"
}

View file

@ -0,0 +1,3 @@
{
"parent": "mmm:block/deco/stairs/diorite/straight"
}

View file

@ -0,0 +1,3 @@
{
"parent": "mmm:block/deco/stairs/granite/straight"
}