Go go node models~

This commit is contained in:
WayofTime 2016-02-06 17:36:37 -05:00
parent f1621f1bce
commit 9d64a43ee4
22 changed files with 313 additions and 125 deletions

View file

@ -1,7 +1,5 @@
package WayofTime.bloodmagic.block; package WayofTime.bloodmagic.block;
import net.minecraft.block.BlockContainer;
import net.minecraft.block.material.Material;
import net.minecraft.block.state.IBlockState; import net.minecraft.block.state.IBlockState;
import net.minecraft.entity.player.EntityPlayer; import net.minecraft.entity.player.EntityPlayer;
import net.minecraft.tileentity.TileEntity; import net.minecraft.tileentity.TileEntity;
@ -12,11 +10,11 @@ import WayofTime.bloodmagic.BloodMagic;
import WayofTime.bloodmagic.api.Constants; import WayofTime.bloodmagic.api.Constants;
import WayofTime.bloodmagic.tile.routing.TileMasterRoutingNode; import WayofTime.bloodmagic.tile.routing.TileMasterRoutingNode;
public class BlockMasterRoutingNode extends BlockContainer public class BlockMasterRoutingNode extends BlockRoutingNode
{ {
public BlockMasterRoutingNode() public BlockMasterRoutingNode()
{ {
super(Material.rock); super();
setUnlocalizedName(Constants.Mod.MODID + ".masterRouting"); setUnlocalizedName(Constants.Mod.MODID + ".masterRouting");
setRegistryName(Constants.BloodMagicBlock.MASTER_ROUTING_NODE.getRegName()); setRegistryName(Constants.BloodMagicBlock.MASTER_ROUTING_NODE.getRegName());

View file

@ -7,7 +7,10 @@ import net.minecraft.block.properties.PropertyBool;
import net.minecraft.block.state.BlockState; import net.minecraft.block.state.BlockState;
import net.minecraft.block.state.IBlockState; import net.minecraft.block.state.IBlockState;
import net.minecraft.util.BlockPos; import net.minecraft.util.BlockPos;
import net.minecraft.util.EnumWorldBlockLayer;
import net.minecraft.world.IBlockAccess; import net.minecraft.world.IBlockAccess;
import net.minecraftforge.fml.relauncher.Side;
import net.minecraftforge.fml.relauncher.SideOnly;
import WayofTime.bloodmagic.BloodMagic; import WayofTime.bloodmagic.BloodMagic;
public abstract class BlockRoutingNode extends BlockContainer public abstract class BlockRoutingNode extends BlockContainer
@ -39,6 +42,12 @@ public abstract class BlockRoutingNode extends BlockContainer
return false; return false;
} }
@SideOnly(Side.CLIENT)
public EnumWorldBlockLayer getBlockLayer()
{
return EnumWorldBlockLayer.TRANSLUCENT;
}
@Override @Override
public boolean isFullCube() public boolean isFullCube()
{ {

View file

@ -1,45 +1,72 @@
{ {
"forge_marker": 1, "forge_marker": 1,
"defaults": { "defaults": {
"model": "bloodmagic:routing/OutputRoutingNodeCore", "model": "bloodmagic:routing/ModelInputRoutingNodeCore.obj",
"rotation": [ "transform": {
{ "translation": [ 0.5, 0, 0.5 ]
"y": 45 },
}, "custom": { "flip-v": true },
{ "uvlock": true
"x": 45
}
],
"textures": {
"core": "blocks/gold_block",
"attachment": "minecraft:blocks/stone"
},
"uvlock": true // This and all other properties of "defaults" will be inherited by simple submodels. They will NOT be inherited by named submodels.
}, },
"variants": { "variants": {
"north": { "north": {
"true": {"submodel": "bloodmagic:routing/RoutingNodeBase"}, // Simple submodel declaration. You can also specify multiple submodels for a variant. "true": {
"submodel": "bloodmagic:routing/ModelInputRoutingNodeBase.obj",
"transform": {
"translation": [ 0, -0.5, -0.5 ],
"rotation": {"x": 90}
}
},
"false": {} "false": {}
}, },
"south": { "south": {
"true": {"submodel": "bloodmagic:routing/RoutingNodeBase", "y": 180}, "true": {
"submodel": "bloodmagic:routing/ModelInputRoutingNodeBase.obj",
"transform": {
"translation": [ 0, 0.5, -0.5 ],
"rotation": {"x": -90}
}
},
"false": {} "false": {}
}, },
"east": { "east": {
"true": {"submodel": "bloodmagic:routing/RoutingNodeBase", "y": 90}, // Submodel will be rotated. "true": {
"submodel": "bloodmagic:routing/ModelInputRoutingNodeBase.obj",
"transform": {
"translation": [ -0.5, 0.5, 0 ],
"rotation": {"z": 90}
}
},
"false": {} "false": {}
}, },
"west": { "west": {
"true": {"submodel": "bloodmagic:routing/RoutingNodeBase", "y": 270}, "true": {
"submodel": "bloodmagic:routing/ModelInputRoutingNodeBase.obj",
"transform": {
"translation": [ -0.5, -0.5, 0 ],
"rotation": {"z": -90}
}
},
"false": {} "false": {}
}, },
"down": { "down": {
"true": {"submodel": "bloodmagic:routing/RoutingNodeBase", "x": 90}, "true": {
"submodel": "bloodmagic:routing/ModelInputRoutingNodeBase.obj"
},
"false": {} "false": {}
}, },
"up": { "up": {
"true": {"submodel": "bloodmagic:routing/RoutingNodeBase", "x": -90}, "true": {
"submodel": "bloodmagic:routing/ModelInputRoutingNodeBase.obj",
"transform": {
"translation": [ -1, 0, 0 ],
"rotation": {"z": -180}
}
},
"false": {} "false": {}
} // Must have this in here or the blockstates loader will not know of all the properties and values, and it will create the wrong vanilla state strings. },
"inventory": [{
"submodel": "bloodmagic:routing/ModelInputRoutingNodeBase.obj"
}]
} }
} }

View file

@ -1,45 +1,72 @@
{ {
"forge_marker": 1, "forge_marker": 1,
"defaults": { "defaults": {
"model": "bloodmagic:routing/OutputRoutingNodeCore", "model": "bloodmagic:routing/ModelRoutingNodeCore.obj",
"rotation": [ "transform": {
{ "translation": [ 0.5, 0, 0.5 ]
"y": 45 },
}, "custom": { "flip-v": true },
{ "uvlock": true
"x": 45
}
],
"textures": {
"core": "blocks/cobblestone",
"attachment": "minecraft:blocks/stone"
},
"uvlock": true // This and all other properties of "defaults" will be inherited by simple submodels. They will NOT be inherited by named submodels.
}, },
"variants": { "variants": {
"north": { "north": {
"true": {"submodel": "bloodmagic:routing/RoutingNodeBase"}, // Simple submodel declaration. You can also specify multiple submodels for a variant. "true": {
"submodel": "bloodmagic:routing/ModelRoutingNodeBase.obj",
"transform": {
"translation": [ 0, -0.5, -0.5 ],
"rotation": {"x": 90}
}
},
"false": {} "false": {}
}, },
"south": { "south": {
"true": {"submodel": "bloodmagic:routing/RoutingNodeBase", "y": 180}, "true": {
"submodel": "bloodmagic:routing/ModelRoutingNodeBase.obj",
"transform": {
"translation": [ 0, 0.5, -0.5 ],
"rotation": {"x": -90}
}
},
"false": {} "false": {}
}, },
"east": { "east": {
"true": {"submodel": "bloodmagic:routing/RoutingNodeBase", "y": 90}, // Submodel will be rotated. "true": {
"submodel": "bloodmagic:routing/ModelRoutingNodeBase.obj",
"transform": {
"translation": [ -0.5, 0.5, 0 ],
"rotation": {"z": 90}
}
},
"false": {} "false": {}
}, },
"west": { "west": {
"true": {"submodel": "bloodmagic:routing/RoutingNodeBase", "y": 270}, "true": {
"submodel": "bloodmagic:routing/ModelRoutingNodeBase.obj",
"transform": {
"translation": [ -0.5, -0.5, 0 ],
"rotation": {"z": -90}
}
},
"false": {} "false": {}
}, },
"down": { "down": {
"true": {"submodel": "bloodmagic:routing/RoutingNodeBase", "x": 90}, "true": {
"submodel": "bloodmagic:routing/ModelRoutingNodeBase.obj"
},
"false": {} "false": {}
}, },
"up": { "up": {
"true": {"submodel": "bloodmagic:routing/RoutingNodeBase", "x": -90}, "true": {
"submodel": "bloodmagic:routing/ModelRoutingNodeBase.obj",
"transform": {
"translation": [ -1, 0, 0 ],
"rotation": {"z": -180}
}
},
"false": {} "false": {}
} // Must have this in here or the blockstates loader will not know of all the properties and values, and it will create the wrong vanilla state strings. },
"inventory": [{
"submodel": "bloodmagic:routing/ModelRoutingNodeBase.obj"
}]
} }
} }

View file

@ -1,7 +1,72 @@
{ {
"variants": { "forge_marker": 1,
"normal": { "model": "bloodmagic:BlockMasterRoutingNode" } "defaults": {
} "model": "bloodmagic:routing/ModelMasterRoutingNodeCore.obj",
"transform": {
"translation": [ 0.5, 0, 0.5 ]
},
"custom": { "flip-v": true },
"uvlock": true
},
"variants": {
"north": {
"true": {
"submodel": "bloodmagic:routing/ModelMasterRoutingNodeBase.obj",
"transform": {
"translation": [ 0, -0.5, -0.5 ],
"rotation": {"x": 90}
}
},
"false": {}
},
"south": {
"true": {
"submodel": "bloodmagic:routing/ModelMasterRoutingNodeBase.obj",
"transform": {
"translation": [ 0, 0.5, -0.5 ],
"rotation": {"x": -90}
}
},
"false": {}
},
"east": {
"true": {
"submodel": "bloodmagic:routing/ModelMasterRoutingNodeBase.obj",
"transform": {
"translation": [ -0.5, 0.5, 0 ],
"rotation": {"z": 90}
}
},
"false": {}
},
"west": {
"true": {
"submodel": "bloodmagic:routing/ModelMasterRoutingNodeBase.obj",
"transform": {
"translation": [ -0.5, -0.5, 0 ],
"rotation": {"z": -90}
}
},
"false": {}
},
"down": {
"true": {
"submodel": "bloodmagic:routing/ModelMasterRoutingNodeBase.obj"
},
"false": {}
},
"up": {
"true": {
"submodel": "bloodmagic:routing/ModelMasterRoutingNodeBase.obj",
"transform": {
"translation": [ -1, 0, 0 ],
"rotation": {"z": -180}
}
},
"false": {}
},
"inventory": [{
"submodel": "bloodmagic:routing/ModelMasterRoutingNodeBase.obj"
}]
}
} }

View file

@ -1,45 +1,72 @@
{ {
"forge_marker": 1, "forge_marker": 1,
"defaults": { "defaults": {
"model": "bloodmagic:routing/OutputRoutingNodeCore", "model": "bloodmagic:routing/ModelOutputRoutingNodeCore.obj",
"rotation": [ "transform": {
{ "translation": [ 0.5, 0, 0.5 ]
"y": 45 },
}, "custom": { "flip-v": true },
{ "uvlock": true
"x": 45
}
],
"textures": {
"core": "blocks/iron_block",
"attachment": "minecraft:blocks/stone"
},
"uvlock": true // This and all other properties of "defaults" will be inherited by simple submodels. They will NOT be inherited by named submodels.
}, },
"variants": { "variants": {
"north": { "north": {
"true": {"submodel": "bloodmagic:routing/RoutingNodeBase"}, // Simple submodel declaration. You can also specify multiple submodels for a variant. "true": {
"submodel": "bloodmagic:routing/ModelOutputRoutingNodeBase.obj",
"transform": {
"translation": [ 0, -0.5, -0.5 ],
"rotation": {"x": 90}
}
},
"false": {} "false": {}
}, },
"south": { "south": {
"true": {"submodel": "bloodmagic:routing/RoutingNodeBase", "y": 180}, "true": {
"submodel": "bloodmagic:routing/ModelOutputRoutingNodeBase.obj",
"transform": {
"translation": [ 0, 0.5, -0.5 ],
"rotation": {"x": -90}
}
},
"false": {} "false": {}
}, },
"east": { "east": {
"true": {"submodel": "bloodmagic:routing/RoutingNodeBase", "y": 90}, // Submodel will be rotated. "true": {
"submodel": "bloodmagic:routing/ModelOutputRoutingNodeBase.obj",
"transform": {
"translation": [ -0.5, 0.5, 0 ],
"rotation": {"z": 90}
}
},
"false": {} "false": {}
}, },
"west": { "west": {
"true": {"submodel": "bloodmagic:routing/RoutingNodeBase", "y": 270}, "true": {
"submodel": "bloodmagic:routing/ModelOutputRoutingNodeBase.obj",
"transform": {
"translation": [ -0.5, -0.5, 0 ],
"rotation": {"z": -90}
}
},
"false": {} "false": {}
}, },
"down": { "down": {
"true": {"submodel": "bloodmagic:routing/RoutingNodeBase", "x": 90}, "true": {
"submodel": "bloodmagic:routing/ModelOutputRoutingNodeBase.obj"
},
"false": {} "false": {}
}, },
"up": { "up": {
"true": {"submodel": "bloodmagic:routing/RoutingNodeBase", "x": -90}, "true": {
"submodel": "bloodmagic:routing/ModelOutputRoutingNodeBase.obj",
"transform": {
"translation": [ -1, 0, 0 ],
"rotation": {"z": -180}
}
},
"false": {} "false": {}
} // Must have this in here or the blockstates loader will not know of all the properties and values, and it will create the wrong vanilla state strings. },
"inventory": [{
"submodel": "bloodmagic:routing/ModelOutputRoutingNodeBase.obj"
}]
} }
} }

View file

@ -0,0 +1,11 @@
# Blender MTL File: 'None'
# Material Count: 1
newmtl None
Ns 0
Ka 0.000000 0.000000 0.000000
Kd 0.8 0.8 0.8
Ks 0.8 0.8 0.8
d 1
illum 2
map_Kd bloodmagic:models/ModelInputRoutingNode

View file

@ -0,0 +1,11 @@
# Blender MTL File: 'None'
# Material Count: 1
newmtl None
Ns 0
Ka 0.000000 0.000000 0.000000
Kd 0.8 0.8 0.8
Ks 0.8 0.8 0.8
d 1
illum 2
map_Kd bloodmagic:models/ModelInputRoutingNode

View file

@ -0,0 +1,11 @@
# Blender MTL File: 'None'
# Material Count: 1
newmtl None
Ns 0
Ka 0.000000 0.000000 0.000000
Kd 0.8 0.8 0.8
Ks 0.8 0.8 0.8
d 1
illum 2
map_Kd bloodmagic:models/ModelMasterRoutingNode

View file

@ -0,0 +1,11 @@
# Blender MTL File: 'None'
# Material Count: 1
newmtl None
Ns 0
Ka 0.000000 0.000000 0.000000
Kd 0.8 0.8 0.8
Ks 0.8 0.8 0.8
d 1
illum 2
map_Kd bloodmagic:models/ModelMasterRoutingNode

View file

@ -0,0 +1,11 @@
# Blender MTL File: 'None'
# Material Count: 1
newmtl None
Ns 0
Ka 0.000000 0.000000 0.000000
Kd 0.8 0.8 0.8
Ks 0.8 0.8 0.8
d 1
illum 2
map_Kd bloodmagic:models/ModelOutputRoutingNode

View file

@ -0,0 +1,11 @@
# Blender MTL File: 'None'
# Material Count: 1
newmtl None
Ns 0
Ka 0.000000 0.000000 0.000000
Kd 0.8 0.8 0.8
Ks 0.8 0.8 0.8
d 1
illum 2
map_Kd bloodmagic:models/ModelOutputRoutingNode

View file

@ -0,0 +1,11 @@
# Blender MTL File: 'None'
# Material Count: 1
newmtl None
Ns 0
Ka 0.000000 0.000000 0.000000
Kd 0.8 0.8 0.8
Ks 0.8 0.8 0.8
d 1
illum 2
map_Kd bloodmagic:models/modelroutingnode

View file

@ -0,0 +1,11 @@
# Blender MTL File: 'None'
# Material Count: 1
newmtl None
Ns 0
Ka 0.000000 0.000000 0.000000
Kd 0.8 0.8 0.8
Ks 0.8 0.8 0.8
d 1
illum 2
map_Kd bloodmagic:models/modelroutingnode

View file

@ -1,14 +0,0 @@
{
"parent": "bloodmagic:block/routing/OutputRoutingNodeCore",
"textures": {
"core": "blocks/gold_block",
"attachment": "minecraft:blocks/stone"
},
"display": {
"thirdperson": {
"rotation": [ 10, -45, 170 ],
"translation": [ 0, 1.5, -2.75 ],
"scale": [ 0.375, 0.375, 0.375 ]
}
}
}

View file

@ -1,15 +0,0 @@
{
"parent": "bloodmagic:block/routing/OutputRoutingNodeCore",
"textures": {
"core": "blocks/cobblestone",
"attachment": "minecraft:blocks/stone"
},
"display": {
"thirdperson": {
"rotation": [ 10, -45, 170 ],
"translation": [ 0, 1.5, -2.75 ],
"scale": [ 0.375, 0.375, 0.375 ]
}
}
}

View file

@ -1,10 +0,0 @@
{
"parent": "bloodmagic:block/BlockMasterRoutingNode",
"display": {
"thirdperson": {
"rotation": [ 10, -45, 170 ],
"translation": [ 0, 1.5, -2.75 ],
"scale": [ 0.375, 0.375, 0.375 ]
}
}
}

View file

@ -1,14 +0,0 @@
{
"parent": "bloodmagic:block/routing/OutputRoutingNodeCore",
"textures": {
"core": "blocks/iron_block",
"attachment": "minecraft:blocks/stone"
},
"display": {
"thirdperson": {
"rotation": [ 10, -45, 170 ],
"translation": [ 0, 1.5, -2.75 ],
"scale": [ 0.375, 0.375, 0.375 ]
}
}
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.9 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.8 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.9 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.8 KiB