Implement powered lighting.

This commit is contained in:
Alistair Buxton 2017-10-13 18:40:36 +01:00
parent 4d227e1401
commit c6ac9110fe
10 changed files with 407 additions and 1 deletions

View file

@ -0,0 +1,39 @@
{
"forge_marker": 1,
"defaults": {
"transform": "forge:default-block",
"model": "techreborn:lamp_incandescent",
"textures": {
"particle": "#lamp"
}
},
"variants": {
"inventory": {
"transform": "forge:default-block",
"model": "techreborn:lamp_incandescent",
"textures": {
"lamp": "techreborn:blocks/machines/lighting/lamp"
}
},
"facing": {
"down": { "x": 180 },
"up": { "transform": "forge:default-block" },
"north": { "x": 90 },
"south": { "x": 270 },
"west": { "x": 90, "y": 270 },
"east": { "x": 90, "y": 90 }
},
"active": {
"true": {
"textures": {
"lamp": "techreborn:blocks/machines/lighting/lamp_lit"
}
},
"false": {
"textures": {
"lamp": "techreborn:blocks/machines/lighting/lamp"
}
}
}
}
}

View file

@ -0,0 +1,39 @@
{
"forge_marker": 1,
"defaults": {
"transform": "forge:default-block",
"model": "techreborn:lamp_led",
"textures": {
"particle": "#lamp"
}
},
"variants": {
"inventory": {
"transform": "forge:default-block",
"model": "techreborn:lamp_led",
"textures": {
"lamp": "techreborn:blocks/machines/lighting/lamp"
}
},
"facing": {
"down": { "x": 180 },
"up": { "transform": "forge:default-block" },
"north": { "x": 90 },
"south": { "x": 270 },
"west": { "x": 90, "y": 270 },
"east": { "x": 90, "y": 90 }
},
"active": {
"true": {
"textures": {
"lamp": "techreborn:blocks/machines/lighting/lamp_lit"
}
},
"false": {
"textures": {
"lamp": "techreborn:blocks/machines/lighting/lamp"
}
}
}
}
}

View file

@ -0,0 +1,33 @@
{
"textures": {
"0": "#lamp"
},
"elements": [
{
"name": "Lamp",
"from": [ 5, 0, 5 ],
"to": [ 11, 2, 11 ],
"faces": {
"down": { "texture": "#0", "uv": [0.0, 0.0, 1.0, 1.0] },
"up": { "texture": "#0", "uv": [0.0, 0.0, 1.0, 1.0] },
"north": { "texture": "#0", "uv": [0.0, 0.0, 1.0, 1.0] },
"south": { "texture": "#0", "uv": [0.0, 0.0, 1.0, 1.0] },
"west": { "texture": "#0", "uv": [0.0, 0.0, 1.0, 1.0] },
"east": { "texture": "#0", "uv": [0.0, 0.0, 1.0, 1.0] }
}
},
{
"name": "Lamp",
"from": [ 4, 2, 4 ],
"to": [ 12, 10, 12 ],
"faces": {
"down": { "texture": "#0", "uv": [1.0,1.0,15.0,15.0] },
"up": { "texture": "#0", "uv": [1.0,1.0,15.0,15.0] },
"north": { "texture": "#0", "uv": [1.0,1.0,15.0,15.0] },
"south": { "texture": "#0", "uv": [1.0,1.0,15.0,15.0] },
"west": { "texture": "#0", "uv": [1.0,1.0,15.0,15.0] },
"east": { "texture": "#0", "uv": [1.0,1.0,15.0,15.0] }
}
}
]
}

View file

@ -0,0 +1,20 @@
{
"textures": {
"0": "#lamp"
},
"elements": [
{
"name": "Lamp",
"from": [ 2, 0, 2 ],
"to": [ 14, 1, 14 ],
"faces": {
"down": { "texture": "#0", "uv": [0.0, 0.0, 1.0, 1.0] },
"up": { "texture": "#0", "uv": [1.0,1.0,15.0,15.0] },
"north": { "texture": "#0", "uv": [1.0,2.0,15.0,0.0] },
"south": { "texture": "#0", "uv": [1.0,2.0,15.0,0.0] },
"west": { "texture": "#0", "uv": [1.0,2.0,15.0,0.0] },
"east": { "texture": "#0", "uv": [1.0,2.0,15.0,0.0] }
}
}
]
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 257 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 161 B