Skip to content

Commit

Permalink
Added test block
Browse files Browse the repository at this point in the history
The idea is to use this block for various different properties, we won't actually have this added in a full release of the mod.
  • Loading branch information
MrCheeze446 committed Jan 30, 2021
1 parent 42066a3 commit bd69727
Show file tree
Hide file tree
Showing 7 changed files with 24 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/main/java/com/jingy/jineric/Blocks.java
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,9 @@ public class Blocks {
public static final Block BORITE_SLAB = register("borite_slab", new SlabBlock(FabricBlockSettings.copy(STONE)));
public static final Block BORITE_WALL = register("borite_wall", new WallBlock(FabricBlockSettings.copy(STONE)));

//testing making a block
public static final Block TEST_BLOCK = register("test_block", new Block(FabricBlockSettings.copy(BLACK_WOOL)));



private static Block register(String name, Block block) {
Expand Down
3 changes: 3 additions & 0 deletions src/main/java/com/jingy/jineric/Items.java
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,9 @@ public class Items {
public static final Item WAVY_SOUL_SANDSTONE_STAIRS = register("wavy_soul_sandstone_stairs", new BlockItem(Blocks.WAVY_SOUL_SANDSTONE_STAIRS, ItemSettings.BuildingBlocks().group(ItemGroups.JINERIC_BLOCKS)));
public static final Item WAVY_SOUL_SANDSTONE_WALL = register("wavy_soul_sandstone_wall", new BlockItem(Blocks.WAVY_SOUL_SANDSTONE_WALL, ItemSettings.Decoration().group(ItemGroups.JINERIC_BLOCKS)));

//test block
public static final Item TEST_BLOCK = register("test_block", new BlockItem(Blocks.TEST_BLOCK, ItemSettings.BuildingBlocks().group(ItemGroups.JINERIC_BLOCKS)));


//'-ITES'
//CORRITE
Expand Down
7 changes: 7 additions & 0 deletions src/main/resources/assets/jineric/blockstates/test_block.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"variants": {
"": {
"model": "jineric:block/test_block"
}
}
}
2 changes: 2 additions & 0 deletions src/main/resources/assets/jineric/lang/en_us.json
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,8 @@
"block.jineric.smooth_soul_sandstone_slab": "Smooth Soul Sandstone Slab",
"block.jineric.smooth_soul_sandstone_stairs": "Smooth Soul Sandstone Stair",
"block.jineric.smooth_soul_sandstone_wall": "Smooth Soul Sandstone Wall",

"item.jineric.Test_Block": "Test Block",


"itemGroup.blocks.jineric": "Jineric Blocks",
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"parent": "minecraft:block/cube_all",
"textures": {
"all": "jineric:block/cooldevtexture"
}
}
3 changes: 3 additions & 0 deletions src/main/resources/assets/jineric/models/item/test_block.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"parent": "jineric:block/test_block"
}
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 bd69727

Please sign in to comment.