texture for machine casing

This commit is contained in:
Raoul Van den Berge
2015-12-27 21:40:00 +01:00
parent 0c16a1e2d6
commit 0d6087ca67
4 changed files with 34 additions and 4 deletions

View File

@@ -36,7 +36,7 @@ public class BlockGrid extends BlockMachine
@Override
public void getSubBlocks(Item item, CreativeTabs tab, List subItems)
{
for (int i = 0; i < 2; i++)
for (int i = 0; i <= 1; i++)
{
subItems.add(new ItemStack(item, 1, i));
}

View File

@@ -12,6 +12,7 @@ import net.minecraftforge.fml.common.event.FMLInitializationEvent;
import net.minecraftforge.fml.common.event.FMLPreInitializationEvent;
import storagecraft.StorageCraftBlocks;
import storagecraft.StorageCraftItems;
import storagecraft.block.EnumGridType;
import storagecraft.item.ItemCore;
import storagecraft.item.ItemProcessor;
import storagecraft.item.ItemStorageCell;
@@ -99,7 +100,8 @@ public class ClientProxy extends CommonProxy
mesher.register(StorageCraftItems.WIRELESS_GRID_PLATE, 0, new ModelResourceLocation("storagecraft:wireless_grid_plate", "inventory"));
// Blocks
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), EnumGridType.NORMAL.getId(), new ModelResourceLocation("storagecraft:grid", "inventory"));
mesher.register(Item.getItemFromBlock(StorageCraftBlocks.GRID), EnumGridType.CRAFTING.getId(), new ModelResourceLocation("storagecraft:grid", "inventory"));
mesher.register(Item.getItemFromBlock(StorageCraftBlocks.MACHINE_CASING), 0, new ModelResourceLocation("storagecraft:machine_casing", "inventory"));
}
}

View File

@@ -2,7 +2,6 @@
"forge_marker": 1,
"defaults": {
"model": "orientable",
"transform": "forge:default-block",
"textures": {
"side": "storagecraft:blocks/side",
"top": "storagecraft:blocks/side"

View File

@@ -0,0 +1,29 @@
{
"forge_marker": 1,
"defaults": {
"model": "cube_all",
"textures": {
"all": "storagecraft:blocks/side"
}
},
"variants": {
"inventory": [
{
}
],
"direction": {
"north": {
},
"east": {
},
"south": {
},
"west": {
},
"up": {
},
"down": {
}
}
}
}