make grid render in inventory

This commit is contained in:
Raoul Van den Berge
2015-12-27 21:03:45 +01:00
parent e599f91edc
commit 995600bd16
3 changed files with 18 additions and 15 deletions

View File

@@ -98,9 +98,8 @@ public class ClientProxy extends CommonProxy
mesher.register(StorageCraftItems.WIRELESS_GRID_PLATE, 0, new ModelResourceLocation("storagecraft:wireless_grid_plate", "inventory")); mesher.register(StorageCraftItems.WIRELESS_GRID_PLATE, 0, new ModelResourceLocation("storagecraft:wireless_grid_plate", "inventory"));
ModelLoader.setCustomModelResourceLocation(Item.getItemFromBlock(StorageCraftBlocks.GRID), 0, new ModelResourceLocation("storagecraft:grid", "inventory"));
// Blocks // Blocks
//mesher.register(Item.getItemFromBlock(StorageCraftBlocks.GRID), 0, new ModelResourceLocation("storagecraft:grid", "inventory")); mesher.register(Item.getItemFromBlock(StorageCraftBlocks.GRID), 0, new ModelResourceLocation("storagecraft:grid", "inventory"));
//mesher.register(Item.getItemFromBlock(StorageCraftBlocks.GRID), 1, new ModelResourceLocation("storagecraft:grid", "inventory")); mesher.register(Item.getItemFromBlock(StorageCraftBlocks.GRID), 1, new ModelResourceLocation("storagecraft:grid", "inventory"));
} }
} }

View File

@@ -95,7 +95,7 @@ public class CommonProxy
GameRegistry.registerItem(StorageCraftItems.STORAGE_CELL, "storageCell"); GameRegistry.registerItem(StorageCraftItems.STORAGE_CELL, "storageCell");
GameRegistry.registerItem(StorageCraftItems.WIRELESS_GRID, "wirelessGrid"); GameRegistry.registerItem(StorageCraftItems.WIRELESS_GRID, "wirelessGrid");
GameRegistry.registerItem(StorageCraftItems.WIRELESS_GRID_PLATE, "wirelessGridPlate"); GameRegistry.registerItem(StorageCraftItems.WIRELESS_GRID_PLATE, "wirelessGridPlate");
GameRegistry.registerItem(StorageCraftItems.QUARTZ_ENRICHED_IRON, "storigiumIngot"); GameRegistry.registerItem(StorageCraftItems.QUARTZ_ENRICHED_IRON, "quartzEnrichedIron");
GameRegistry.registerItem(StorageCraftItems.CORE, "core"); GameRegistry.registerItem(StorageCraftItems.CORE, "core");
GameRegistry.registerItem(StorageCraftItems.SILICON, "silicon"); GameRegistry.registerItem(StorageCraftItems.SILICON, "silicon");
GameRegistry.registerItem(StorageCraftItems.PROCESSOR, "processor"); GameRegistry.registerItem(StorageCraftItems.PROCESSOR, "processor");

View File

@@ -9,6 +9,20 @@
} }
}, },
"variants": { "variants": {
"inventory": [
{
"textures": {
"front": "storagecraft:blocks/grid_disconnected"
},
"y": 0
},
{
"textures": {
"front": "storagecraft:blocks/grid_disconnected"
},
"y": 0
}
],
"type": { "type": {
"normal": { "normal": {
}, },
@@ -47,15 +61,5 @@
"x": 90 "x": 90
} }
} }
}, }
"inventory": [
{
"textures": {
"side": "storagecraft:blocks/side",
"top": "storagecraft:blocks/side",
"front": "storagecraft:blocks/grid_disconnected"
},
"y": 270
}
]
} }