diff --git a/src/main/java/me/jonasjones/nec/block/ModBlocks.java b/src/main/java/me/jonasjones/nec/block/ModBlocks.java index 4be0ae4..c9b14c8 100644 --- a/src/main/java/me/jonasjones/nec/block/ModBlocks.java +++ b/src/main/java/me/jonasjones/nec/block/ModBlocks.java @@ -19,6 +19,7 @@ public class ModBlocks { public static final Block DEEPSLATE_DIAMOND_ORE_ORE = new Block(FabricBlockSettings.of(Material.STONE).strength(4.0F)); public static final Block JAVA_BLOCK = new Block(FabricBlockSettings.of(Material.STONE).strength(5.0F)); public static final Block POCKET_BLOCK = new Block(FabricBlockSettings.of(Material.STONE).strength(5.0F)); + public static final Block THICC_END_ROD = new Block(FabricBlockSettings.of(Material.STONE).strength(1.0F)); private static BlockItem GUN_BLOCK_ITEM; private static Block GUN_BLOCK_BLOCK; private static BlockItem BLAZE_BLOCK_ITEM; @@ -33,6 +34,8 @@ public class ModBlocks { public static Block JAVA_BLOCK_BLOCK; public static BlockItem POCKET_BLOCK_ITEM; public static Block POCKET_BLOCK_BLOCK; + public static BlockItem THICC_END_ROD_ITEM; + public static Block THICC_END_ROD_BLOCK; //public static final Block GREEN_BIRCH_WOOD = new PillarBlock(FabricBlockSettings.of(Material.WOOD).strength(4.0f)); //public static final Block STRIPPED_GREEN_BIRCH_LOG = new PillarBlock(FabricBlockSettings.of(Material.WOOD).strength(4.0f)); //public static final Block STRIPPED_GREEN_BIRCH_WOOD = new PillarBlock(FabricBlockSettings.of(Material.WOOD).strength(4.0f)); @@ -65,5 +68,9 @@ public class ModBlocks { POCKET_BLOCK_BLOCK = Registry.register(Registries.BLOCK, new Identifier("nec", "pocket_block"), POCKET_BLOCK); POCKET_BLOCK_ITEM = Registry.register(Registries.ITEM, new Identifier("nec", "pocket_block"), new BlockItem(POCKET_BLOCK, new FabricItemSettings())); ModRegistries.register_item(POCKET_BLOCK_ITEM); + + THICC_END_ROD_BLOCK = Registry.register(Registries.BLOCK, new Identifier("nec", "thicc_end_rod"), THICC_END_ROD); + THICC_END_ROD_ITEM = Registry.register(Registries.ITEM, new Identifier("nec", "thicc_end_rod"), new BlockItem(THICC_END_ROD_BLOCK, new FabricItemSettings())); + ModRegistries.register_item(THICC_END_ROD_ITEM); } } diff --git a/src/main/resources/assets/nec/blockstates/thicc_end_rod.json b/src/main/resources/assets/nec/blockstates/thicc_end_rod.json new file mode 100644 index 0000000..bf363b2 --- /dev/null +++ b/src/main/resources/assets/nec/blockstates/thicc_end_rod.json @@ -0,0 +1,30 @@ +{ + "variants": { + "facing=down": { + "model": "nec:block/thicc_end_rod", + "x": 180 + }, + "facing=east": { + "model": "nec:block/thicc_end_rod", + "x": 90, + "y": 90 + }, + "facing=north": { + "model": "nec:block/thicc_end_rod", + "x": 90 + }, + "facing=south": { + "model": "nec:block/thicc_end_rod", + "x": 90, + "y": 180 + }, + "facing=up": { + "model": "nec:block/thicc_end_rod" + }, + "facing=west": { + "model": "nec:block/thicc_end_rod", + "x": 90, + "y": 270 + } + } +} \ No newline at end of file diff --git a/src/main/resources/assets/nec/models/block/thicc_end_rod.json b/src/main/resources/assets/nec/models/block/thicc_end_rod.json new file mode 100644 index 0000000..834e11b --- /dev/null +++ b/src/main/resources/assets/nec/models/block/thicc_end_rod.json @@ -0,0 +1,42 @@ +{ + "credit": "Made with Blockbench", + "parent": "block/block", + "textures": { + "particle": "block/thicc_end_rod", + "end_rod": "block/thicc_end_rod" + }, + "elements": [ + { + "from": [4, 0, 4], + "to": [12, 1, 12], + "faces": { + "north": {"uv": [2, 6, 6, 7], "texture": "#end_rod"}, + "east": {"uv": [2, 6, 6, 7], "texture": "#end_rod"}, + "south": {"uv": [2, 6, 6, 7], "texture": "#end_rod"}, + "west": {"uv": [2, 6, 6, 7], "texture": "#end_rod"}, + "up": {"uv": [2, 2, 6, 6], "texture": "#end_rod"}, + "down": {"uv": [6, 6, 2, 2], "texture": "#end_rod", "cullface": "down"} + } + }, + { + "from": [5, 1, 5], + "to": [11, 16, 11], + "faces": { + "north": {"uv": [0, 0, 2, 15], "texture": "#end_rod"}, + "east": {"uv": [0, 0, 2, 15], "texture": "#end_rod"}, + "south": {"uv": [0, 0, 2, 15], "texture": "#end_rod"}, + "west": {"uv": [0, 0, 2, 15], "texture": "#end_rod"}, + "up": {"uv": [2, 0, 4, 2], "texture": "#end_rod", "cullface": "up"} + } + } + ], + "display": { + "thirdperson_righthand": { + "scale": [0.375, 0.375, 0.375] + }, + "head": { + "rotation": [-60, 0, 0], + "translation": [0, 5, -9] + } + } +} \ No newline at end of file diff --git a/src/main/resources/assets/nec/models/item/thicc_end_rod.json b/src/main/resources/assets/nec/models/item/thicc_end_rod.json new file mode 100644 index 0000000..38632cf --- /dev/null +++ b/src/main/resources/assets/nec/models/item/thicc_end_rod.json @@ -0,0 +1,3 @@ +{ + "parent": "nec:block/thicc_end_rod" +} \ No newline at end of file diff --git a/src/main/resources/assets/nec/textures/block/thicc_end_rod.png b/src/main/resources/assets/nec/textures/block/thicc_end_rod.png new file mode 100644 index 0000000..90aa8d8 Binary files /dev/null and b/src/main/resources/assets/nec/textures/block/thicc_end_rod.png differ