Skip to content

Commit

Permalink
shimmer stone brick stairs and slab
Browse files Browse the repository at this point in the history
  • Loading branch information
Lyof429 committed Aug 20, 2024
1 parent a8cfc09 commit 2e541f1
Show file tree
Hide file tree
Showing 16 changed files with 342 additions and 3 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
{
"variants": {
"type=bottom": {
"model": "infernalexp:block/shimmer_stone_brick_slab"
},
"type=double": {
"model": "infernalexp:block/shimmer_stone_bricks"
},
"type=top": {
"model": "infernalexp:block/shimmer_stone_brick_slab_top"
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,209 @@
{
"variants": {
"facing=east,half=bottom,shape=inner_left": {
"model": "infernalexp:block/shimmer_stone_brick_stairs_inner",
"uvlock": true,
"y": 270
},
"facing=east,half=bottom,shape=inner_right": {
"model": "infernalexp:block/shimmer_stone_brick_stairs_inner"
},
"facing=east,half=bottom,shape=outer_left": {
"model": "infernalexp:block/shimmer_stone_brick_stairs_outer",
"uvlock": true,
"y": 270
},
"facing=east,half=bottom,shape=outer_right": {
"model": "infernalexp:block/shimmer_stone_brick_stairs_outer"
},
"facing=east,half=bottom,shape=straight": {
"model": "infernalexp:block/shimmer_stone_brick_stairs"
},
"facing=east,half=top,shape=inner_left": {
"model": "infernalexp:block/shimmer_stone_brick_stairs_inner",
"uvlock": true,
"x": 180
},
"facing=east,half=top,shape=inner_right": {
"model": "infernalexp:block/shimmer_stone_brick_stairs_inner",
"uvlock": true,
"x": 180,
"y": 90
},
"facing=east,half=top,shape=outer_left": {
"model": "infernalexp:block/shimmer_stone_brick_stairs_outer",
"uvlock": true,
"x": 180
},
"facing=east,half=top,shape=outer_right": {
"model": "infernalexp:block/shimmer_stone_brick_stairs_outer",
"uvlock": true,
"x": 180,
"y": 90
},
"facing=east,half=top,shape=straight": {
"model": "infernalexp:block/shimmer_stone_brick_stairs",
"uvlock": true,
"x": 180
},
"facing=north,half=bottom,shape=inner_left": {
"model": "infernalexp:block/shimmer_stone_brick_stairs_inner",
"uvlock": true,
"y": 180
},
"facing=north,half=bottom,shape=inner_right": {
"model": "infernalexp:block/shimmer_stone_brick_stairs_inner",
"uvlock": true,
"y": 270
},
"facing=north,half=bottom,shape=outer_left": {
"model": "infernalexp:block/shimmer_stone_brick_stairs_outer",
"uvlock": true,
"y": 180
},
"facing=north,half=bottom,shape=outer_right": {
"model": "infernalexp:block/shimmer_stone_brick_stairs_outer",
"uvlock": true,
"y": 270
},
"facing=north,half=bottom,shape=straight": {
"model": "infernalexp:block/shimmer_stone_brick_stairs",
"uvlock": true,
"y": 270
},
"facing=north,half=top,shape=inner_left": {
"model": "infernalexp:block/shimmer_stone_brick_stairs_inner",
"uvlock": true,
"x": 180,
"y": 270
},
"facing=north,half=top,shape=inner_right": {
"model": "infernalexp:block/shimmer_stone_brick_stairs_inner",
"uvlock": true,
"x": 180
},
"facing=north,half=top,shape=outer_left": {
"model": "infernalexp:block/shimmer_stone_brick_stairs_outer",
"uvlock": true,
"x": 180,
"y": 270
},
"facing=north,half=top,shape=outer_right": {
"model": "infernalexp:block/shimmer_stone_brick_stairs_outer",
"uvlock": true,
"x": 180
},
"facing=north,half=top,shape=straight": {
"model": "infernalexp:block/shimmer_stone_brick_stairs",
"uvlock": true,
"x": 180,
"y": 270
},
"facing=south,half=bottom,shape=inner_left": {
"model": "infernalexp:block/shimmer_stone_brick_stairs_inner"
},
"facing=south,half=bottom,shape=inner_right": {
"model": "infernalexp:block/shimmer_stone_brick_stairs_inner",
"uvlock": true,
"y": 90
},
"facing=south,half=bottom,shape=outer_left": {
"model": "infernalexp:block/shimmer_stone_brick_stairs_outer"
},
"facing=south,half=bottom,shape=outer_right": {
"model": "infernalexp:block/shimmer_stone_brick_stairs_outer",
"uvlock": true,
"y": 90
},
"facing=south,half=bottom,shape=straight": {
"model": "infernalexp:block/shimmer_stone_brick_stairs",
"uvlock": true,
"y": 90
},
"facing=south,half=top,shape=inner_left": {
"model": "infernalexp:block/shimmer_stone_brick_stairs_inner",
"uvlock": true,
"x": 180,
"y": 90
},
"facing=south,half=top,shape=inner_right": {
"model": "infernalexp:block/shimmer_stone_brick_stairs_inner",
"uvlock": true,
"x": 180,
"y": 180
},
"facing=south,half=top,shape=outer_left": {
"model": "infernalexp:block/shimmer_stone_brick_stairs_outer",
"uvlock": true,
"x": 180,
"y": 90
},
"facing=south,half=top,shape=outer_right": {
"model": "infernalexp:block/shimmer_stone_brick_stairs_outer",
"uvlock": true,
"x": 180,
"y": 180
},
"facing=south,half=top,shape=straight": {
"model": "infernalexp:block/shimmer_stone_brick_stairs",
"uvlock": true,
"x": 180,
"y": 90
},
"facing=west,half=bottom,shape=inner_left": {
"model": "infernalexp:block/shimmer_stone_brick_stairs_inner",
"uvlock": true,
"y": 90
},
"facing=west,half=bottom,shape=inner_right": {
"model": "infernalexp:block/shimmer_stone_brick_stairs_inner",
"uvlock": true,
"y": 180
},
"facing=west,half=bottom,shape=outer_left": {
"model": "infernalexp:block/shimmer_stone_brick_stairs_outer",
"uvlock": true,
"y": 90
},
"facing=west,half=bottom,shape=outer_right": {
"model": "infernalexp:block/shimmer_stone_brick_stairs_outer",
"uvlock": true,
"y": 180
},
"facing=west,half=bottom,shape=straight": {
"model": "infernalexp:block/shimmer_stone_brick_stairs",
"uvlock": true,
"y": 180
},
"facing=west,half=top,shape=inner_left": {
"model": "infernalexp:block/shimmer_stone_brick_stairs_inner",
"uvlock": true,
"x": 180,
"y": 180
},
"facing=west,half=top,shape=inner_right": {
"model": "infernalexp:block/shimmer_stone_brick_stairs_inner",
"uvlock": true,
"x": 180,
"y": 270
},
"facing=west,half=top,shape=outer_left": {
"model": "infernalexp:block/shimmer_stone_brick_stairs_outer",
"uvlock": true,
"x": 180,
"y": 180
},
"facing=west,half=top,shape=outer_right": {
"model": "infernalexp:block/shimmer_stone_brick_stairs_outer",
"uvlock": true,
"x": 180,
"y": 270
},
"facing=west,half=top,shape=straight": {
"model": "infernalexp:block/shimmer_stone_brick_stairs",
"uvlock": true,
"x": 180,
"y": 180
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"parent": "minecraft:block/slab",
"textures": {
"bottom": "infernalexp:block/shimmer_stone_bricks",
"side": "infernalexp:block/shimmer_stone_bricks",
"top": "infernalexp:block/shimmer_stone_bricks"
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"parent": "minecraft:block/slab_top",
"textures": {
"bottom": "infernalexp:block/shimmer_stone_bricks",
"side": "infernalexp:block/shimmer_stone_bricks",
"top": "infernalexp:block/shimmer_stone_bricks"
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"parent": "minecraft:block/stairs",
"textures": {
"bottom": "infernalexp:block/shimmer_stone_bricks",
"side": "infernalexp:block/shimmer_stone_bricks",
"top": "infernalexp:block/shimmer_stone_bricks"
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"parent": "minecraft:block/inner_stairs",
"textures": {
"bottom": "infernalexp:block/shimmer_stone_bricks",
"side": "infernalexp:block/shimmer_stone_bricks",
"top": "infernalexp:block/shimmer_stone_bricks"
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"parent": "minecraft:block/outer_stairs",
"textures": {
"bottom": "infernalexp:block/shimmer_stone_bricks",
"side": "infernalexp:block/shimmer_stone_bricks",
"top": "infernalexp:block/shimmer_stone_bricks"
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"parent": "infernalexp:block/shimmer_stone_brick_slab"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"parent": "infernalexp:block/shimmer_stone_brick_stairs"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
{
"type": "minecraft:block",
"pools": [
{
"bonus_rolls": 0.0,
"entries": [
{
"type": "minecraft:item",
"functions": [
{
"add": false,
"conditions": [
{
"block": "infernalexp:shimmer_stone_brick_slab",
"condition": "minecraft:block_state_property",
"properties": {
"type": "double"
}
}
],
"count": 2.0,
"function": "minecraft:set_count"
},
{
"function": "minecraft:explosion_decay"
}
],
"name": "infernalexp:shimmer_stone_brick_slab"
}
],
"rolls": 1.0
}
]
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
{
"type": "minecraft:block",
"pools": [
{
"bonus_rolls": 0.0,
"conditions": [
{
"condition": "minecraft:survives_explosion"
}
],
"entries": [
{
"type": "minecraft:item",
"name": "infernalexp:shimmer_stone_brick_stairs"
}
],
"rolls": 1.0
}
]
}
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,14 @@
"values": [
"infernalexp:shimmer_stone",
"infernalexp:shimmer_stone_bricks",
"infernalexp:shimmer_stone_brick_stairs",
"infernalexp:shimmer_stone_brick_slab",
"infernalexp:polished_glowstone",
"infernalexp:dimstone",
"infernalexp:polished_dimstone",
"infernalexp:dullstone",
"infernalexp:polished_dullstone",
"infernalexp:dullstone_pressure_plate",
"infernalexp:dullstone_button"
"infernalexp:dullstone_button",
"infernalexp:dullstone_pressure_plate"
]
}
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,9 @@
public class ModBlocks {
public static void register() {
InfernalExpansion.log("Registering Blocks for " + InfernalExpansion.MOD_ID);


ModRegistry.registerStairsAndSlab(SHIMMER_STONE_BRICKS, SHIMMER_STONE_BRICK_STAIRS, SHIMMER_STONE_BRICK_SLAB);
}

private static final FabricBlockSettings shimmerStone =
Expand Down Expand Up @@ -41,7 +44,15 @@ public static void register() {

public static final Block SHIMMER_STONE_BRICKS = ModRegistry.ofBlock("shimmer_stone_bricks",
new Block(shimmerStone))
.model().drop().tool("wood_pickaxe").build();
.drop().tool("wood_pickaxe").build();

public static final Block SHIMMER_STONE_BRICK_STAIRS = ModRegistry.ofBlock("shimmer_stone_brick_stairs",
new StairsBlock(SHIMMER_STONE_BRICKS.getDefaultState(), shimmerStone))
.model(ModRegistry.Models.STAIRS).drop().tool("wood_pickaxe").build();

public static final Block SHIMMER_STONE_BRICK_SLAB = ModRegistry.ofBlock("shimmer_stone_brick_slab",
new SlabBlock(shimmerStone))
.model(ModRegistry.Models.SLAB).drop().tool("wood_pickaxe").build();


public static final Block POLISHED_GLOWSTONE = ModRegistry.ofBlock("polished_glowstone",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,8 @@ public class ModItemGroups {

entries.add(ModBlocks.SHIMMER_STONE);
entries.add(ModBlocks.SHIMMER_STONE_BRICKS);
entries.add(ModBlocks.SHIMMER_STONE_BRICK_STAIRS);
entries.add(ModBlocks.SHIMMER_STONE_BRICK_SLAB);

entries.add(ModBlocks.POLISHED_GLOWSTONE);
entries.add(ModBlocks.DIMSTONE);
Expand Down
Loading

0 comments on commit 2e541f1

Please sign in to comment.