Compare commits
No commits in common. "9305b1e0efb3cfe33a9a5e95b6bedaca5a3758ef" and "0d629914c4fa17a8a643be97b70ec149b97d7c2e" have entirely different histories.
9305b1e0ef
...
0d629914c4
90
build.gradle
|
@ -5,62 +5,13 @@ plugins {
|
||||||
id "com.github.johnrengelman.shadow" version "4.0.4"
|
id "com.github.johnrengelman.shadow" version "4.0.4"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
sourceCompatibility = JavaVersion.VERSION_1_8
|
||||||
|
targetCompatibility = JavaVersion.VERSION_1_8
|
||||||
|
|
||||||
archivesBaseName = project.archives_base_name
|
archivesBaseName = project.archives_base_name
|
||||||
version = project.mod_version
|
version = project.mod_version
|
||||||
group = project.maven_group
|
group = project.maven_group
|
||||||
|
|
||||||
allprojects {
|
|
||||||
pluginManager.withPlugin("java") {
|
|
||||||
sourceCompatibility = JavaVersion.VERSION_1_8
|
|
||||||
targetCompatibility = JavaVersion.VERSION_1_8
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
configure(allprojects.findAll { it.name != "kiwi-java" }) {
|
|
||||||
pluginManager.withPlugin("fabric-loom") {
|
|
||||||
dependencies {
|
|
||||||
//to change the versions see the gradle.properties file
|
|
||||||
minecraft "com.mojang:minecraft:${project.minecraft_version}"
|
|
||||||
mappings "net.fabricmc:yarn:${project.yarn_mappings}"
|
|
||||||
modImplementation "net.fabricmc:fabric-loader:${project.loader_version}"
|
|
||||||
|
|
||||||
// Fabric API. This is technically optional, but you probably want it anyway.
|
|
||||||
modImplementation "net.fabricmc.fabric-api:fabric-api:${project.fabric_version}"
|
|
||||||
modImplementation "net.fabricmc:fabric-language-kotlin:${project.fabric_kotlin_version}"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
pluginManager.withPlugin("java") {
|
|
||||||
processResources {
|
|
||||||
inputs.property "version", project.version
|
|
||||||
|
|
||||||
filesMatching("fabric.mod.json") {
|
|
||||||
expand "version": project.version
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
// ensure that the encoding is set to UTF-8, no matter what the system default is
|
|
||||||
// this fixes some edge cases with special characters not displaying correctly
|
|
||||||
// see http://yodaconditions.net/blog/fix-for-java-file-encoding-problems-with-gradle.html
|
|
||||||
tasks.withType(JavaCompile) {
|
|
||||||
options.encoding = "UTF-8"
|
|
||||||
}
|
|
||||||
|
|
||||||
java {
|
|
||||||
// Loom will automatically attach sourcesJar to a RemapSourcesJar task and to the "build" task
|
|
||||||
// if it is present.
|
|
||||||
// If you remove this line, sources will not be generated.
|
|
||||||
withSourcesJar()
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
pluginManager.withPlugin("org.jetbrains.kotlin.jvm") {
|
|
||||||
compileKotlin {
|
|
||||||
kotlinOptions.jvmTarget = JavaVersion.VERSION_1_8
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
minecraft {
|
minecraft {
|
||||||
log4jConfigs.from "PhyConDebugLogging.xml"
|
log4jConfigs.from "PhyConDebugLogging.xml"
|
||||||
}
|
}
|
||||||
|
@ -73,6 +24,15 @@ repositories {
|
||||||
}
|
}
|
||||||
|
|
||||||
dependencies {
|
dependencies {
|
||||||
|
//to change the versions see the gradle.properties file
|
||||||
|
minecraft "com.mojang:minecraft:${project.minecraft_version}"
|
||||||
|
mappings "net.fabricmc:yarn:${project.yarn_mappings}"
|
||||||
|
modImplementation "net.fabricmc:fabric-loader:${project.loader_version}"
|
||||||
|
|
||||||
|
// Fabric API. This is technically optional, but you probably want it anyway.
|
||||||
|
modImplementation "net.fabricmc.fabric-api:fabric-api:${project.fabric_version}"
|
||||||
|
modImplementation "net.fabricmc:fabric-language-kotlin:${project.fabric_kotlin_version}"
|
||||||
|
|
||||||
// PSA: Some older mods, compiled on Loom 0.2.1, might have outdated Maven POMs.
|
// PSA: Some older mods, compiled on Loom 0.2.1, might have outdated Maven POMs.
|
||||||
// You may need to force-disable transitiveness on them.
|
// You may need to force-disable transitiveness on them.
|
||||||
modImplementation "alexiil.mc.lib:libblockattributes-all:${project.libblockattributes_version}"
|
modImplementation "alexiil.mc.lib:libblockattributes-all:${project.libblockattributes_version}"
|
||||||
|
@ -95,6 +55,32 @@ dependencies {
|
||||||
testImplementation "org.junit.jupiter:junit-jupiter:${project.junit_version}"
|
testImplementation "org.junit.jupiter:junit-jupiter:${project.junit_version}"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
processResources {
|
||||||
|
inputs.property "version", project.version
|
||||||
|
|
||||||
|
filesMatching("fabric.mod.json") {
|
||||||
|
expand "version": project.version
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
// ensure that the encoding is set to UTF-8, no matter what the system default is
|
||||||
|
// this fixes some edge cases with special characters not displaying correctly
|
||||||
|
// see http://yodaconditions.net/blog/fix-for-java-file-encoding-problems-with-gradle.html
|
||||||
|
tasks.withType(JavaCompile) {
|
||||||
|
options.encoding = "UTF-8"
|
||||||
|
}
|
||||||
|
|
||||||
|
compileKotlin {
|
||||||
|
kotlinOptions.jvmTarget = JavaVersion.VERSION_1_8
|
||||||
|
}
|
||||||
|
|
||||||
|
java {
|
||||||
|
// Loom will automatically attach sourcesJar to a RemapSourcesJar task and to the "build" task
|
||||||
|
// if it is present.
|
||||||
|
// If you remove this line, sources will not be generated.
|
||||||
|
withSourcesJar()
|
||||||
|
}
|
||||||
|
|
||||||
jar {
|
jar {
|
||||||
from("LICENSE") {
|
from("LICENSE") {
|
||||||
rename { "${it}_${project.archivesBaseName}" }
|
rename { "${it}_${project.archivesBaseName}" }
|
||||||
|
|
|
@ -3,10 +3,17 @@ plugins {
|
||||||
id "org.jetbrains.kotlin.jvm"
|
id "org.jetbrains.kotlin.jvm"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
sourceCompatibility = JavaVersion.VERSION_1_8
|
||||||
|
targetCompatibility = JavaVersion.VERSION_1_8
|
||||||
|
|
||||||
archivesBaseName = project.archives_base_name
|
archivesBaseName = project.archives_base_name
|
||||||
version = project.mod_version
|
version = project.mod_version
|
||||||
group = project.maven_group
|
group = project.maven_group
|
||||||
|
|
||||||
|
minecraft {
|
||||||
|
log4jConfigs.from "PhyConDebugLogging.xml"
|
||||||
|
}
|
||||||
|
|
||||||
repositories {
|
repositories {
|
||||||
maven {
|
maven {
|
||||||
url = "https://maven.shedaniel.me/"
|
url = "https://maven.shedaniel.me/"
|
||||||
|
@ -15,6 +22,15 @@ repositories {
|
||||||
}
|
}
|
||||||
|
|
||||||
dependencies {
|
dependencies {
|
||||||
|
//to change the versions see the gradle.properties file
|
||||||
|
minecraft "com.mojang:minecraft:${project.minecraft_version}"
|
||||||
|
mappings "net.fabricmc:yarn:${project.yarn_mappings}"
|
||||||
|
modImplementation "net.fabricmc:fabric-loader:${project.loader_version}"
|
||||||
|
|
||||||
|
// Fabric API. This is technically optional, but you probably want it anyway.
|
||||||
|
modImplementation "net.fabricmc.fabric-api:fabric-api:${project.fabric_version}"
|
||||||
|
modImplementation "net.fabricmc:fabric-language-kotlin:${project.fabric_kotlin_version}"
|
||||||
|
|
||||||
implementation project(":")
|
implementation project(":")
|
||||||
|
|
||||||
modCompileOnly("me.shedaniel:RoughlyEnoughItems-api:${project.rei_version}") {
|
modCompileOnly("me.shedaniel:RoughlyEnoughItems-api:${project.rei_version}") {
|
||||||
|
@ -24,3 +40,35 @@ dependencies {
|
||||||
exclude group: "net.fabricmc.fabric-api"
|
exclude group: "net.fabricmc.fabric-api"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
processResources {
|
||||||
|
inputs.property "version", project.version
|
||||||
|
|
||||||
|
filesMatching("fabric.mod.json") {
|
||||||
|
expand "version": project.version
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
// ensure that the encoding is set to UTF-8, no matter what the system default is
|
||||||
|
// this fixes some edge cases with special characters not displaying correctly
|
||||||
|
// see http://yodaconditions.net/blog/fix-for-java-file-encoding-problems-with-gradle.html
|
||||||
|
tasks.withType(JavaCompile) {
|
||||||
|
options.encoding = "UTF-8"
|
||||||
|
}
|
||||||
|
|
||||||
|
compileKotlin {
|
||||||
|
kotlinOptions.jvmTarget = JavaVersion.VERSION_1_8
|
||||||
|
}
|
||||||
|
|
||||||
|
java {
|
||||||
|
// Loom will automatically attach sourcesJar to a RemapSourcesJar task and to the "build" task
|
||||||
|
// if it is present.
|
||||||
|
// If you remove this line, sources will not be generated.
|
||||||
|
withSourcesJar()
|
||||||
|
}
|
||||||
|
|
||||||
|
jar {
|
||||||
|
from("LICENSE") {
|
||||||
|
rename { "${it}_${project.archivesBaseName}" }
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
|
@ -80,12 +80,11 @@ class Label(
|
||||||
updateIntrinsicContentSize(false)
|
updateIntrinsicContentSize(false)
|
||||||
}
|
}
|
||||||
|
|
||||||
private fun updateIntrinsicContentSize(canWrap: Boolean, isFromDidLayout: Boolean = false): Boolean {
|
private fun updateIntrinsicContentSize(canWrap: Boolean): Boolean {
|
||||||
if (RenderHelper.disabled) return false
|
if (RenderHelper.disabled) return false
|
||||||
|
|
||||||
val oldSize = intrinsicContentSize
|
val oldSize = intrinsicContentSize
|
||||||
// don't wrap until we've laid out without wrapping to ensure the current bounds reflect the maximum available space
|
if (wrappingMode == WrappingMode.WRAP && canWrap && hasSolver) {
|
||||||
if (wrappingMode == WrappingMode.WRAP && canWrap && hasSolver && isFromDidLayout) {
|
|
||||||
val lines = textRenderer.wrapLines(text, bounds.width.toInt())
|
val lines = textRenderer.wrapLines(text, bounds.width.toInt())
|
||||||
val height = (if (maxLines == 0) lines.size else min(lines.size, maxLines)) * textRenderer.fontHeight
|
val height = (if (maxLines == 0) lines.size else min(lines.size, maxLines)) * textRenderer.fontHeight
|
||||||
intrinsicContentSize = Size(bounds.width, height.toDouble())
|
intrinsicContentSize = Size(bounds.width, height.toDouble())
|
||||||
|
@ -121,7 +120,7 @@ class Label(
|
||||||
super.didLayout()
|
super.didLayout()
|
||||||
|
|
||||||
computeLines()
|
computeLines()
|
||||||
if (updateIntrinsicContentSize(true, true)) {
|
if (updateIntrinsicContentSize(true)) {
|
||||||
// if the intrinsic content size changes, relayout
|
// if the intrinsic content size changes, relayout
|
||||||
window!!.layout()
|
window!!.layout()
|
||||||
}
|
}
|
||||||
|
|
|
@ -95,9 +95,7 @@ class ExtractorBlockEntity: DeviceBlockEntity(PhyBlockEntities.EXTRACTOR),
|
||||||
for (slot in 0 until inventory.slotCount) {
|
for (slot in 0 until inventory.slotCount) {
|
||||||
val slotStack = inventory.getInvStack(slot)
|
val slotStack = inventory.getInvStack(slot)
|
||||||
if (slotStack.isEmpty) continue
|
if (slotStack.isEmpty) continue
|
||||||
val extractable = inventory.extractStack(slot, ExactItemStackFilter(slotStack), ItemStack.EMPTY, slotStack.count, Simulation.SIMULATE)
|
dispatchItemStack(slotStack) { insertion ->
|
||||||
if (extractable.isEmpty) continue
|
|
||||||
dispatchItemStack(extractable) { insertion ->
|
|
||||||
insertion.inventory = inventory
|
insertion.inventory = inventory
|
||||||
insertion.inventorySlot = slot
|
insertion.inventorySlot = slot
|
||||||
}
|
}
|
||||||
|
|
|
@ -29,7 +29,7 @@ abstract class FaceDeviceModel: UnbakedModel, BakedModel {
|
||||||
protected val defaultRotations = listOf(
|
protected val defaultRotations = listOf(
|
||||||
ModelRotation.X0_Y0,
|
ModelRotation.X0_Y0,
|
||||||
ModelRotation.X180_Y0,
|
ModelRotation.X180_Y0,
|
||||||
ModelRotation.X90_Y180,
|
ModelRotation.X270_Y0,
|
||||||
ModelRotation.X90_Y0,
|
ModelRotation.X90_Y0,
|
||||||
ModelRotation.X90_Y90,
|
ModelRotation.X90_Y90,
|
||||||
ModelRotation.X90_Y270,
|
ModelRotation.X90_Y270,
|
||||||
|
|
|
@ -28,8 +28,8 @@ object PhyItems {
|
||||||
val TERMINAL = DeviceBlockItem(PhyBlocks.TERMINAL, Item.Settings())
|
val TERMINAL = DeviceBlockItem(PhyBlocks.TERMINAL, Item.Settings())
|
||||||
val SWITCH = BlockItem(PhyBlocks.SWITCH, Item.Settings())
|
val SWITCH = BlockItem(PhyBlocks.SWITCH, Item.Settings())
|
||||||
val CABLE = BlockItem(PhyBlocks.CABLE, Item.Settings())
|
val CABLE = BlockItem(PhyBlocks.CABLE, Item.Settings())
|
||||||
val EXTRACTOR = FaceDeviceBlockItem(PhyBlocks.EXTRACTOR, Item.Settings())
|
val EXTRACTOR = DeviceBlockItem(PhyBlocks.EXTRACTOR, Item.Settings())
|
||||||
val INSERTER = FaceDeviceBlockItem(PhyBlocks.INSERTER, Item.Settings())
|
val INSERTER = DeviceBlockItem(PhyBlocks.INSERTER, Item.Settings())
|
||||||
val MINER = DeviceBlockItem(PhyBlocks.MINER, Item.Settings())
|
val MINER = DeviceBlockItem(PhyBlocks.MINER, Item.Settings())
|
||||||
val REDSTONE_CONTROLLER = FaceDeviceBlockItem(PhyBlocks.REDSTONE_CONTROLLER, Item.Settings())
|
val REDSTONE_CONTROLLER = FaceDeviceBlockItem(PhyBlocks.REDSTONE_CONTROLLER, Item.Settings())
|
||||||
val REDSTONE_EMITTER = FaceDeviceBlockItem(PhyBlocks.REDSTONE_EMITTER, Item.Settings())
|
val REDSTONE_EMITTER = FaceDeviceBlockItem(PhyBlocks.REDSTONE_EMITTER, Item.Settings())
|
||||||
|
|
|
@ -1,7 +0,0 @@
|
||||||
{
|
|
||||||
"variants": {
|
|
||||||
"": {
|
|
||||||
"model": "phycon:block/switch"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
|
@ -1,43 +1,40 @@
|
||||||
{
|
{
|
||||||
"parent": "block/block",
|
"parent": "block/block",
|
||||||
"textures": {
|
"textures": {
|
||||||
"switch": "phycon:block/switch",
|
|
||||||
"front": "phycon:block/extractor_front",
|
|
||||||
"particle": "#front"
|
|
||||||
},
|
},
|
||||||
"elements": [
|
"elements": [
|
||||||
{
|
{
|
||||||
"from": [0, 0, 0],
|
"from": [0, 0, 0],
|
||||||
"to": [16, 2, 16],
|
"to": [16, 2, 16],
|
||||||
"faces": {
|
"faces": {
|
||||||
"down": {"texture": "#front", "cullface": "down"},
|
"down": {"texture": "phycon:block/extractor_front", "cullface": "down"},
|
||||||
"up": {"texture": "#switch"},
|
"up": {"texture": "phycon:block/extractor_back"},
|
||||||
"north": {"texture": "#switch"},
|
"north": {"texture": "phycon:block/extractor_side"},
|
||||||
"south": {"texture": "#switch"},
|
"south": {"texture": "phycon:block/extractor_side"},
|
||||||
"west": {"texture": "#switch"},
|
"west": {"texture": "phycon:block/extractor_side"},
|
||||||
"east": {"texture": "#switch"}
|
"east": {"texture": "phycon:block/extractor_side"}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"from": [2, 2, 2],
|
"from": [2, 2, 2],
|
||||||
"to": [14, 4, 14],
|
"to": [14, 4, 14],
|
||||||
"faces": {
|
"faces": {
|
||||||
"up": {"texture": "#switch"},
|
"up": {"texture": "phycon:block/extractor_back"},
|
||||||
"north": {"texture": "#switch"},
|
"north": {"texture": "phycon:block/extractor_side"},
|
||||||
"south": {"texture": "#switch"},
|
"south": {"texture": "phycon:block/extractor_side"},
|
||||||
"west": {"texture": "#switch"},
|
"west": {"texture": "phycon:block/extractor_side"},
|
||||||
"east": {"texture": "#switch"}
|
"east": {"texture": "phycon:block/extractor_side"}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"from": [4, 4, 4],
|
"from": [4, 4, 4],
|
||||||
"to": [12, 6, 12],
|
"to": [12, 6, 12],
|
||||||
"faces": {
|
"faces": {
|
||||||
"up": {"texture": "#switch"},
|
"up": {"texture": "phycon:block/extractor_back"},
|
||||||
"north": {"texture": "#switch"},
|
"north": {"texture": "phycon:block/extractor_side"},
|
||||||
"south": {"texture": "#switch"},
|
"south": {"texture": "phycon:block/extractor_side"},
|
||||||
"west": {"texture": "#switch"},
|
"west": {"texture": "phycon:block/extractor_side"},
|
||||||
"east": {"texture": "#switch"}
|
"east": {"texture": "phycon:block/extractor_side"}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
|
|
|
@ -1,44 +1,40 @@
|
||||||
{
|
{
|
||||||
"parent": "block/block",
|
"parent": "block/block",
|
||||||
"textures": {
|
"textures": {
|
||||||
"switch": "phycon:block/switch",
|
|
||||||
"front": "phycon:block/inserter_front",
|
|
||||||
"front_middle": "phycon:block/inserter_front_middle",
|
|
||||||
"particle": "#front"
|
|
||||||
},
|
},
|
||||||
"elements": [
|
"elements": [
|
||||||
{
|
{
|
||||||
"from": [4, 0, 4],
|
"from": [4, 0, 4],
|
||||||
"to": [12, 2, 12],
|
"to": [12, 2, 12],
|
||||||
"faces": {
|
"faces": {
|
||||||
"down": {"texture": "#front", "cullface": "down"},
|
"down": {"texture": "phycon:block/extractor_front", "cullface": "down"},
|
||||||
"north": {"texture": "#switch"},
|
"north": {"texture": "phycon:block/extractor_side"},
|
||||||
"south": {"texture": "#switch"},
|
"south": {"texture": "phycon:block/extractor_side"},
|
||||||
"west": {"texture": "#switch"},
|
"west": {"texture": "phycon:block/extractor_side"},
|
||||||
"east": {"texture": "#switch"}
|
"east": {"texture": "phycon:block/extractor_side"}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"from": [2, 2, 2],
|
"from": [2, 2, 2],
|
||||||
"to": [14, 4, 14],
|
"to": [14, 4, 14],
|
||||||
"faces": {
|
"faces": {
|
||||||
"down": {"texture": "#front_middle"},
|
"down": {"texture": "phycon:block/extractor_front"},
|
||||||
"north": {"texture": "#switch"},
|
"north": {"texture": "phycon:block/extractor_side"},
|
||||||
"south": {"texture": "#switch"},
|
"south": {"texture": "phycon:block/extractor_side"},
|
||||||
"west": {"texture": "#switch"},
|
"west": {"texture": "phycon:block/extractor_side"},
|
||||||
"east": {"texture": "#switch"}
|
"east": {"texture": "phycon:block/extractor_side"}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"from": [0, 4, 0],
|
"from": [0, 4, 0],
|
||||||
"to": [16, 6, 16],
|
"to": [16, 6, 16],
|
||||||
"faces": {
|
"faces": {
|
||||||
"down": {"texture": "#switch"},
|
"down": {"texture": "phycon:block/extractor_front"},
|
||||||
"up": {"texture": "#switch"},
|
"up": {"texture": "phycon:block/extractor_back"},
|
||||||
"north": {"texture": "#switch", "uv": [0, 0, 16, 2]},
|
"north": {"texture": "phycon:block/extractor_side"},
|
||||||
"south": {"texture": "#switch", "uv": [0, 0, 16, 2]},
|
"south": {"texture": "phycon:block/extractor_side"},
|
||||||
"west": {"texture": "#switch", "uv": [0, 0, 16, 2]},
|
"west": {"texture": "phycon:block/extractor_side"},
|
||||||
"east": {"texture": "#switch", "uv": [0, 0, 16, 2]}
|
"east": {"texture": "phycon:block/extractor_side"}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
|
|
|
@ -1,22 +1,19 @@
|
||||||
{
|
{
|
||||||
"parent": "block/block",
|
"parent": "block/block",
|
||||||
"textures": {
|
"textures": {
|
||||||
"cable": "phycon:block/cable_straight",
|
"cable": "phycon:block/cable_straight"
|
||||||
"particle": "#front",
|
|
||||||
"back": "phycon:block/interface_back",
|
|
||||||
"front": "phycon:block/interface_front"
|
|
||||||
},
|
},
|
||||||
"elements": [
|
"elements": [
|
||||||
{
|
{
|
||||||
"from": [2, 0, 2],
|
"from": [2, 0, 2],
|
||||||
"to": [14, 2, 14],
|
"to": [14, 2, 14],
|
||||||
"faces": {
|
"faces": {
|
||||||
"down": { "texture": "#front" },
|
"down": { "texture": "phycon:block/interface_front" },
|
||||||
"up": { "texture": "#back" },
|
"up": { "texture": "phycon:block/interface_back" },
|
||||||
"north": { "texture": "#back" },
|
"north": { "texture": "phycon:block/interface_side" },
|
||||||
"south": { "texture": "#back" },
|
"south": { "texture": "phycon:block/interface_side" },
|
||||||
"west": { "texture": "#back" },
|
"west": { "texture": "phycon:block/interface_side" },
|
||||||
"east": { "texture": "#back" }
|
"east": { "texture": "phycon:block/interface_side" }
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
|
|
@ -1,6 +0,0 @@
|
||||||
{
|
|
||||||
"parent": "block/cube_all",
|
|
||||||
"textures": {
|
|
||||||
"all": "phycon:block/switch"
|
|
||||||
}
|
|
||||||
}
|
|
|
@ -1,50 +0,0 @@
|
||||||
{
|
|
||||||
"parent": "block/block",
|
|
||||||
"display": {
|
|
||||||
"firstperson_righthand": {
|
|
||||||
"rotation": [ 0, 215, 0 ],
|
|
||||||
"translation": [ 3, 0, -3 ],
|
|
||||||
"scale": [ 0.40, 0.40, 0.40 ]
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"textures": {
|
|
||||||
"switch": "phycon:block/switch",
|
|
||||||
"front": "phycon:block/extractor_front"
|
|
||||||
},
|
|
||||||
"elements": [
|
|
||||||
{
|
|
||||||
"from": [14, 0, 0],
|
|
||||||
"to": [16, 16, 16],
|
|
||||||
"faces": {
|
|
||||||
"down": {"texture": "#switch"},
|
|
||||||
"up": {"texture": "#switch"},
|
|
||||||
"north": {"texture": "#switch"},
|
|
||||||
"south": {"texture": "#switch"},
|
|
||||||
"west": {"texture": "#switch"},
|
|
||||||
"east": {"texture": "#front"}
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"from": [12, 2, 2],
|
|
||||||
"to": [14, 14, 14],
|
|
||||||
"faces": {
|
|
||||||
"down": {"texture": "#switch"},
|
|
||||||
"up": {"texture": "#switch"},
|
|
||||||
"north": {"texture": "#switch"},
|
|
||||||
"south": {"texture": "#switch"},
|
|
||||||
"west": {"texture": "#switch"}
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"from": [10, 4, 4],
|
|
||||||
"to": [12, 12, 12],
|
|
||||||
"faces": {
|
|
||||||
"down": {"texture": "#switch"},
|
|
||||||
"up": {"texture": "#switch"},
|
|
||||||
"north": {"texture": "#switch"},
|
|
||||||
"south": {"texture": "#switch"},
|
|
||||||
"west": {"texture": "#switch"}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
]
|
|
||||||
}
|
|
|
@ -1,51 +0,0 @@
|
||||||
{
|
|
||||||
"parent": "block/block",
|
|
||||||
"display": {
|
|
||||||
"firstperson_righthand": {
|
|
||||||
"rotation": [ 0, 215, 0 ],
|
|
||||||
"translation": [ 3, 0, -3 ],
|
|
||||||
"scale": [ 0.40, 0.40, 0.40 ]
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"textures": {
|
|
||||||
"switch": "phycon:block/switch",
|
|
||||||
"front": "phycon:block/inserter_front",
|
|
||||||
"front_middle": "phycon:block/inserter_front_middle"
|
|
||||||
},
|
|
||||||
"elements": [
|
|
||||||
{
|
|
||||||
"from": [14, 4, 4],
|
|
||||||
"to": [16, 12, 12],
|
|
||||||
"faces": {
|
|
||||||
"down": {"texture": "#switch"},
|
|
||||||
"up": {"texture": "#switch"},
|
|
||||||
"north": {"texture": "#switch"},
|
|
||||||
"south": {"texture": "#switch"},
|
|
||||||
"east": {"texture": "#front"}
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"from": [12, 2, 2],
|
|
||||||
"to": [14, 14, 14],
|
|
||||||
"faces": {
|
|
||||||
"down": {"texture": "#switch"},
|
|
||||||
"up": {"texture": "#switch"},
|
|
||||||
"north": {"texture": "#switch"},
|
|
||||||
"south": {"texture": "#switch"},
|
|
||||||
"east": {"texture": "#front_middle"}
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"from": [10, 0, 0],
|
|
||||||
"to": [12, 16, 16],
|
|
||||||
"faces": {
|
|
||||||
"down": {"texture": "#switch", "uv": [0, 0, 16, 2]},
|
|
||||||
"up": {"texture": "#switch", "uv": [0, 0, 16, 2]},
|
|
||||||
"north": {"texture": "#switch", "uv": [0, 0, 16, 2]},
|
|
||||||
"south": {"texture": "#switch", "uv": [0, 0, 16, 2]},
|
|
||||||
"west": {"texture": "#switch"},
|
|
||||||
"east": {"texture": "#switch"}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
]
|
|
||||||
}
|
|
|
@ -3,25 +3,51 @@
|
||||||
"display": {
|
"display": {
|
||||||
"firstperson_righthand": {
|
"firstperson_righthand": {
|
||||||
"rotation": [0, 215, 0],
|
"rotation": [0, 215, 0],
|
||||||
"translation": [ 3, 0, -3 ],
|
"translation": [0, 0, 0],
|
||||||
"scale": [ 0.40, 0.40, 0.40 ]
|
"scale": [0.4, 0.4, 0.4]
|
||||||
}
|
|
||||||
},
|
},
|
||||||
"textures": {
|
"thirdperson_righthand": {
|
||||||
"front": "phycon:block/interface_front",
|
"rotation": [75, 215, 0],
|
||||||
"back": "phycon:block/switch"
|
"translation": [0, -2.5, 0],
|
||||||
|
"scale": [0.375, 0.375, 0.375]
|
||||||
|
}
|
||||||
},
|
},
|
||||||
"elements": [
|
"elements": [
|
||||||
{
|
{
|
||||||
"from": [14, 2, 2],
|
"_comment": "cable center",
|
||||||
"to": [16, 14, 14],
|
"from": [6, 6, 6],
|
||||||
|
"to": [10, 10, 10],
|
||||||
"faces": {
|
"faces": {
|
||||||
"down": { "texture": "#back" },
|
"down": { "texture": "phycon:block/cable_center" },
|
||||||
"up": { "texture": "#back" },
|
"up": { "texture": "phycon:block/cable_center" },
|
||||||
"north": { "texture": "#back" },
|
"north": { "texture": "phycon:block/cable_center" },
|
||||||
"south": { "texture": "#back" },
|
"south": { "texture": "phycon:block/cable_center" },
|
||||||
"west": { "texture": "#back" },
|
"west": { "texture": "phycon:block/cable_center" },
|
||||||
"east": { "texture": "#front" }
|
"east": { "texture": "phycon:block/cable_center" }
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"_comment": "interface side",
|
||||||
|
"from": [2, 2, 14],
|
||||||
|
"to": [14, 14, 16],
|
||||||
|
"faces": {
|
||||||
|
"down": { "texture": "phycon:block/interface_side" },
|
||||||
|
"up": { "texture": "phycon:block/interface_side" },
|
||||||
|
"north": { "texture": "phycon:block/interface_front" },
|
||||||
|
"south": { "texture": "phycon:block/interface_back" },
|
||||||
|
"west": { "texture": "phycon:block/interface_side" },
|
||||||
|
"east": { "texture": "phycon:block/interface_side" }
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"_comment": "interface middle",
|
||||||
|
"from": [6, 6, 10],
|
||||||
|
"to": [10, 10, 14],
|
||||||
|
"faces": {
|
||||||
|
"down": { "texture": "phycon:block/cable_side" },
|
||||||
|
"up": { "texture": "phycon:block/cable_side" },
|
||||||
|
"west": { "texture": "phycon:block/cable_side" },
|
||||||
|
"east": { "texture": "phycon:block/cable_side" }
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
|
|
|
@ -1,3 +0,0 @@
|
||||||
{
|
|
||||||
"parent": "phycon:block/switch"
|
|
||||||
}
|
|
Before Width: | Height: | Size: 765 B |
Before Width: | Height: | Size: 990 B |
Before Width: | Height: | Size: 866 B |
Before Width: | Height: | Size: 868 B |
Before Width: | Height: | Size: 864 B |
Before Width: | Height: | Size: 921 B |
Before Width: | Height: | Size: 881 B |