Skip to content

Commit 21c58bb

Browse files
committed
fix missing test block models
1 parent 29f5775 commit 21c58bb

File tree

4 files changed

+11
-10
lines changed

4 files changed

+11
-10
lines changed

src/main/java/com/cleanroommc/modularui/test/TestBlock.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,8 @@ public static void registerItems(RegistryEvent.Register<Item> event) {
6767
public static void registerModel(ModelRegistryEvent event) {
6868
ModelResourceLocation mrl = new ModelResourceLocation(new ResourceLocation("diamond"), "inventory");
6969
ModelLoader.setCustomModelResourceLocation(TestItem.testItem, 0, mrl);
70+
ModelLoader.setCustomModelResourceLocation(testItemBlock, 0, new ModelResourceLocation(testItemBlock.getRegistryName(), "inventory"));
71+
ModelLoader.setCustomModelResourceLocation(testItemBlock2, 0, new ModelResourceLocation(testItemBlock2.getRegistryName(), "inventory"));
7072
}
7173

7274
private final Supplier<TileEntity> tileEntitySupplier;
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
{
2+
"variants": {
3+
"normal": { "model": "chain_command_block" }
4+
}
5+
}
Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,3 @@
11
{
2-
"parent": "block/cube_directional",
3-
"textures": {
4-
"particle": "blocks/command_block_back",
5-
"down": "blocks/command_block_side",
6-
"up": "blocks/command_block_side",
7-
"north": "blocks/command_block_front",
8-
"east": "blocks/command_block_side",
9-
"south": "blocks/command_block_back",
10-
"west": "blocks/command_block_side"
11-
}
2+
"parent": "block/command_block"
123
}
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
"parent": "block/chain_command_block"
3+
}

0 commit comments

Comments
 (0)