urgh I hate block models

This commit is contained in:
Jonas_Jones 2023-04-05 04:32:26 +02:00
parent d9389ab1e4
commit bebbeb22f1
5 changed files with 82 additions and 0 deletions

View file

@ -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);
}
}

View file

@ -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
}
}
}

View file

@ -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]
}
}
}

View file

@ -0,0 +1,3 @@
{
"parent": "nec:block/thicc_end_rod"
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 159 B