Error with multiple bellows types
This commit is contained in:
@@ -54,6 +54,7 @@ public class ModInfo {
|
||||
|
||||
public enum ForgecraftBlocks {
|
||||
FIREBOX("firebox", "firebox"),
|
||||
PISTONBELLOWSJUNGLE("pistonbellowsjungle", "pistonbellowsjungle"),
|
||||
PISTONBELLOWS("pistonbellows", "pistonbellows");
|
||||
|
||||
private String unlocalizedName;
|
||||
|
||||
@@ -17,21 +17,25 @@ public class ModBlocks {
|
||||
|
||||
public static Block firebox;
|
||||
public static Block pistonbellows;
|
||||
public static Block pistonbellowsjungle;
|
||||
|
||||
public static void init() {
|
||||
|
||||
firebox = new Firebox(Material.ROCK);
|
||||
pistonbellows = new PistonBellows(Material.WOOD);
|
||||
pistonbellowsjungle = new PistonBellows(Material.WOOD);
|
||||
}
|
||||
|
||||
public static void register() {
|
||||
registerBlock(firebox);
|
||||
registerBlock(pistonbellows);
|
||||
registerBlock(pistonbellowsjungle);
|
||||
}
|
||||
|
||||
public static void registerRenders() {
|
||||
registerRender(firebox);
|
||||
registerRender(pistonbellows);
|
||||
registerRender(pistonbellowsjungle);
|
||||
}
|
||||
|
||||
private static void registerBlock(Block block) {
|
||||
|
||||
@@ -0,0 +1,20 @@
|
||||
{
|
||||
"forge_marker":1,
|
||||
"defaults": {
|
||||
"textures": {
|
||||
"particle": "blocks/checker_test",
|
||||
"texture_test": "blocks/checker_test",
|
||||
"texture": "blocks/planks_jungle"
|
||||
},
|
||||
},
|
||||
"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 }
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user