Skip to content

Commit

Permalink
tablet assets
Browse files Browse the repository at this point in the history
  • Loading branch information
MehVahdJukaar committed Oct 30, 2024
1 parent 31dae51 commit 7b623a9
Show file tree
Hide file tree
Showing 9 changed files with 97 additions and 13 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

import galena.doom_and_gloom.DoomAndGloom;
import galena.doom_and_gloom.content.block.SepulcherBlock;
import galena.doom_and_gloom.content.block.StoneTabletBlock;
import net.minecraft.core.Direction;
import net.minecraft.data.PackOutput;
import net.minecraft.resources.ResourceLocation;
Expand Down Expand Up @@ -117,18 +118,13 @@ public void sepulcherBlock(Supplier<? extends Block> block) {
}

private String candleSuffix(int amount) {
switch (amount) {
case 1:
return "single";
case 2:
return "double";
case 3:
return "triple";
case 4:
return "quadruple";
default:
throw new IllegalArgumentException("Illegal candle amount: " + amount);
}
return switch (amount) {
case 1 -> "single";
case 2 -> "double";
case 3 -> "triple";
case 4 -> "quadruple";
default -> throw new IllegalArgumentException("Illegal candle amount: " + amount);
};
}

public void vigilCandle(Supplier<? extends Block> block, @Nullable String prefix) {
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,72 @@
{
"variants": {
"attached=true,facing=north,engraved=false": {
"model": "doom_and_gloom:block/stone_tablet_wall"
},
"attached=true,facing=east,engraved=false": {
"model": "doom_and_gloom:block/stone_tablet_wall",
"y": 90
},
"attached=true,facing=south,engraved=false": {
"model": "doom_and_gloom:block/stone_tablet_wall",
"y": 180
},
"attached=true,facing=west,engraved=false": {
"model": "doom_and_gloom:block/stone_tablet_wall",
"y": 270
},


"attached=false,facing=north,engraved=false": {
"model": "doom_and_gloom:block/stone_tablet"
},
"attached=false,facing=east,engraved=false": {
"model": "doom_and_gloom:block/stone_tablet",
"y": 90
},
"attached=false,facing=south,engraved=false": {
"model": "doom_and_gloom:block/stone_tablet",
"y": 180
},
"attached=false,facing=west,engraved=false": {
"model": "doom_and_gloom:block/stone_tablet",
"y": 270
},




"attached=true,facing=north,engraved=true": {
"model": "doom_and_gloom:block/stone_tablet_wall_engraved"
},
"attached=true,facing=east,engraved=true": {
"model": "doom_and_gloom:block/stone_tablet_wall_engraved",
"y": 90
},
"attached=true,facing=south,engraved=true": {
"model": "doom_and_gloom:block/stone_tablet_wall_engraved",
"y": 180
},
"attached=true,facing=west,engraved=true": {
"model": "doom_and_gloom:block/stone_tablet_wall_engraved",
"y": 270
},


"attached=false,facing=north,engraved=true": {
"model": "doom_and_gloom:block/stone_tablet_engraved"
},
"attached=false,facing=east,engraved=true": {
"model": "doom_and_gloom:block/stone_tablet_engraved",
"y": 90
},
"attached=false,facing=south,engraved=true": {
"model": "doom_and_gloom:block/stone_tablet_engraved",
"y": 180
},
"attached=false,facing=west,engraved=true": {
"model": "doom_and_gloom:block/stone_tablet_engraved",
"y": 270
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"credit": "Made with Blockbench",
"texture_size": [32, 32],
"textures": {
"particle": "stone_tablet_new"
"particle": "doom_and_gloom:block/stone_tablet"
},
"elements": [
{
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"parent": "doom_and_gloom:block/stone_tablet",
"credit": "Made with Blockbench",
"texture_size": [32, 32],
"textures": {
"particle": "doom_and_gloom:block/stone_tablet"
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"parent": "doom_and_gloom:block/stone_tablet_wall",
"credit": "Made with Blockbench",
"texture_size": [32, 32],
"textures": {
"particle": "doom_and_gloom:block/stone_tablet_engraved"
}
}
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 7b623a9

Please sign in to comment.