bellows wood types are now supported
This commit is contained in:
@@ -54,7 +54,7 @@ public class ModInfo {
|
|||||||
|
|
||||||
public enum ForgecraftBlocks {
|
public enum ForgecraftBlocks {
|
||||||
FIREBOX("firebox", "firebox"),
|
FIREBOX("firebox", "firebox"),
|
||||||
PISTONBELLOWSJUNGLE("pistonbellowsjungle", "pistonbellowsjungle"),
|
//PISTONBELLOWSJUNGLE("pistonbellowsjungle", "pistonbellowsjungle"),
|
||||||
PISTONBELLOWS("pistonbellows", "pistonbellows");
|
PISTONBELLOWS("pistonbellows", "pistonbellows");
|
||||||
|
|
||||||
private String unlocalizedName;
|
private String unlocalizedName;
|
||||||
|
|||||||
@@ -44,11 +44,12 @@ public class PistonBellows extends CustomContainerFacing {
|
|||||||
protected static final AxisAlignedBB boundBoxEast = new AxisAlignedBB(0.0D, 0.0D, 0.1875D, 1.0D, 12 / 16D, 1.0D);
|
protected static final AxisAlignedBB boundBoxEast = new AxisAlignedBB(0.0D, 0.0D, 0.1875D, 1.0D, 12 / 16D, 1.0D);
|
||||||
protected static final AxisAlignedBB boundBoxWest = new AxisAlignedBB(0.0D, 0.0D, 0.0D, 1.0D, 12 / 16D, 0.8125D);
|
protected static final AxisAlignedBB boundBoxWest = new AxisAlignedBB(0.0D, 0.0D, 0.0D, 1.0D, 12 / 16D, 0.8125D);
|
||||||
|
|
||||||
public PistonBellows(Material material) {
|
public PistonBellows(Material material, String registryName) {
|
||||||
super(material);
|
super(material);
|
||||||
|
|
||||||
setUnlocalizedName(ModInfo.ForgecraftBlocks.PISTONBELLOWS.getUnlocalizedName());
|
setUnlocalizedName(ModInfo.ForgecraftBlocks.PISTONBELLOWS.getUnlocalizedName());
|
||||||
setRegistryName(ModInfo.ForgecraftBlocks.PISTONBELLOWS.getRegistryName());
|
//setRegistryName(ModInfo.ForgecraftBlocks.PISTONBELLOWS.getRegistryName());
|
||||||
|
setRegistryName(registryName);
|
||||||
setCreativeTab(ModInfo.TAB_FORGECRAFT);
|
setCreativeTab(ModInfo.TAB_FORGECRAFT);
|
||||||
setDefaultState(this.blockState.getBaseState().withProperty(FACING, EnumFacing.NORTH).withProperty(ACTIVE, Boolean.valueOf(false)));
|
setDefaultState(this.blockState.getBaseState().withProperty(FACING, EnumFacing.NORTH).withProperty(ACTIVE, Boolean.valueOf(false)));
|
||||||
setHardness(3.0f);
|
setHardness(3.0f);
|
||||||
|
|||||||
@@ -16,26 +16,44 @@ import nmd.primal.forgecraft.blocks.PistonBellows;
|
|||||||
public class ModBlocks {
|
public class ModBlocks {
|
||||||
|
|
||||||
public static Block firebox;
|
public static Block firebox;
|
||||||
public static Block pistonbellows;
|
//public static Block pistonbellows;
|
||||||
|
public static Block pistonbellowsoak;
|
||||||
public static Block pistonbellowsjungle;
|
public static Block pistonbellowsjungle;
|
||||||
|
public static Block pistonbellowsbirch;
|
||||||
|
public static Block pistonbellowsspruce;
|
||||||
|
public static Block pistonbellowsdarkoak;
|
||||||
|
public static Block pistonbellowsacacia;
|
||||||
|
|
||||||
|
|
||||||
public static void init() {
|
public static void init() {
|
||||||
|
|
||||||
firebox = new Firebox(Material.ROCK);
|
firebox = new Firebox(Material.ROCK);
|
||||||
pistonbellows = new PistonBellows(Material.WOOD);
|
pistonbellowsoak = new PistonBellows(Material.WOOD, "pistonbellowsoak");
|
||||||
pistonbellowsjungle = new PistonBellows(Material.WOOD);
|
pistonbellowsjungle = new PistonBellows(Material.WOOD, "pistonbellowsjungle");
|
||||||
|
pistonbellowsbirch = new PistonBellows(Material.WOOD, "pistonbellowsbirch");
|
||||||
|
pistonbellowsspruce = new PistonBellows(Material.WOOD, "pistonbellowsspruce");
|
||||||
|
pistonbellowsdarkoak = new PistonBellows(Material.WOOD, "pistonbellowsdarkoak");
|
||||||
|
pistonbellowsacacia = new PistonBellows(Material.WOOD, "pistonbellowsacacia");
|
||||||
}
|
}
|
||||||
|
|
||||||
public static void register() {
|
public static void register() {
|
||||||
registerBlock(firebox);
|
registerBlock(firebox);
|
||||||
registerBlock(pistonbellows);
|
registerBlock(pistonbellowsoak);
|
||||||
registerBlock(pistonbellowsjungle);
|
registerBlock(pistonbellowsjungle);
|
||||||
|
registerBlock(pistonbellowsbirch);
|
||||||
|
registerBlock(pistonbellowsspruce);
|
||||||
|
registerBlock(pistonbellowsdarkoak);
|
||||||
|
registerBlock(pistonbellowsacacia);
|
||||||
}
|
}
|
||||||
|
|
||||||
public static void registerRenders() {
|
public static void registerRenders() {
|
||||||
registerRender(firebox);
|
registerRender(firebox);
|
||||||
registerRender(pistonbellows);
|
registerRender(pistonbellowsoak);
|
||||||
registerRender(pistonbellowsjungle);
|
registerRender(pistonbellowsjungle);
|
||||||
|
registerRender(pistonbellowsbirch);
|
||||||
|
registerRender(pistonbellowsspruce);
|
||||||
|
registerRender(pistonbellowsdarkoak);
|
||||||
|
registerRender(pistonbellowsacacia);
|
||||||
}
|
}
|
||||||
|
|
||||||
private static void registerBlock(Block block) {
|
private static void registerBlock(Block block) {
|
||||||
|
|||||||
@@ -16,7 +16,19 @@ public class ModCrafting {
|
|||||||
GameRegistry.addShapedRecipe(new ItemStack(ModBlocks.firebox), "X X", "XYX", "X X", 'X', Items.BRICK, 'Y', Blocks.FURNACE);
|
GameRegistry.addShapedRecipe(new ItemStack(ModBlocks.firebox), "X X", "XYX", "X X", 'X', Items.BRICK, 'Y', Blocks.FURNACE);
|
||||||
|
|
||||||
/***Wooden PistonBellows***/
|
/***Wooden PistonBellows***/
|
||||||
GameRegistry.addShapedRecipe(new ItemStack(ModBlocks.pistonbellows), "XXX", "X Y", "XXX", 'X', Blocks.PLANKS, 'Y', ModItems.pistonbellows);
|
GameRegistry.addShapedRecipe(new ItemStack(ModBlocks.pistonbellowsoak), "XXX", "X Y", "XXX",
|
||||||
|
'X', new ItemStack(Blocks.PLANKS, 1, 0), 'Y', ModItems.pistonbellows);
|
||||||
|
GameRegistry.addShapedRecipe(new ItemStack(ModBlocks.pistonbellowsspruce), "XXX", "X Y", "XXX",
|
||||||
|
'X', new ItemStack(Blocks.PLANKS, 1, 1), 'Y', ModItems.pistonbellows);
|
||||||
|
GameRegistry.addShapedRecipe(new ItemStack(ModBlocks.pistonbellowsbirch), "XXX", "X Y", "XXX",
|
||||||
|
'X', new ItemStack(Blocks.PLANKS, 1, 2), 'Y', ModItems.pistonbellows);
|
||||||
|
GameRegistry.addShapedRecipe(new ItemStack(ModBlocks.pistonbellowsjungle), "XXX", "X Y", "XXX",
|
||||||
|
'X', new ItemStack(Blocks.PLANKS, 1, 3), 'Y', ModItems.pistonbellows);
|
||||||
|
GameRegistry.addShapedRecipe(new ItemStack(ModBlocks.pistonbellowsacacia), "XXX", "X Y", "XXX",
|
||||||
|
'X', new ItemStack(Blocks.PLANKS, 1, 4), 'Y', ModItems.pistonbellows);
|
||||||
|
GameRegistry.addShapedRecipe(new ItemStack(ModBlocks.pistonbellowsdarkoak), "XXX", "X Y", "XXX",
|
||||||
|
'X', new ItemStack(Blocks.PLANKS, 1, 5), 'Y', ModItems.pistonbellows);
|
||||||
|
|
||||||
GameRegistry.addShapedRecipe(new ItemStack(ModItems.pistonbellows), "X X", "X X", " X ", 'X', Items.STICK);
|
GameRegistry.addShapedRecipe(new ItemStack(ModItems.pistonbellows), "X X", "X X", " X ", 'X', Items.STICK);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -0,0 +1,21 @@
|
|||||||
|
{
|
||||||
|
"forge_marker":1,
|
||||||
|
"defaults": {
|
||||||
|
"textures": {
|
||||||
|
"particle": "blocks/checker_test",
|
||||||
|
"texture_test": "blocks/checker_test",
|
||||||
|
"texture": "blocks/planks_acacia"
|
||||||
|
},
|
||||||
|
"parent": "forgecraft:block/pistonbellows"
|
||||||
|
},
|
||||||
|
"variants": {
|
||||||
|
"active=false,facing=north": { "model": "forgecraft:pistonbellows" },
|
||||||
|
"active=true,facing=north": { "model": "forgecraft:pistonbellows" },
|
||||||
|
"active=false,facing=east": { "model": "forgecraft:pistonbellows", "y": 90 },
|
||||||
|
"active=true,facing=east": { "model": "forgecraft:pistonbellows", "y": 90 },
|
||||||
|
"active=false,facing=south": { "model": "forgecraft:pistonbellows", "y": 180 },
|
||||||
|
"active=true,facing=south": { "model": "forgecraft:pistonbellows", "y": 180 },
|
||||||
|
"active=false,facing=west": { "model": "forgecraft:pistonbellows", "y": 270 },
|
||||||
|
"active=true,facing=west": { "model": "forgecraft:pistonbellows", "y": 270 }
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -0,0 +1,21 @@
|
|||||||
|
{
|
||||||
|
"forge_marker":1,
|
||||||
|
"defaults": {
|
||||||
|
"textures": {
|
||||||
|
"particle": "blocks/checker_test",
|
||||||
|
"texture_test": "blocks/checker_test",
|
||||||
|
"texture": "blocks/planks_birch"
|
||||||
|
},
|
||||||
|
"parent": "forgecraft:block/pistonbellows"
|
||||||
|
},
|
||||||
|
"variants": {
|
||||||
|
"active=false,facing=north": { "model": "forgecraft:pistonbellows" },
|
||||||
|
"active=true,facing=north": { "model": "forgecraft:pistonbellows" },
|
||||||
|
"active=false,facing=east": { "model": "forgecraft:pistonbellows", "y": 90 },
|
||||||
|
"active=true,facing=east": { "model": "forgecraft:pistonbellows", "y": 90 },
|
||||||
|
"active=false,facing=south": { "model": "forgecraft:pistonbellows", "y": 180 },
|
||||||
|
"active=true,facing=south": { "model": "forgecraft:pistonbellows", "y": 180 },
|
||||||
|
"active=false,facing=west": { "model": "forgecraft:pistonbellows", "y": 270 },
|
||||||
|
"active=true,facing=west": { "model": "forgecraft:pistonbellows", "y": 270 }
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -0,0 +1,21 @@
|
|||||||
|
{
|
||||||
|
"forge_marker":1,
|
||||||
|
"defaults": {
|
||||||
|
"textures": {
|
||||||
|
"particle": "blocks/checker_test",
|
||||||
|
"texture_test": "blocks/checker_test",
|
||||||
|
"texture": "blocks/planks_big_oak"
|
||||||
|
},
|
||||||
|
"parent": "forgecraft:block/pistonbellows"
|
||||||
|
},
|
||||||
|
"variants": {
|
||||||
|
"active=false,facing=north": { "model": "forgecraft:pistonbellows" },
|
||||||
|
"active=true,facing=north": { "model": "forgecraft:pistonbellows" },
|
||||||
|
"active=false,facing=east": { "model": "forgecraft:pistonbellows", "y": 90 },
|
||||||
|
"active=true,facing=east": { "model": "forgecraft:pistonbellows", "y": 90 },
|
||||||
|
"active=false,facing=south": { "model": "forgecraft:pistonbellows", "y": 180 },
|
||||||
|
"active=true,facing=south": { "model": "forgecraft:pistonbellows", "y": 180 },
|
||||||
|
"active=false,facing=west": { "model": "forgecraft:pistonbellows", "y": 270 },
|
||||||
|
"active=true,facing=west": { "model": "forgecraft:pistonbellows", "y": 270 }
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -6,6 +6,7 @@
|
|||||||
"texture_test": "blocks/checker_test",
|
"texture_test": "blocks/checker_test",
|
||||||
"texture": "blocks/planks_jungle"
|
"texture": "blocks/planks_jungle"
|
||||||
},
|
},
|
||||||
|
"parent": "forgecraft:block/pistonbellows"
|
||||||
},
|
},
|
||||||
"variants": {
|
"variants": {
|
||||||
"active=false,facing=north": { "model": "forgecraft:pistonbellows" },
|
"active=false,facing=north": { "model": "forgecraft:pistonbellows" },
|
||||||
|
|||||||
@@ -1,4 +1,13 @@
|
|||||||
{
|
{
|
||||||
|
"forge_marker":1,
|
||||||
|
"defaults": {
|
||||||
|
"textures": {
|
||||||
|
"particle": "blocks/checker_test",
|
||||||
|
"texture_test": "blocks/checker_test",
|
||||||
|
"texture": "blocks/planks_oak"
|
||||||
|
},
|
||||||
|
"parent": "forgecraft:block/pistonbellows"
|
||||||
|
},
|
||||||
"variants": {
|
"variants": {
|
||||||
"active=false,facing=north": { "model": "forgecraft:pistonbellows" },
|
"active=false,facing=north": { "model": "forgecraft:pistonbellows" },
|
||||||
"active=true,facing=north": { "model": "forgecraft:pistonbellows" },
|
"active=true,facing=north": { "model": "forgecraft:pistonbellows" },
|
||||||
@@ -0,0 +1,21 @@
|
|||||||
|
{
|
||||||
|
"forge_marker":1,
|
||||||
|
"defaults": {
|
||||||
|
"textures": {
|
||||||
|
"particle": "blocks/checker_test",
|
||||||
|
"texture_test": "blocks/checker_test",
|
||||||
|
"texture": "blocks/planks_spruce"
|
||||||
|
},
|
||||||
|
"parent": "forgecraft:block/pistonbellows"
|
||||||
|
},
|
||||||
|
"variants": {
|
||||||
|
"active=false,facing=north": { "model": "forgecraft:pistonbellows" },
|
||||||
|
"active=true,facing=north": { "model": "forgecraft:pistonbellows" },
|
||||||
|
"active=false,facing=east": { "model": "forgecraft:pistonbellows", "y": 90 },
|
||||||
|
"active=true,facing=east": { "model": "forgecraft:pistonbellows", "y": 90 },
|
||||||
|
"active=false,facing=south": { "model": "forgecraft:pistonbellows", "y": 180 },
|
||||||
|
"active=true,facing=south": { "model": "forgecraft:pistonbellows", "y": 180 },
|
||||||
|
"active=false,facing=west": { "model": "forgecraft:pistonbellows", "y": 270 },
|
||||||
|
"active=true,facing=west": { "model": "forgecraft:pistonbellows", "y": 270 }
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -0,0 +1,9 @@
|
|||||||
|
{
|
||||||
|
"forge_marker":1,
|
||||||
|
"textures": {
|
||||||
|
"particle": "blocks/checker_test",
|
||||||
|
"texture_test": "blocks/checker_test",
|
||||||
|
"texture": "blocks/planks_acacia"
|
||||||
|
},
|
||||||
|
"parent": "forgecraft:block/pistonbellows"
|
||||||
|
}
|
||||||
@@ -0,0 +1,9 @@
|
|||||||
|
{
|
||||||
|
"forge_marker":1,
|
||||||
|
"textures": {
|
||||||
|
"particle": "blocks/checker_test",
|
||||||
|
"texture_test": "blocks/checker_test",
|
||||||
|
"texture": "blocks/planks_birch"
|
||||||
|
},
|
||||||
|
"parent": "forgecraft:block/pistonbellows"
|
||||||
|
}
|
||||||
@@ -0,0 +1,9 @@
|
|||||||
|
{
|
||||||
|
"forge_marker":1,
|
||||||
|
"textures": {
|
||||||
|
"particle": "blocks/checker_test",
|
||||||
|
"texture_test": "blocks/checker_test",
|
||||||
|
"texture": "blocks/planks_big_oak"
|
||||||
|
},
|
||||||
|
"parent": "forgecraft:block/pistonbellows"
|
||||||
|
}
|
||||||
@@ -0,0 +1,9 @@
|
|||||||
|
{
|
||||||
|
"forge_marker":1,
|
||||||
|
"textures": {
|
||||||
|
"particle": "blocks/checker_test",
|
||||||
|
"texture_test": "blocks/checker_test",
|
||||||
|
"texture": "blocks/planks_jungle"
|
||||||
|
},
|
||||||
|
"parent": "forgecraft:block/pistonbellows"
|
||||||
|
}
|
||||||
@@ -0,0 +1,10 @@
|
|||||||
|
|
||||||
|
{
|
||||||
|
"forge_marker":1,
|
||||||
|
"textures": {
|
||||||
|
"particle": "blocks/checker_test",
|
||||||
|
"texture_test": "blocks/checker_test",
|
||||||
|
"texture": "blocks/planks_oak"
|
||||||
|
},
|
||||||
|
"parent": "forgecraft:block/pistonbellows"
|
||||||
|
}
|
||||||
@@ -0,0 +1,10 @@
|
|||||||
|
|
||||||
|
{
|
||||||
|
"forge_marker":1,
|
||||||
|
"textures": {
|
||||||
|
"particle": "blocks/checker_test",
|
||||||
|
"texture_test": "blocks/checker_test",
|
||||||
|
"texture": "blocks/planks_spruce"
|
||||||
|
},
|
||||||
|
"parent": "forgecraft:block/pistonbellows"
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user