From bd697279f3b2768102446824197fae3072b5ca44 Mon Sep 17 00:00:00 2001 From: Anthony Date: Fri, 29 Jan 2021 20:27:27 -0700 Subject: [PATCH] Added test block 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. --- src/main/java/com/jingy/jineric/Blocks.java | 3 +++ src/main/java/com/jingy/jineric/Items.java | 3 +++ .../assets/jineric/blockstates/test_block.json | 7 +++++++ src/main/resources/assets/jineric/lang/en_us.json | 2 ++ .../assets/jineric/models/block/test_block.json | 6 ++++++ .../assets/jineric/models/item/test_block.json | 3 +++ .../jineric/textures/block/cooldevtexture.png | Bin 0 -> 175 bytes 7 files changed, 24 insertions(+) create mode 100644 src/main/resources/assets/jineric/blockstates/test_block.json create mode 100644 src/main/resources/assets/jineric/models/block/test_block.json create mode 100644 src/main/resources/assets/jineric/models/item/test_block.json create mode 100644 src/main/resources/assets/jineric/textures/block/cooldevtexture.png diff --git a/src/main/java/com/jingy/jineric/Blocks.java b/src/main/java/com/jingy/jineric/Blocks.java index b3a6615e..618a174d 100644 --- a/src/main/java/com/jingy/jineric/Blocks.java +++ b/src/main/java/com/jingy/jineric/Blocks.java @@ -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) { diff --git a/src/main/java/com/jingy/jineric/Items.java b/src/main/java/com/jingy/jineric/Items.java index d751ed45..a844351a 100644 --- a/src/main/java/com/jingy/jineric/Items.java +++ b/src/main/java/com/jingy/jineric/Items.java @@ -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 diff --git a/src/main/resources/assets/jineric/blockstates/test_block.json b/src/main/resources/assets/jineric/blockstates/test_block.json new file mode 100644 index 00000000..a50781dc --- /dev/null +++ b/src/main/resources/assets/jineric/blockstates/test_block.json @@ -0,0 +1,7 @@ +{ + "variants": { + "": { + "model": "jineric:block/test_block" + } + } +} \ No newline at end of file diff --git a/src/main/resources/assets/jineric/lang/en_us.json b/src/main/resources/assets/jineric/lang/en_us.json index ff7b9eed..db70ae1c 100644 --- a/src/main/resources/assets/jineric/lang/en_us.json +++ b/src/main/resources/assets/jineric/lang/en_us.json @@ -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", diff --git a/src/main/resources/assets/jineric/models/block/test_block.json b/src/main/resources/assets/jineric/models/block/test_block.json new file mode 100644 index 00000000..cf02eb1a --- /dev/null +++ b/src/main/resources/assets/jineric/models/block/test_block.json @@ -0,0 +1,6 @@ +{ + "parent": "minecraft:block/cube_all", + "textures": { + "all": "jineric:block/cooldevtexture" + } +} \ No newline at end of file diff --git a/src/main/resources/assets/jineric/models/item/test_block.json b/src/main/resources/assets/jineric/models/item/test_block.json new file mode 100644 index 00000000..063a40db --- /dev/null +++ b/src/main/resources/assets/jineric/models/item/test_block.json @@ -0,0 +1,3 @@ +{ + "parent": "jineric:block/test_block" +} \ No newline at end of file diff --git a/src/main/resources/assets/jineric/textures/block/cooldevtexture.png b/src/main/resources/assets/jineric/textures/block/cooldevtexture.png new file mode 100644 index 0000000000000000000000000000000000000000..da9e18a7044818c7df8b861a7377c81271bbe1d2 GIT binary patch literal 175 zcmeAS@N?(olHy`uVBq!ia0vp^0wB!73?$#)eFPF