Skip to content

Commit 76f97c7

Browse files
committed
fix: fixed slabs being invisible (issue #6) and formatting
Signed-off-by: ok-coder1 <codershub.code@gmail.com>
1 parent b69290c commit 76f97c7

File tree

13 files changed

+64
-7
lines changed

13 files changed

+64
-7
lines changed

src/main/java/com/okcoder1/matrixblocks/ModBlocks.java

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -56,9 +56,6 @@ public static Block register(Block block, String name, boolean shouldRegisterIte
5656
true
5757
);
5858

59-
// TODO(@ok-coder1): Fix slabs not showing if placed on top of each other
60-
// labels: todo, bug, help wanted
61-
// Issue URL: https://github.com/ok-coder1/matrix-blocks/issues/6
6259
public static final Block MATRIX_SLAB = register(
6360
new SlabBlock(AbstractBlock.Settings.create().sounds(BlockSoundGroup.COPPER)),
6461
"matrix_slab",
Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,13 @@
11
{
2-
"variants": {
3-
"": { "model": "matrix-blocks:block/fading_matrix_slab" }
2+
"variants": {
3+
"type=bottom": {
4+
"model": "matrix-blocks:block/fading_matrix_slab"
5+
},
6+
"type=double": {
7+
"model": "matrix-blocks:block/fading_matrix_block"
8+
},
9+
"type=top": {
10+
"model": "matrix-blocks:block/fading_matrix_slab_top"
11+
}
412
}
513
}
Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,13 @@
11
{
2-
"variants": {
3-
"": { "model": "matrix-blocks:block/matrix_slab" }
2+
"variants": {
3+
"type=bottom": {
4+
"model": "matrix-blocks:block/matrix_slab"
5+
},
6+
"type=double": {
7+
"model": "matrix-blocks:block/matrix_block"
8+
},
9+
"type=top": {
10+
"model": "matrix-blocks:block/matrix_slab_top"
11+
}
412
}
513
}
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
{
2+
"parent": "minecraft:block/slab_top",
3+
"textures": {
4+
"bottom": "matrix-blocks:block/fading_matrix_block",
5+
"side": "matrix-blocks:block/fading_matrix_block",
6+
"top": "matrix-blocks:block/fading_matrix_block"
7+
}
8+
}
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
{
2+
"parent": "minecraft:block/slab_top",
3+
"textures": {
4+
"bottom": "matrix-blocks:block/matrix_block",
5+
"side": "matrix-blocks:block/matrix_block",
6+
"top": "matrix-blocks:block/matrix_block"
7+
}
8+
}
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
{
2+
"parent": "block/cube_all",
3+
"textures": {
4+
"all": "matrix-blocks:block/fading_matrix_block"
5+
}
6+
}
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
{
2+
"parent": "minecraft:block/slab_top",
3+
"textures": {
4+
"bottom": "matrix-blocks:block/fading_matrix_block",
5+
"side": "matrix-blocks:block/fading_matrix_block",
6+
"top": "matrix-blocks:block/fading_matrix_block"
7+
}
8+
}
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
{
2+
"parent": "block/cube_all",
3+
"textures": {
4+
"all": "matrix-blocks:block/matrix_block"
5+
}
6+
}
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
{
2+
"parent": "minecraft:block/slab_top",
3+
"textures": {
4+
"bottom": "matrix-blocks:block/matrix_block",
5+
"side": "matrix-blocks:block/matrix_block",
6+
"top": "matrix-blocks:block/matrix_block"
7+
}
8+
}
-1.4 MB
Loading

0 commit comments

Comments
 (0)