Models for cables

This commit is contained in:
drcrazy 2019-07-12 17:22:22 +03:00
parent d6e64364fc
commit ce72496ddd
48 changed files with 564 additions and 295 deletions

View file

@ -30,9 +30,10 @@ import net.minecraft.client.resource.language.I18n;
import net.minecraft.entity.player.PlayerEntity;
import net.minecraft.text.LiteralText;
import net.minecraft.util.Identifier;
import reborncore.client.containerBuilder.builder.BuiltContainer;
import techreborn.tiles.machine.iron.TileIronAlloyFurnace;
public class GuiAlloyFurnace extends AbstractContainerScreen {
public class GuiAlloyFurnace extends AbstractContainerScreen<BuiltContainer> {
private static final Identifier texture = new Identifier("techreborn",
"textures/gui/alloy_furnace.png");

View file

@ -1,56 +0,0 @@
{
"forge_marker": 1,
"defaults": {
"transform": "forge:default-item",
"model": "builtin/generated"
},
"variants": {
"type": {
"copper": {
"textures": {
"layer0": "techreborn:items/cables/copper"
}
},
"tin": {
"textures": {
"layer0": "techreborn:items/cables/tin"
}
},
"gold": {
"textures": {
"layer0": "techreborn:items/cables/gold"
}
},
"hv": {
"textures": {
"layer0": "techreborn:items/cables/hv"
}
},
"glassfiber": {
"textures": {
"layer0": "techreborn:items/cables/glassfiber"
}
},
"insulated_copper": {
"textures": {
"layer0": "techreborn:items/cables/insulatedcopper"
}
},
"insulated_gold": {
"textures": {
"layer0": "techreborn:items/cables/insulatedgold"
}
},
"insulated_hv": {
"textures": {
"layer0": "techreborn:items/cables/insulatedhv"
}
},
"superconductor": {
"textures": {
"layer0": "techreborn:items/cables/superconductor"
}
}
}
}
}

View file

@ -1,88 +0,0 @@
{
"forge_marker": 1,
"defaults": {
"transform": "forge:default-block",
"model": "techreborn:cable",
"textures": {
"particle": "#cable"
}
},
"variants": {
"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": {
}
},
"ztype": {
"insulated_copper": {
"textures": {
"cable": "techreborn:blocks/cables/copper_insulated_cable"
}
},
"insulated_gold": {
"textures": {
"cable": "techreborn:blocks/cables/gold_insulated_cable"
}
},
"insulated_hv": {
"textures": {
"cable": "techreborn:blocks/cables/hv_insulated_cable"
}
},
"superconductor": {
"textures": {
"cable": "techreborn:blocks/cables/superconductor_cable"
}
}
}
}
}

View file

@ -1,99 +0,0 @@
{
"forge_marker": 1,
"defaults": {
"transform": "forge:default-block",
"model": "techreborn:cable_thin",
"textures": {
"particle": "#cable"
}
},
"variants": {
"down": {
"true": {
"submodel": {
"pipeDown": {
"model": "techreborn:cable_connection_alt_thin",
"x": 270
}
}
},
"false": {
}
},
"east": {
"true": {
"submodel": "techreborn:cable_connection_thin",
"y": 90
},
"false": {
}
},
"north": {
"true": {
"submodel": "techreborn:cable_connection_thin"
},
"false": {
}
},
"south": {
"true": {
"submodel": "techreborn:cable_connection_alt_thin"
},
"false": {
}
},
"up": {
"true": {
"submodel": {
"pipeUp": {
"model": "techreborn:cable_connection_thin",
"x": 270
}
}
},
"false": {
}
},
"west": {
"true": {
"submodel": "techreborn:cable_connection_alt_thin",
"y": 90
},
"false": {
}
},
"ztype": {
"copper": {
"textures": {
"cable": "techreborn:blocks/cables/copper_cable"
}
},
"tin": {
"textures": {
"cable": "techreborn:blocks/cables/tin_cable"
}
},
"gold": {
"textures": {
"cable": "techreborn:blocks/cables/gold_cable"
}
},
"hv": {
"textures": {
"cable": "techreborn:blocks/cables/hv_cable"
}
},
"glassfiber": {
"textures": {
"cable": "techreborn:blocks/cables/glass_fiber_cable"
}
}
}
}
}

View file

@ -0,0 +1,33 @@
{
"multipart": [
{
"apply": {
"model": "techreborn:block/cable/copper_cable_core"
}
},
{
"when": { "north": "true" },
"apply": { "model": "techreborn:block/cable/copper_cable_side" }
},
{
"when": { "east": "true" },
"apply": { "model": "techreborn:block/cable/copper_cable_side", "y": 90 }
},
{
"when": { "south": "true" },
"apply": { "model": "techreborn:block/cable/copper_cable_side", "y": 180 }
},
{
"when": { "west": "true" },
"apply": { "model": "techreborn:block/cable/copper_cable_side", "y": 270 }
},
{
"when": { "up": "true" },
"apply": { "model": "techreborn:block/cable/copper_cable_side", "x": 270}
},
{
"when": { "down": "true" },
"apply": { "model": "techreborn:block/cable/copper_cable_side", "x": 90 }
}
]
}

View file

@ -0,0 +1,33 @@
{
"multipart": [
{
"apply": {
"model": "techreborn:block/cable/glassfiber_cable_core"
}
},
{
"when": { "north": "true" },
"apply": { "model": "techreborn:block/cable/glassfiber_cable_side" }
},
{
"when": { "east": "true" },
"apply": { "model": "techreborn:block/cable/glassfiber_cable_side", "y": 90 }
},
{
"when": { "south": "true" },
"apply": { "model": "techreborn:block/cable/glassfiber_cable_side", "y": 180 }
},
{
"when": { "west": "true" },
"apply": { "model": "techreborn:block/cable/glassfiber_cable_side", "y": 270 }
},
{
"when": { "up": "true" },
"apply": { "model": "techreborn:block/cable/glassfiber_cable_side", "x": 270}
},
{
"when": { "down": "true" },
"apply": { "model": "techreborn:block/cable/glassfiber_cable_side", "x": 90 }
}
]
}

View file

@ -0,0 +1,33 @@
{
"multipart": [
{
"apply": {
"model": "techreborn:block/cable/gold_cable_core"
}
},
{
"when": { "north": "true" },
"apply": { "model": "techreborn:block/cable/gold_cable_side" }
},
{
"when": { "east": "true" },
"apply": { "model": "techreborn:block/cable/gold_cable_side", "y": 90 }
},
{
"when": { "south": "true" },
"apply": { "model": "techreborn:block/cable/gold_cable_side", "y": 180 }
},
{
"when": { "west": "true" },
"apply": { "model": "techreborn:block/cable/gold_cable_side", "y": 270 }
},
{
"when": { "up": "true" },
"apply": { "model": "techreborn:block/cable/gold_cable_side", "x": 270}
},
{
"when": { "down": "true" },
"apply": { "model": "techreborn:block/cable/gold_cable_side", "x": 90 }
}
]
}

View file

@ -0,0 +1,33 @@
{
"multipart": [
{
"apply": {
"model": "techreborn:block/cable/hv_cable_core"
}
},
{
"when": { "north": "true" },
"apply": { "model": "techreborn:block/cable/hv_cable_side" }
},
{
"when": { "east": "true" },
"apply": { "model": "techreborn:block/cable/hv_cable_side", "y": 90 }
},
{
"when": { "south": "true" },
"apply": { "model": "techreborn:block/cable/hv_cable_side", "y": 180 }
},
{
"when": { "west": "true" },
"apply": { "model": "techreborn:block/cable/hv_cable_side", "y": 270 }
},
{
"when": { "up": "true" },
"apply": { "model": "techreborn:block/cable/hv_cable_side", "x": 270}
},
{
"when": { "down": "true" },
"apply": { "model": "techreborn:block/cable/hv_cable_side", "x": 90 }
}
]
}

View file

@ -0,0 +1,31 @@
{
"multipart": [
{
"apply": { "model": "techreborn:block/cable/insulated_copper_cable_core" }
},
{
"when": { "north": true },
"apply": { "model": "techreborn:block/cable/insulated_copper_cable_side" }
},
{
"when": { "east": true },
"apply": { "model": "techreborn:block/cable/insulated_copper_cable_side", "y": 90 }
},
{
"when": { "south": true },
"apply": { "model": "techreborn:block/cable/insulated_copper_cable_side", "y": 180 }
},
{
"when": { "west": true },
"apply": { "model": "techreborn:block/cable/insulated_copper_cable_side", "y": 270 }
},
{
"when": { "up": true },
"apply": { "model": "techreborn:block/cable/insulated_copper_cable_side", "x": 270}
},
{
"when": { "down": true },
"apply": { "model": "techreborn:block/cable/insulated_copper_cable_side", "x": 90 }
}
]
}

View file

@ -0,0 +1,31 @@
{
"multipart": [
{
"apply": { "model": "techreborn:block/cable/insulated_gold_cable_core" }
},
{
"when": { "north": true },
"apply": { "model": "techreborn:block/cable/insulated_gold_cable_side" }
},
{
"when": { "east": true },
"apply": { "model": "techreborn:block/cable/insulated_gold_cable_side", "y": 90 }
},
{
"when": { "south": true },
"apply": { "model": "techreborn:block/cable/insulated_gold_cable_side", "y": 180 }
},
{
"when": { "west": true },
"apply": { "model": "techreborn:block/cable/insulated_gold_cable_side", "y": 270 }
},
{
"when": { "up": true },
"apply": { "model": "techreborn:block/cable/insulated_gold_cable_side", "x": 270}
},
{
"when": { "down": true },
"apply": { "model": "techreborn:block/cable/insulated_gold_cable_side", "x": 90 }
}
]
}

View file

@ -0,0 +1,31 @@
{
"multipart": [
{
"apply": { "model": "techreborn:block/cable/insulated_hv_cable_core" }
},
{
"when": { "north": true },
"apply": { "model": "techreborn:block/cable/insulated_hv_cable_side" }
},
{
"when": { "east": true },
"apply": { "model": "techreborn:block/cable/insulated_hv_cable_side", "y": 90 }
},
{
"when": { "south": true },
"apply": { "model": "techreborn:block/cable/insulated_hv_cable_side", "y": 180 }
},
{
"when": { "west": true },
"apply": { "model": "techreborn:block/cable/insulated_hv_cable_side", "y": 270 }
},
{
"when": { "up": true },
"apply": { "model": "techreborn:block/cable/insulated_hv_cable_side", "x": 270}
},
{
"when": { "down": true },
"apply": { "model": "techreborn:block/cable/insulated_hv_cable_side", "x": 90 }
}
]
}

View file

@ -1,51 +0,0 @@
{
"forge_marker": 1,
"defaults": {
"model": "builtin/generated",
"transform": "forge:default-item"
},
"variants": {
"type": {
"copper": {
"textures": {
"layer0": "techreborn:items/cables/copper"
}
},
"glassfiber": {
"textures": {
"layer0": "techreborn:items/cables/glassfiber"
}
},
"gold": {
"textures": {
"layer0": "techreborn:items/cables/gold"
}
},
"hv": {
"textures": {
"layer0": "techreborn:items/cables/hv"
}
},
"insulatedcopper": {
"textures": {
"layer0": "techreborn:items/cables/insulatedcopper"
}
},
"insulatedgold": {
"textures": {
"layer0": "techreborn:items/cables/insulatedgold"
}
},
"insulatedhv": {
"textures": {
"layer0": "techreborn:items/cables/insulatedhv"
}
},
"tin": {
"textures": {
"layer0": "techreborn:items/cables/tin"
}
}
}
}
}

View file

@ -0,0 +1,31 @@
{
"multipart": [
{
"apply": { "model": "techreborn:block/cable/superconductor_cable_core" }
},
{
"when": { "north": true },
"apply": { "model": "techreborn:block/cable/superconductor_cable_side" }
},
{
"when": { "east": true },
"apply": { "model": "techreborn:block/cable/superconductor_cable_side", "y": 90 }
},
{
"when": { "south": true },
"apply": { "model": "techreborn:block/cable/superconductor_cable_side", "y": 180 }
},
{
"when": { "west": true },
"apply": { "model": "techreborn:block/cable/superconductor_cable_side", "y": 270 }
},
{
"when": { "up": true },
"apply": { "model": "techreborn:block/cable/superconductor_cable_side", "x": 270}
},
{
"when": { "down": true },
"apply": { "model": "techreborn:block/cable/superconductor_cable_side", "x": 90 }
}
]
}

View file

@ -0,0 +1,33 @@
{
"multipart": [
{
"apply": {
"model": "techreborn:block/cable/tin_cable_core"
}
},
{
"when": { "north": "true" },
"apply": { "model": "techreborn:block/cable/tin_cable_side" }
},
{
"when": { "east": "true" },
"apply": { "model": "techreborn:block/cable/tin_cable_side", "y": 90 }
},
{
"when": { "south": "true" },
"apply": { "model": "techreborn:block/cable/tin_cable_side", "y": 180 }
},
{
"when": { "west": "true" },
"apply": { "model": "techreborn:block/cable/tin_cable_side", "y": 270 }
},
{
"when": { "up": "true" },
"apply": { "model": "techreborn:block/cable/tin_cable_side", "x": 270}
},
{
"when": { "down": "true" },
"apply": { "model": "techreborn:block/cable/tin_cable_side", "x": 90 }
}
]
}

View file

@ -0,0 +1,6 @@
{
"parent": "techreborn:block/template/template_thin_cable_core",
"textures": {
"cable": "techreborn:block/cables/copper_cable"
}
}

View file

@ -0,0 +1,6 @@
{
"parent": "techreborn:block/template/template_thin_cable_side",
"textures": {
"cable": "techreborn:block/cables/copper_cable"
}
}

View file

@ -0,0 +1,6 @@
{
"parent": "techreborn:block/template/template_thin_cable_core",
"textures": {
"cable": "techreborn:block/cables/glassfiber_cable"
}
}

View file

@ -0,0 +1,6 @@
{
"parent": "techreborn:block/template/template_thin_cable_side",
"textures": {
"cable": "techreborn:block/cables/glassfiber_cable"
}
}

View file

@ -0,0 +1,6 @@
{
"parent": "techreborn:block/template/template_thin_cable_core",
"textures": {
"cable": "techreborn:block/cables/gold_cable"
}
}

View file

@ -0,0 +1,6 @@
{
"parent": "techreborn:block/template/template_thin_cable_side",
"textures": {
"cable": "techreborn:block/cables/gold_cable"
}
}

View file

@ -0,0 +1,6 @@
{
"parent": "techreborn:block/template/template_thin_cable_core",
"textures": {
"cable": "techreborn:block/cables/hv_cable"
}
}

View file

@ -0,0 +1,6 @@
{
"parent": "techreborn:block/template/template_thin_cable_side",
"textures": {
"cable": "techreborn:block/cables/hv_cable"
}
}

View file

@ -0,0 +1,6 @@
{
"parent": "techreborn:block/template/template_thick_cable_core",
"textures": {
"cable": "techreborn:block/cables/copper_insulated_cable"
}
}

View file

@ -0,0 +1,7 @@
{
"__comment": "Not used as for now. part of work aimed to hide core if there are side connections",
"parent": "techreborn:block/template/template_thick_cable_core_alt",
"textures": {
"cable": "techreborn:block/cables/copper_insulated_cable"
}
}

View file

@ -0,0 +1,6 @@
{
"parent": "techreborn:block/template/template_thick_cable_side",
"textures": {
"cable": "techreborn:block/cables/copper_insulated_cable"
}
}

View file

@ -0,0 +1,6 @@
{
"parent": "techreborn:block/template/template_thick_cable_core",
"textures": {
"cable": "techreborn:block/cables/gold_insulated_cable"
}
}

View file

@ -0,0 +1,6 @@
{
"parent": "techreborn:block/template/template_thick_cable_side",
"textures": {
"cable": "techreborn:block/cables/gold_insulated_cable"
}
}

View file

@ -0,0 +1,6 @@
{
"parent": "techreborn:block/template/template_thick_cable_core",
"textures": {
"cable": "techreborn:block/cables/hv_insulated_cable"
}
}

View file

@ -0,0 +1,6 @@
{
"parent": "techreborn:block/template/template_thick_cable_side",
"textures": {
"cable": "techreborn:block/cables/hv_insulated_cable"
}
}

View file

@ -0,0 +1,6 @@
{
"parent": "techreborn:block/template/template_thick_cable_core",
"textures": {
"cable": "techreborn:block/cables/superconductor_cable"
}
}

View file

@ -0,0 +1,6 @@
{
"parent": "techreborn:block/template/template_thick_cable_side",
"textures": {
"cable": "techreborn:block/cables/superconductor_cable"
}
}

View file

@ -0,0 +1,6 @@
{
"parent": "techreborn:block/template/template_thin_cable_core",
"textures": {
"cable": "techreborn:block/cables/tin_cable"
}
}

View file

@ -0,0 +1,6 @@
{
"parent": "techreborn:block/template/template_thin_cable_side",
"textures": {
"cable": "techreborn:block/cables/tin_cable"
}
}

View file

@ -0,0 +1,21 @@
{
"textures": {
"particle": "#cable"
},
"elements": [
{
"__comment": "central part, no sides connected",
"from": [5, 5, 5],
"to": [11, 11, 11],
"shade": true,
"faces": {
"north": {"uv": [0, 0, 6, 6], "texture": "#cable"},
"east": {"uv": [0, 0, 6, 6], "texture": "#cable"},
"south": {"uv": [0, 0, 6, 6], "texture": "#cable"},
"west": {"uv": [0, 0, 6, 6], "texture": "#cable"},
"up": {"uv": [0, 0, 6, 6], "texture": "#cable"},
"down": {"uv": [0, 0, 6, 6], "texture": "#cable"}
}
}
]
}

View file

@ -0,0 +1,21 @@
{
"textures": {
"particle": "#cable"
},
"elements": [
{
"__comment": "side part",
"from": [ 5, 5, 0 ],
"to": [ 11, 11, 5 ],
"shade": true,
"faces": {
"north": { "texture": "#cable", "uv": [ 0, 0, 6, 6 ] },
"east": { "texture": "#cable", "uv": [0, 6, 5, 12] },
"south": { "texture": "#cable", "uv": [ 0, 0, 6, 6 ], "cullface": "south" },
"west": { "texture": "#cable", "uv": [0, 6, 5, 12] },
"up": { "texture": "#cable", "uv": [ 0, 6, 6, 12 ], "rotation": 90 },
"down": { "texture": "#cable", "uv": [ 0, 6, 6, 12 ], "rotation": 90 }
}
}
]
}

View file

@ -0,0 +1,21 @@
{
"textures": {
"particle": "#cable"
},
"elements": [
{
"__comment": "central part",
"from": [6, 6, 6],
"to": [10, 10, 10],
"shade": true,
"faces": {
"north": {"uv": [1, 1, 5, 5], "texture": "#cable"},
"east": {"uv": [1, 1, 5, 5], "texture": "#cable"},
"south": {"uv": [1, 1, 5, 5], "texture": "#cable"},
"west": {"uv": [1, 1, 5, 5], "texture": "#cable"},
"up": {"uv": [1, 1, 5, 5], "texture": "#cable"},
"down": {"uv": [1, 1, 5, 5], "texture": "#cable"}
}
}
]
}

View file

@ -0,0 +1,41 @@
{
"textures": {
"particle": "#cable"
},
"elements": [
{
"from": [ 6, 6, 0 ],
"to": [ 10, 10, 6 ],
"shade": true,
"faces": {
"north": {
"uv": [ 1, 1, 5, 5 ],
"texture": "#cable"
},
"east": {
"uv": [0, 7, 6, 11],
"texture": "#cable"
},
"south": {
"uv": [ 1, 1, 5, 5 ],
"texture": "#cable",
"cullface": "south"
},
"west": {
"uv": [0, 7, 6, 11],
"texture": "#cable"
},
"up": {
"uv": [ 0, 7, 6, 11 ],
"texture": "#cable",
"rotation": 90
},
"down": {
"uv": [ 0, 7, 6, 11 ],
"texture": "#cable",
"rotation": 90
}
}
}
]
}

View file

@ -0,0 +1,6 @@
{
"parent": "minecraft:item/generated",
"textures": {
"layer0": "techreborn:item/cables/copper"
}
}

View file

@ -0,0 +1,6 @@
{
"parent": "minecraft:item/generated",
"textures": {
"layer0": "techreborn:item/cables/glassfiber"
}
}

View file

@ -0,0 +1,6 @@
{
"parent": "minecraft:item/generated",
"textures": {
"layer0": "techreborn:item/cables/gold"
}
}

View file

@ -0,0 +1,6 @@
{
"parent": "minecraft:item/generated",
"textures": {
"layer0": "techreborn:item/cables/hv"
}
}

View file

@ -0,0 +1,6 @@
{
"parent": "minecraft:item/generated",
"textures": {
"layer0": "techreborn:item/cables/insulatedcopper"
}
}

View file

@ -0,0 +1,6 @@
{
"parent": "minecraft:item/generated",
"textures": {
"layer0": "techreborn:item/cables/insulatedgold"
}
}

View file

@ -0,0 +1,6 @@
{
"parent": "minecraft:item/generated",
"textures": {
"layer0": "techreborn:item/cables/insulatedhv"
}
}

View file

@ -0,0 +1,6 @@
{
"parent": "minecraft:item/generated",
"textures": {
"layer0": "techreborn:item/cables/superconductor"
}
}

View file

@ -0,0 +1,6 @@
{
"parent": "minecraft:item/generated",
"textures": {
"layer0": "techreborn:item/cables/tin"
}
}