Added CTM integration

This commit is contained in:
raoulvdberge
2017-07-30 14:55:53 +02:00
parent 8c953753e3
commit 68bc1f8278
25 changed files with 329 additions and 103 deletions

View File

@@ -1,12 +1,10 @@
{
"forge_marker": 1,
"defaults": {
"model": "orientable",
"model": "cube_all",
"textures": {
"particle": "refinedstorage:blocks/controller_0",
"side": "refinedstorage:blocks/controller_0",
"top": "refinedstorage:blocks/controller_0",
"front": "refinedstorage:blocks/controller_0"
"particle": "refinedstorage:blocks/controller_off",
"all": "refinedstorage:blocks/controller_off"
}
},
"variants": {
@@ -15,80 +13,23 @@
"transform": "forge:default-block"
}
],
"energy": {
"0": {
"energy_type": {
"off": {
},
"nearly_off": {
"textures": {
"front": "refinedstorage:blocks/controller_0"
"all": "refinedstorage:blocks/controller_nearly_off"
}
},
"1": {
"nearly_on": {
"textures": {
"side": "refinedstorage:blocks/controller_1",
"top": "refinedstorage:blocks/controller_1",
"front": "refinedstorage:blocks/controller_1"
"all": "refinedstorage:blocks/controller_nearly_on"
}
},
"2": {
"on": {
"textures": {
"side": "refinedstorage:blocks/controller_2",
"top": "refinedstorage:blocks/controller_2",
"front": "refinedstorage:blocks/controller_2"
"all": "refinedstorage:blocks/controller_on"
}
},
"3": {
"textures": {
"side": "refinedstorage:blocks/controller_on",
"top": "refinedstorage:blocks/controller_on",
"front": "refinedstorage:blocks/controller_on"
}
},
"4": {
"textures": {
"side": "refinedstorage:blocks/controller_on",
"top": "refinedstorage:blocks/controller_on",
"front": "refinedstorage:blocks/controller_on"
}
},
"5": {
"textures": {
"side": "refinedstorage:blocks/controller_on",
"top": "refinedstorage:blocks/controller_on",
"front": "refinedstorage:blocks/controller_on"
}
},
"6": {
"textures": {
"side": "refinedstorage:blocks/controller_on",
"top": "refinedstorage:blocks/controller_on",
"front": "refinedstorage:blocks/controller_on"
}
},
"7": {
"textures": {
"side": "refinedstorage:blocks/controller_on",
"top": "refinedstorage:blocks/controller_on",
"front": "refinedstorage:blocks/controller_on"
}
}
},
"direction": {
"north": {
"y": 0
},
"east": {
"y": 90
},
"south": {
"y": 180
},
"west": {
"y": 270
},
"up": {
"x": 270
},
"down": {
"x": 90
}
}
}

View File

@@ -0,0 +1,40 @@
{
"forge_marker": 1,
"defaults": {
"model": "refinedstorage:cube_all_glow",
"textures": {
"particle": "refinedstorage:blocks/controller_off",
"all": "refinedstorage:blocks/controller_off",
"glow": "refinedstorage:blocks/none"
}
},
"variants": {
"inventory": [
{
"transform": "forge:default-block"
}
],
"energy_type": {
"off": {
},
"nearly_off": {
"textures": {
"all": "refinedstorage:blocks/controller_nearly_off",
"glow": "refinedstorage:blocks/controller_nearly_off_glow"
}
},
"nearly_on": {
"textures": {
"all": "refinedstorage:blocks/controller_nearly_on",
"glow": "refinedstorage:blocks/controller_nearly_on_glow"
}
},
"on": {
"textures": {
"all": "refinedstorage:blocks/controller_on",
"glow": "refinedstorage:blocks/controller_on_glow"
}
}
}
}
}

View File

@@ -0,0 +1,83 @@
{
"parent": "block/cube_all",
"ambientocclusion": false,
"elements": [
{
"from": [
0,
0,
0
],
"to": [
16,
16,
16
],
"faces": {
"down": {
"texture": "#all",
"cullface": "down"
},
"up": {
"texture": "#all",
"cullface": "up"
},
"north": {
"texture": "#all",
"cullface": "north"
},
"south": {
"texture": "#all",
"cullface": "south"
},
"west": {
"texture": "#all",
"cullface": "west"
},
"east": {
"texture": "#all",
"cullface": "east"
}
}
},
{
"from": [
0,
0,
0
],
"to": [
16,
16,
16
],
"shade": false,
"faces": {
"down": {
"texture": "#glow",
"cullface": "down"
},
"up": {
"texture": "#glow",
"cullface": "up"
},
"north": {
"texture": "#glow",
"cullface": "north"
},
"south": {
"texture": "#glow",
"cullface": "south"
},
"west": {
"texture": "#glow",
"cullface": "west"
},
"east": {
"texture": "#glow",
"cullface": "east"
}
}
}
]
}

View File

@@ -1,6 +1,6 @@
{
"animation": {
"frametime": 2,
"frametime": 2,
"frames": [
0,
1,

View File

Before

Width:  |  Height:  |  Size: 3.4 KiB

After

Width:  |  Height:  |  Size: 3.4 KiB

View File

@@ -1,6 +1,6 @@
{
"animation": {
"frametime": 1,
"frametime": 1,
"frames": [
0,
1,

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.0 KiB

View File

@@ -0,0 +1,26 @@
{
"ctm": {
"ctm_version": 1,
"layer": "CUTOUT",
"extra": {
"light": 15
}
},
"animation": {
"frametime": 1,
"frames": [
0,
1,
2,
3,
4,
5,
6,
7,
8,
9,
10,
11
]
}
}

View File

Before

Width:  |  Height:  |  Size: 3.4 KiB

After

Width:  |  Height:  |  Size: 3.4 KiB

View File

@@ -1,6 +1,6 @@
{
"animation": {
"frametime": 2,
"frametime": 2,
"frames": [
0,
1,

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.0 KiB

View File

@@ -0,0 +1,26 @@
{
"ctm": {
"ctm_version": 1,
"layer": "CUTOUT",
"extra": {
"light": 15
}
},
"animation": {
"frametime": 2,
"frames": [
0,
1,
2,
3,
4,
5,
6,
7,
8,
9,
10,
11
]
}
}

View File

Before

Width:  |  Height:  |  Size: 1.3 KiB

After

Width:  |  Height:  |  Size: 1.3 KiB

View File

@@ -1,6 +1,6 @@
{
"animation": {
"frametime": 2,
"frametime": 2,
"frames": [
0,
1,

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.9 KiB

View File

@@ -0,0 +1,26 @@
{
"ctm": {
"ctm_version": 1,
"layer": "CUTOUT",
"extra": {
"light": 15
}
},
"animation": {
"frametime": 2,
"frames": [
0,
1,
2,
3,
4,
5,
6,
7,
8,
9,
10,
11
]
}
}

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.8 KiB

View File

@@ -1,6 +1,6 @@
{
"animation": {
"frametime": 1,
"frametime": 1,
"frames": [
0,
1,
@@ -14,14 +14,14 @@
9,
10,
11,
12,
13,
14,
15,
16,
17,
18,
19
12,
13,
14,
15,
16,
17,
18,
19
]
}
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 198 B

View File

@@ -0,0 +1,9 @@
{
"ctm": {
"ctm_version": 1,
"layer": "CUTOUT",
"extra": {
"light": 15
}
}
}