Fullbright portable grid disks. #1860
@@ -10,6 +10,7 @@ import com.raoulvdberge.refinedstorage.item.itemblock.ItemBlockPortableGrid;
|
||||
import com.raoulvdberge.refinedstorage.render.IModelRegistration;
|
||||
import com.raoulvdberge.refinedstorage.render.collision.constants.ConstantsPortableGrid;
|
||||
import com.raoulvdberge.refinedstorage.render.meshdefinition.ItemMeshDefinitionPortableGrid;
|
||||
import com.raoulvdberge.refinedstorage.render.model.baked.BakedModelFullbright;
|
||||
import com.raoulvdberge.refinedstorage.tile.grid.portable.TilePortableGrid;
|
||||
import net.minecraft.block.properties.PropertyBool;
|
||||
import net.minecraft.block.properties.PropertyEnum;
|
||||
@@ -47,6 +48,11 @@ public class BlockPortableGrid extends BlockBase {
|
||||
public void registerModels(IModelRegistration modelRegistration) {
|
||||
modelRegistration.setStateMapper(this, new StateMap.Builder().ignore(TYPE).build());
|
||||
modelRegistration.setModelMeshDefinition(this, new ItemMeshDefinitionPortableGrid());
|
||||
|
||||
modelRegistration.addBakedModelOverride(info.getId(), base -> new BakedModelFullbright(
|
||||
base,
|
||||
RS.ID + ":blocks/disks/leds"
|
||||
));
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
@@ -18,32 +18,16 @@
|
||||
"variants": {
|
||||
"disk_state": {
|
||||
"normal": {
|
||||
"textures": {
|
||||
"disk0": "refinedstorage:blocks/portable_grid_disk",
|
||||
"disk1": "refinedstorage:blocks/portable_grid_disk"
|
||||
},
|
||||
"submodel": "refinedstorage:portable_grid_disk"
|
||||
"submodel": "refinedstorage:disks/portable_grid_disk"
|
||||
},
|
||||
"near_capacity": {
|
||||
"textures": {
|
||||
"disk0": "refinedstorage:blocks/portable_grid_disk_near_capacity",
|
||||
"disk1": "refinedstorage:blocks/portable_grid_disk_near_capacity"
|
||||
},
|
||||
"submodel": "refinedstorage:portable_grid_disk"
|
||||
"submodel": "refinedstorage:disks/portable_grid_disk_near_capacity"
|
||||
},
|
||||
"full": {
|
||||
"textures": {
|
||||
"disk0": "refinedstorage:blocks/portable_grid_disk_full",
|
||||
"disk1": "refinedstorage:blocks/portable_grid_disk_full"
|
||||
},
|
||||
"submodel": "refinedstorage:portable_grid_disk"
|
||||
"submodel": "refinedstorage:disks/portable_grid_disk_full"
|
||||
},
|
||||
"disconnected": {
|
||||
"textures": {
|
||||
"disk0": "refinedstorage:blocks/portable_grid_disk_disconnected",
|
||||
"disk1": "refinedstorage:blocks/portable_grid_disk_disconnected"
|
||||
},
|
||||
"submodel": "refinedstorage:portable_grid_disk"
|
||||
"submodel": "refinedstorage:disks/portable_grid_disk_disconnected"
|
||||
},
|
||||
"none": {
|
||||
}
|
||||
|
||||
@@ -0,0 +1,150 @@
|
||||
{
|
||||
"textures": {
|
||||
"disk": "refinedstorage:blocks/disks/portable_grid_disk",
|
||||
"led": "refinedstorage:blocks/disks/leds"
|
||||
},
|
||||
"elements": [
|
||||
{
|
||||
"name": "disk",
|
||||
"from": [
|
||||
-1,
|
||||
2,
|
||||
9
|
||||
],
|
||||
"to": [
|
||||
0,
|
||||
4,
|
||||
14
|
||||
],
|
||||
"shade": true,
|
||||
"faces": {
|
||||
"north": {
|
||||
"uv": [
|
||||
5,
|
||||
5,
|
||||
6,
|
||||
7
|
||||
],
|
||||
"texture": "#disk"
|
||||
},
|
||||
"east": {
|
||||
"uv": [
|
||||
0,
|
||||
5,
|
||||
5,
|
||||
7
|
||||
],
|
||||
"texture": "#disk"
|
||||
},
|
||||
"south": {
|
||||
"uv": [
|
||||
11,
|
||||
5,
|
||||
12,
|
||||
7
|
||||
],
|
||||
"texture": "#disk"
|
||||
},
|
||||
"west": {
|
||||
"uv": [
|
||||
6,
|
||||
5,
|
||||
11,
|
||||
7
|
||||
],
|
||||
"texture": "#disk"
|
||||
},
|
||||
"up": {
|
||||
"uv": [
|
||||
5,
|
||||
0,
|
||||
6,
|
||||
5
|
||||
],
|
||||
"texture": "#disk",
|
||||
"rotation": 180
|
||||
},
|
||||
"down": {
|
||||
"uv": [
|
||||
6,
|
||||
0,
|
||||
7,
|
||||
5
|
||||
],
|
||||
"texture": "#disk",
|
||||
"rotation": 180
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "disk_led",
|
||||
"from": [
|
||||
-1.05,
|
||||
2,
|
||||
12
|
||||
],
|
||||
"to": [
|
||||
-0.050000000000000044,
|
||||
3,
|
||||
13
|
||||
],
|
||||
"shade": true,
|
||||
"faces": {
|
||||
"east": {
|
||||
"uv": [
|
||||
2,
|
||||
0,
|
||||
2,
|
||||
0
|
||||
],
|
||||
"texture": "#led"
|
||||
},
|
||||
"west": {
|
||||
"uv": [
|
||||
2,
|
||||
0,
|
||||
2,
|
||||
0
|
||||
],
|
||||
"texture": "#led"
|
||||
},
|
||||
"north": {
|
||||
"uv": [
|
||||
2,
|
||||
0,
|
||||
2,
|
||||
0
|
||||
],
|
||||
"texture": "#led"
|
||||
},
|
||||
"south": {
|
||||
"uv": [
|
||||
2,
|
||||
0,
|
||||
2,
|
||||
0
|
||||
],
|
||||
"texture": "#led"
|
||||
},
|
||||
"up": {
|
||||
"uv": [
|
||||
2,
|
||||
0,
|
||||
2,
|
||||
0
|
||||
],
|
||||
"texture": "#led"
|
||||
},
|
||||
"down": {
|
||||
"uv": [
|
||||
2,
|
||||
0,
|
||||
2,
|
||||
0
|
||||
],
|
||||
"texture": "#led"
|
||||
}
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
@@ -1,4 +1,8 @@
|
||||
{
|
||||
"textures": {
|
||||
"disk": "refinedstorage:blocks/disks/portable_grid_disk",
|
||||
"led": "refinedstorage:blocks/disks/portable_grid_leds"
|
||||
},
|
||||
"elements": [
|
||||
{
|
||||
"name": "disk",
|
||||
@@ -21,7 +25,7 @@
|
||||
6,
|
||||
7
|
||||
],
|
||||
"texture": "#disk1"
|
||||
"texture": "#disk"
|
||||
},
|
||||
"east": {
|
||||
"uv": [
|
||||
@@ -30,7 +34,7 @@
|
||||
5,
|
||||
7
|
||||
],
|
||||
"texture": "#disk1"
|
||||
"texture": "#disk"
|
||||
},
|
||||
"south": {
|
||||
"uv": [
|
||||
@@ -39,7 +43,7 @@
|
||||
12,
|
||||
7
|
||||
],
|
||||
"texture": "#disk1"
|
||||
"texture": "#disk"
|
||||
},
|
||||
"west": {
|
||||
"uv": [
|
||||
@@ -48,7 +52,7 @@
|
||||
11,
|
||||
7
|
||||
],
|
||||
"texture": "#disk1"
|
||||
"texture": "#disk"
|
||||
},
|
||||
"up": {
|
||||
"uv": [
|
||||
@@ -57,7 +61,7 @@
|
||||
6,
|
||||
5
|
||||
],
|
||||
"texture": "#disk1",
|
||||
"texture": "#disk",
|
||||
"rotation": 180
|
||||
},
|
||||
"down": {
|
||||
@@ -67,7 +71,7 @@
|
||||
7,
|
||||
5
|
||||
],
|
||||
"texture": "#disk1",
|
||||
"texture": "#disk",
|
||||
"rotation": 180
|
||||
}
|
||||
}
|
||||
@@ -88,21 +92,21 @@
|
||||
"faces": {
|
||||
"east": {
|
||||
"uv": [
|
||||
2,
|
||||
1,
|
||||
3,
|
||||
2
|
||||
0,
|
||||
3,
|
||||
0
|
||||
],
|
||||
"texture": "#disk1"
|
||||
"texture": "#led"
|
||||
},
|
||||
"west": {
|
||||
"uv": [
|
||||
2,
|
||||
1,
|
||||
3,
|
||||
2
|
||||
0,
|
||||
3,
|
||||
0
|
||||
],
|
||||
"texture": "#disk0"
|
||||
"texture": "#led"
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,150 @@
|
||||
{
|
||||
"textures": {
|
||||
"disk": "refinedstorage:blocks/disks/portable_grid_disk",
|
||||
"led": "refinedstorage:blocks/disks/leds"
|
||||
},
|
||||
"elements": [
|
||||
{
|
||||
"name": "disk",
|
||||
"from": [
|
||||
-1,
|
||||
2,
|
||||
9
|
||||
],
|
||||
"to": [
|
||||
0,
|
||||
4,
|
||||
14
|
||||
],
|
||||
"shade": true,
|
||||
"faces": {
|
||||
"north": {
|
||||
"uv": [
|
||||
5,
|
||||
5,
|
||||
6,
|
||||
7
|
||||
],
|
||||
"texture": "#disk"
|
||||
},
|
||||
"east": {
|
||||
"uv": [
|
||||
0,
|
||||
5,
|
||||
5,
|
||||
7
|
||||
],
|
||||
"texture": "#disk"
|
||||
},
|
||||
"south": {
|
||||
"uv": [
|
||||
11,
|
||||
5,
|
||||
12,
|
||||
7
|
||||
],
|
||||
"texture": "#disk"
|
||||
},
|
||||
"west": {
|
||||
"uv": [
|
||||
6,
|
||||
5,
|
||||
11,
|
||||
7
|
||||
],
|
||||
"texture": "#disk"
|
||||
},
|
||||
"up": {
|
||||
"uv": [
|
||||
5,
|
||||
0,
|
||||
6,
|
||||
5
|
||||
],
|
||||
"texture": "#disk",
|
||||
"rotation": 180
|
||||
},
|
||||
"down": {
|
||||
"uv": [
|
||||
6,
|
||||
0,
|
||||
7,
|
||||
5
|
||||
],
|
||||
"texture": "#disk",
|
||||
"rotation": 180
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "disk_led",
|
||||
"from": [
|
||||
-1.05,
|
||||
2,
|
||||
12
|
||||
],
|
||||
"to": [
|
||||
-0.050000000000000044,
|
||||
3,
|
||||
13
|
||||
],
|
||||
"shade": true,
|
||||
"faces": {
|
||||
"east": {
|
||||
"uv": [
|
||||
1,
|
||||
0,
|
||||
1,
|
||||
0
|
||||
],
|
||||
"texture": "#led"
|
||||
},
|
||||
"west": {
|
||||
"uv": [
|
||||
1,
|
||||
0,
|
||||
1,
|
||||
0
|
||||
],
|
||||
"texture": "#led"
|
||||
},
|
||||
"north": {
|
||||
"uv": [
|
||||
1,
|
||||
0,
|
||||
1,
|
||||
0
|
||||
],
|
||||
"texture": "#led"
|
||||
},
|
||||
"south": {
|
||||
"uv": [
|
||||
1,
|
||||
0,
|
||||
1,
|
||||
0
|
||||
],
|
||||
"texture": "#led"
|
||||
},
|
||||
"up": {
|
||||
"uv": [
|
||||
1,
|
||||
0,
|
||||
1,
|
||||
0
|
||||
],
|
||||
"texture": "#led"
|
||||
},
|
||||
"down": {
|
||||
"uv": [
|
||||
1,
|
||||
0,
|
||||
1,
|
||||
0
|
||||
],
|
||||
"texture": "#led"
|
||||
}
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
@@ -0,0 +1,150 @@
|
||||
{
|
||||
"textures": {
|
||||
"disk": "refinedstorage:blocks/disks/portable_grid_disk",
|
||||
"led": "refinedstorage:blocks/disks/leds"
|
||||
},
|
||||
"elements": [
|
||||
{
|
||||
"name": "disk",
|
||||
"from": [
|
||||
-1,
|
||||
2,
|
||||
9
|
||||
],
|
||||
"to": [
|
||||
0,
|
||||
4,
|
||||
14
|
||||
],
|
||||
"shade": true,
|
||||
"faces": {
|
||||
"north": {
|
||||
"uv": [
|
||||
5,
|
||||
5,
|
||||
6,
|
||||
7
|
||||
],
|
||||
"texture": "#disk"
|
||||
},
|
||||
"east": {
|
||||
"uv": [
|
||||
0,
|
||||
5,
|
||||
5,
|
||||
7
|
||||
],
|
||||
"texture": "#disk"
|
||||
},
|
||||
"south": {
|
||||
"uv": [
|
||||
11,
|
||||
5,
|
||||
12,
|
||||
7
|
||||
],
|
||||
"texture": "#disk"
|
||||
},
|
||||
"west": {
|
||||
"uv": [
|
||||
6,
|
||||
5,
|
||||
11,
|
||||
7
|
||||
],
|
||||
"texture": "#disk"
|
||||
},
|
||||
"up": {
|
||||
"uv": [
|
||||
5,
|
||||
0,
|
||||
6,
|
||||
5
|
||||
],
|
||||
"texture": "#disk",
|
||||
"rotation": 180
|
||||
},
|
||||
"down": {
|
||||
"uv": [
|
||||
6,
|
||||
0,
|
||||
7,
|
||||
5
|
||||
],
|
||||
"texture": "#disk",
|
||||
"rotation": 180
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "disk_led",
|
||||
"from": [
|
||||
-1.05,
|
||||
2,
|
||||
12
|
||||
],
|
||||
"to": [
|
||||
-0.050000000000000044,
|
||||
3,
|
||||
13
|
||||
],
|
||||
"shade": true,
|
||||
"faces": {
|
||||
"east": {
|
||||
"uv": [
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
0
|
||||
],
|
||||
"texture": "#led"
|
||||
},
|
||||
"west": {
|
||||
"uv": [
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
0
|
||||
],
|
||||
"texture": "#led"
|
||||
},
|
||||
"north": {
|
||||
"uv": [
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
0
|
||||
],
|
||||
"texture": "#led"
|
||||
},
|
||||
"south": {
|
||||
"uv": [
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
0
|
||||
],
|
||||
"texture": "#led"
|
||||
},
|
||||
"up": {
|
||||
"uv": [
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
0
|
||||
],
|
||||
"texture": "#led"
|
||||
},
|
||||
"down": {
|
||||
"uv": [
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
0
|
||||
],
|
||||
"texture": "#led"
|
||||
}
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
|
Before Width: | Height: | Size: 306 B After Width: | Height: | Size: 291 B |
|
After Width: | Height: | Size: 320 B |
|
After Width: | Height: | Size: 209 B |
|
Before Width: | Height: | Size: 1.1 KiB |
|
Before Width: | Height: | Size: 1.1 KiB |
|
Before Width: | Height: | Size: 1.1 KiB |
|
Before Width: | Height: | Size: 1.1 KiB |