remove unneeded models
This commit is contained in:
@@ -6,6 +6,7 @@ import net.minecraft.client.resources.model.ModelBakery;
|
|||||||
import net.minecraft.client.resources.model.ModelResourceLocation;
|
import net.minecraft.client.resources.model.ModelResourceLocation;
|
||||||
import net.minecraft.item.Item;
|
import net.minecraft.item.Item;
|
||||||
import net.minecraftforge.client.MinecraftForgeClient;
|
import net.minecraftforge.client.MinecraftForgeClient;
|
||||||
|
import net.minecraftforge.client.model.ModelLoader;
|
||||||
import net.minecraftforge.fml.client.registry.ClientRegistry;
|
import net.minecraftforge.fml.client.registry.ClientRegistry;
|
||||||
import net.minecraftforge.fml.common.event.FMLInitializationEvent;
|
import net.minecraftforge.fml.common.event.FMLInitializationEvent;
|
||||||
import net.minecraftforge.fml.common.event.FMLPreInitializationEvent;
|
import net.minecraftforge.fml.common.event.FMLPreInitializationEvent;
|
||||||
@@ -97,8 +98,9 @@ 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"));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,5 +1,13 @@
|
|||||||
{
|
{
|
||||||
"forge_marker": 1,
|
"forge_marker": 1,
|
||||||
|
"defaults": {
|
||||||
|
"model": "orientable",
|
||||||
|
"transform": "forge:default-block",
|
||||||
|
"textures": {
|
||||||
|
"side": "storagecraft:blocks/side",
|
||||||
|
"top": "storagecraft:blocks/side"
|
||||||
|
}
|
||||||
|
},
|
||||||
"variants": {
|
"variants": {
|
||||||
"type": {
|
"type": {
|
||||||
"normal": {
|
"normal": {
|
||||||
@@ -9,10 +17,14 @@
|
|||||||
},
|
},
|
||||||
"connected": {
|
"connected": {
|
||||||
"true": {
|
"true": {
|
||||||
"model": "storagecraft:grid_connected"
|
"textures": {
|
||||||
|
"front": "storagecraft:blocks/grid_connected"
|
||||||
|
}
|
||||||
},
|
},
|
||||||
"false": {
|
"false": {
|
||||||
"model": "storagecraft:grid_disconnected"
|
"textures": {
|
||||||
|
"front": "storagecraft:blocks/grid_disconnected"
|
||||||
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"direction": {
|
"direction": {
|
||||||
@@ -35,5 +47,15 @@
|
|||||||
"x": 90
|
"x": 90
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
},
|
||||||
|
"inventory": [
|
||||||
|
{
|
||||||
|
"textures": {
|
||||||
|
"side": "storagecraft:blocks/side",
|
||||||
|
"top": "storagecraft:blocks/side",
|
||||||
|
"front": "storagecraft:blocks/grid_disconnected"
|
||||||
|
},
|
||||||
|
"y": 270
|
||||||
|
}
|
||||||
|
]
|
||||||
}
|
}
|
||||||
@@ -1,8 +0,0 @@
|
|||||||
{
|
|
||||||
"parent": "block/orientable",
|
|
||||||
"textures": {
|
|
||||||
"top": "storagecraft:blocks/side",
|
|
||||||
"front": "storagecraft:blocks/grid_connected",
|
|
||||||
"side": "storagecraft:blocks/side"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@@ -1,8 +0,0 @@
|
|||||||
{
|
|
||||||
"parent": "block/orientable",
|
|
||||||
"textures": {
|
|
||||||
"top": "storagecraft:blocks/side",
|
|
||||||
"front": "storagecraft:blocks/grid_disconnected",
|
|
||||||
"side": "storagecraft:blocks/side"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@@ -1,11 +0,0 @@
|
|||||||
{
|
|
||||||
"parent": "storagecraft:block/grid_disconnected",
|
|
||||||
"display": {
|
|
||||||
"thirdperson": {
|
|
||||||
"rotation": [10, -45, 170],
|
|
||||||
"translation": [0, 1.5, -2.75],
|
|
||||||
"scale": [0.375, 0.375, 0.375]
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
Reference in New Issue
Block a user