Initial work on standalone cables.
This commit is contained in:
parent
50d1db2695
commit
d474870977
7 changed files with 518 additions and 0 deletions
101
src/main/resources/assets/techreborn/blockstates/cable.json
Normal file
101
src/main/resources/assets/techreborn/blockstates/cable.json
Normal file
|
@ -0,0 +1,101 @@
|
|||
{
|
||||
"forge_marker": 1,
|
||||
"defaults": {
|
||||
"transform": "forge:default-block",
|
||||
"model": "techreborn:cable",
|
||||
"textures": {
|
||||
"cable": "techreborn:block/cable",
|
||||
"particle": "#cable"
|
||||
}
|
||||
},
|
||||
"variants": {
|
||||
"inventory": [
|
||||
{
|
||||
"transform": "forge:default-block",
|
||||
"model": "techreborn:cable",
|
||||
"textures": {
|
||||
}
|
||||
}
|
||||
],
|
||||
"down": {
|
||||
"true": {
|
||||
"submodel": {
|
||||
"pipeDown": {
|
||||
"model": "techreborn:cable_connection_alt",
|
||||
"x": 270
|
||||
}
|
||||
}
|
||||
},
|
||||
"false": {
|
||||
}
|
||||
},
|
||||
"east": {
|
||||
"true": {
|
||||
"submodel": "techreborn:cable_connection",
|
||||
"y": 90
|
||||
},
|
||||
"false": {
|
||||
}
|
||||
},
|
||||
"north": {
|
||||
"true": {
|
||||
"submodel": "techreborn:cable_connection"
|
||||
},
|
||||
"false": {
|
||||
}
|
||||
},
|
||||
"south": {
|
||||
"true": {
|
||||
"submodel": "techreborn:cable_connection_alt"
|
||||
},
|
||||
"false": {
|
||||
}
|
||||
},
|
||||
"up": {
|
||||
"true": {
|
||||
"submodel": {
|
||||
"pipeUp": {
|
||||
"model": "techreborn:cable_connection",
|
||||
"x": 270
|
||||
}
|
||||
}
|
||||
},
|
||||
"false": {
|
||||
}
|
||||
},
|
||||
"west": {
|
||||
"true": {
|
||||
"submodel": "techreborn:cable_connection_alt",
|
||||
"y": 90
|
||||
},
|
||||
"false": {
|
||||
}
|
||||
},
|
||||
"type": {
|
||||
"copper" : {
|
||||
|
||||
},
|
||||
"tin" : {
|
||||
|
||||
},
|
||||
"gold" : {
|
||||
|
||||
},
|
||||
"hv" : {
|
||||
|
||||
},
|
||||
"glassfiber" : {
|
||||
|
||||
},
|
||||
"insulatedcopper" : {
|
||||
|
||||
},
|
||||
"insulatedgold" : {
|
||||
|
||||
},
|
||||
"insulatedhv" : {
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
21
src/main/resources/assets/techreborn/models/block/cable.json
Normal file
21
src/main/resources/assets/techreborn/models/block/cable.json
Normal file
|
@ -0,0 +1,21 @@
|
|||
{
|
||||
"__comment": "Model generated using MrCrayfish's Model Creator (http://mrcrayfish.com/modelcreator/)",
|
||||
"textures": {
|
||||
"0": "#cable"
|
||||
},
|
||||
"elements": [
|
||||
{
|
||||
"name": "Cable",
|
||||
"from": [ 5.0, 5.0, 5.0 ],
|
||||
"to": [ 11.0, 11.0, 11.0 ],
|
||||
"faces": {
|
||||
"north": { "texture": "#0", "uv": [ 0.0, 0.0, 6.0, 6.0 ] },
|
||||
"east": { "texture": "#0", "uv": [ 0.0, 0.0, 6.0, 6.0 ] },
|
||||
"south": { "texture": "#0", "uv": [ 0.0, 0.0, 6.0, 6.0 ] },
|
||||
"west": { "texture": "#0", "uv": [ 0.0, 0.0, 6.0, 6.0 ] },
|
||||
"up": { "texture": "#0", "uv": [ 0.0, 0.0, 6.0, 6.0 ] },
|
||||
"down": { "texture": "#0", "uv": [ 0.0, 0.0, 6.0, 6.0 ] }
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
|
@ -0,0 +1,21 @@
|
|||
{
|
||||
"__comment": "Model generated using MrCrayfish's Model Creator (http://mrcrayfish.com/modelcreator/)",
|
||||
"textures": {
|
||||
"0": "#cable"
|
||||
},
|
||||
"elements": [
|
||||
{
|
||||
"name": "Cube",
|
||||
"from": [ 5.0, 5.0, 0.0 ],
|
||||
"to": [ 11.0, 11.0, 5.0 ],
|
||||
"faces": {
|
||||
"north": { "texture": "#-1", "uv": [ 0.0, 0.0, 6.0, 6.0 ], "cullface": "north" },
|
||||
"east": { "texture": "#0", "uv": [ 0.0, 6.0, 5.0, 12.0 ] },
|
||||
"south": { "texture": "#-1", "uv": [ 0.0, 0.0, 6.0, 6.0 ], "cullface": "south" },
|
||||
"west": { "texture": "#0", "uv": [ 0.0, 6.0, 5.0, 12.0 ] },
|
||||
"up": { "texture": "#0", "uv": [ 0.0, 6.0, 5.0, 12.0 ], "rotation": 90 },
|
||||
"down": { "texture": "#0", "uv": [ 0.0, 6.0, 5.0, 12.0 ], "rotation": 90 }
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
|
@ -0,0 +1,81 @@
|
|||
{
|
||||
"__comment": "Model generated using MrCrayfish's Model Creator (http://mrcrayfish.com/modelcreator/)",
|
||||
"textures": {
|
||||
"0": "#cable"
|
||||
},
|
||||
"elements": [
|
||||
{
|
||||
"name": "Cube",
|
||||
"from": [
|
||||
5.0,
|
||||
5.0,
|
||||
11.0
|
||||
],
|
||||
"to": [
|
||||
11.0,
|
||||
11.0,
|
||||
16.0
|
||||
],
|
||||
"faces": {
|
||||
"north": {
|
||||
"texture": "#-1",
|
||||
"uv": [
|
||||
0.0,
|
||||
0.0,
|
||||
6.0,
|
||||
6.0
|
||||
],
|
||||
"cullface": "north"
|
||||
},
|
||||
"east": {
|
||||
"texture": "#0",
|
||||
"uv": [
|
||||
1.0,
|
||||
6.0,
|
||||
6.0,
|
||||
12.0
|
||||
]
|
||||
},
|
||||
"south": {
|
||||
"texture": "#-1",
|
||||
"uv": [
|
||||
0.0,
|
||||
0.0,
|
||||
6.0,
|
||||
6.0
|
||||
],
|
||||
"cullface": "south"
|
||||
},
|
||||
"west": {
|
||||
"texture": "#0",
|
||||
"uv": [
|
||||
1.0,
|
||||
6.0,
|
||||
6.0,
|
||||
12.0
|
||||
]
|
||||
},
|
||||
"up": {
|
||||
"texture": "#0",
|
||||
"uv": [
|
||||
1.0,
|
||||
6.0,
|
||||
6.0,
|
||||
12.0
|
||||
],
|
||||
"rotation": 90
|
||||
},
|
||||
"down": {
|
||||
"texture": "#0",
|
||||
"uv": [
|
||||
1.0,
|
||||
6.0,
|
||||
6.0,
|
||||
12.0
|
||||
],
|
||||
"rotation": 90
|
||||
}
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue