Now with fancy output blocks

This commit is contained in:
WayofTime 2016-01-15 19:36:44 -05:00
parent 07c138710c
commit 2c666a931e
7 changed files with 188 additions and 6 deletions

View file

@ -1,6 +1,45 @@
{
"variants": {
"normal": { "model": "bloodmagic:BlockOutputRoutingNode" }
}
"forge_marker": 1,
"defaults": {
"model": "bloodmagic:routing/OutputRoutingNodeCore",
"rotation": [
{
"y": 45
},
{
"x": 45
}
],
"textures": {
"core": "blocks/iron_block",
"attachment": "minecraft:blocks/stone"
},
"uvlock": true // This and all other properties of "defaults" will be inherited by simple submodels. They will NOT be inherited by named submodels.
},
"variants": {
"north": {
"true": {"submodel": "bloodmagic:routing/RoutingNodeBase"}, // Simple submodel declaration. You can also specify multiple submodels for a variant.
"false": {}
},
"south": {
"true": {"submodel": "bloodmagic:routing/RoutingNodeBase", "y": 180},
"false": {}
},
"east": {
"true": {"submodel": "bloodmagic:routing/RoutingNodeBase", "y": 90}, // Submodel will be rotated.
"false": {}
},
"west": {
"true": {"submodel": "bloodmagic:routing/RoutingNodeBase", "y": 270},
"false": {}
},
"down": {
"true": {"submodel": "bloodmagic:routing/RoutingNodeBase", "x": 90},
"false": {}
},
"up": {
"true": {"submodel": "bloodmagic:routing/RoutingNodeBase", "x": -90},
"false": {}
} // Must have this in here or the blockstates loader will not know of all the properties and values, and it will create the wrong vanilla state strings.
}
}

View file

@ -0,0 +1,20 @@
{
"textures": {
"particle": "#core"
},
"elements": [
{
"from": [ 6, 6, 6 ],
"to": [ 10, 10, 10 ],
"faces": {
"down": { "uv": [ 6, 6, 10, 10 ], "texture": "#core" },
"up": { "uv": [ 6, 6, 10, 10 ], "texture": "#core" },
"north": { "uv": [ 6, 6, 10, 10 ], "texture": "#core" },
"west": { "uv": [ 6, 6, 10, 10 ], "texture": "#core" },
"east": { "uv": [ 6, 6, 10, 10 ], "texture": "#core" },
"south": { "uv": [ 6, 6, 10, 10 ], "texture": "#core" }
},
"__comment": "core"
}
]
}

View file

@ -0,0 +1,33 @@
{
"textures": {
"particle": "#core"
},
"elements": [
{
"from": [ 4, 4, 0 ],
"to": [ 12, 12, 2 ],
"faces": {
"down": { "uv": [ 4, 11, 5, 16 ], "texture": "#attachment" },
"up": { "uv": [ 4, 0, 5, 5 ], "texture": "#attachment" },
"north": { "uv": [ 11, 6, 12, 12 ], "texture": "#attachment" },
"west": { "uv": [ 0, 6, 5, 12 ], "texture": "#attachment" },
"east": { "uv": [ 11, 6, 16, 12 ], "texture": "#attachment" },
"south": { "uv": [ 4, 6, 5, 12 ], "texture": "#attachment" }
},
"__comment": "part 1"
},
{
"from": [ 6, 6, 2 ],
"to": [ 10, 10, 4 ],
"faces": {
"down": { "uv": [ 4, 11, 5, 16 ], "texture": "#attachment" },
"up": { "uv": [ 4, 0, 5, 5 ], "texture": "#attachment" },
"north": { "uv": [ 11, 6, 12, 12 ], "texture": "#attachment" },
"west": { "uv": [ 0, 6, 5, 12 ], "texture": "#attachment" },
"east": { "uv": [ 11, 6, 16, 12 ], "texture": "#attachment" },
"south": { "uv": [ 4, 6, 5, 12 ], "texture": "#attachment" }
},
"__comment": "part 2"
}
]
}

View file

@ -0,0 +1,14 @@
{
"parent": "bloodmagic:block/routing/OutputRoutingNodeCore",
"textures": {
"core": "blocks/iron_block",
"attachment": "minecraft:blocks/stone"
},
"display": {
"thirdperson": {
"rotation": [ 10, -45, 170 ],
"translation": [ 0, 1.5, -2.75 ],
"scale": [ 0.375, 0.375, 0.375 ]
}
}
}