diff --git a/build.gradle b/build.gradle index 7522263..8a1844e 100644 --- a/build.gradle +++ b/build.gradle @@ -32,11 +32,11 @@ sourceCompatibility = 1.8 targetCompatibility = 1.8 minecraft { - version = "14.23.4.2745" + version = "1.12.2-14.23.5.2768" runDir = "run" replace '${version}', project.version - mappings = "snapshot_20171003" + mappings = "stable_39" } repositories { diff --git a/src/main/java/malte0811/industrialwires/IWPotions.java b/src/main/java/malte0811/industrialwires/IWPotions.java index 47b7003..3ef14f8 100644 --- a/src/main/java/malte0811/industrialwires/IWPotions.java +++ b/src/main/java/malte0811/industrialwires/IWPotions.java @@ -37,7 +37,7 @@ public class IWPotions { setIconIndex(0, 0); this.setRegistryName(new ResourceLocation(IndustrialWires.MODID, "tinnitus")); ForgeRegistries.POTIONS.register(this); - this.setPotionName("potion."+ IndustrialWires.MODID+"." + getRegistryName().getResourcePath()); + this.setPotionName("potion." + IndustrialWires.MODID + "." + getRegistryName().getPath()); } @Override diff --git a/src/main/java/malte0811/industrialwires/IndustrialWires.java b/src/main/java/malte0811/industrialwires/IndustrialWires.java index b0b6079..41e6cc1 100644 --- a/src/main/java/malte0811/industrialwires/IndustrialWires.java +++ b/src/main/java/malte0811/industrialwires/IndustrialWires.java @@ -140,8 +140,9 @@ public class IndustrialWires { public static IndustrialWires instance = new IndustrialWires(); public static CreativeTabs creativeTab = new CreativeTabs(MODID) { + @Override - public ItemStack getTabIconItem() { + public ItemStack createIcon() { if (coil!=null) { return new ItemStack(coil, 1, 2); } else { diff --git a/src/main/java/malte0811/industrialwires/blocks/BlockIWBase.java b/src/main/java/malte0811/industrialwires/blocks/BlockIWBase.java index fcaf745..cb23fbb 100644 --- a/src/main/java/malte0811/industrialwires/blocks/BlockIWBase.java +++ b/src/main/java/malte0811/industrialwires/blocks/BlockIWBase.java @@ -55,7 +55,7 @@ public abstract class BlockIWBase extends Block { super(mat); setHardness(3.0F); setResistance(15.0F); - setUnlocalizedName(IndustrialWires.MODID + "." + name); + setTranslationKey(IndustrialWires.MODID + "." + name); setRegistryName(IndustrialWires.MODID, name); setCreativeTab(IndustrialWires.creativeTab); IndustrialWires.blocks.add(this); diff --git a/src/main/java/malte0811/industrialwires/blocks/ItemBlockIW.java b/src/main/java/malte0811/industrialwires/blocks/ItemBlockIW.java index 875c602..7729cdb 100644 --- a/src/main/java/malte0811/industrialwires/blocks/ItemBlockIW.java +++ b/src/main/java/malte0811/industrialwires/blocks/ItemBlockIW.java @@ -45,12 +45,12 @@ public class ItemBlockIW extends ItemBlock { @Nonnull @Override - public String getUnlocalizedName(ItemStack stack) { + public String getTranslationKey(ItemStack stack) { int meta = stack.getMetadata(); if (values != null) { - return block.getUnlocalizedName() + "." + values[meta].toString().toLowerCase(); + return block.getTranslationKey() + "." + values[meta].toString().toLowerCase(); } else { - return block.getUnlocalizedName(); + return block.getTranslationKey(); } } diff --git a/src/main/java/malte0811/industrialwires/blocks/TileEntityIWMultiblock.java b/src/main/java/malte0811/industrialwires/blocks/TileEntityIWMultiblock.java index 7d43fa1..1ac9085 100644 --- a/src/main/java/malte0811/industrialwires/blocks/TileEntityIWMultiblock.java +++ b/src/main/java/malte0811/industrialwires/blocks/TileEntityIWMultiblock.java @@ -122,7 +122,7 @@ public abstract class TileEntityIWMultiblock extends TileEntityIWBase implements mirrored = in.getBoolean(MIRRORED); int[] offset = in.getIntArray(OFFSET); this.offset = new Vec3i(offset[0], offset[1], offset[2]); - facing = EnumFacing.getHorizontal(in.getInteger(FACING)); + facing = EnumFacing.byHorizontalIndex(in.getInteger(FACING)); } public Vec3i getSize() { diff --git a/src/main/java/malte0811/industrialwires/blocks/controlpanel/TileEntityComponentPanel.java b/src/main/java/malte0811/industrialwires/blocks/controlpanel/TileEntityComponentPanel.java index 39ca081..3659601 100644 --- a/src/main/java/malte0811/industrialwires/blocks/controlpanel/TileEntityComponentPanel.java +++ b/src/main/java/malte0811/industrialwires/blocks/controlpanel/TileEntityComponentPanel.java @@ -48,7 +48,7 @@ public class TileEntityComponentPanel extends TileEntityPanel { } public void updateRSInput() { - int value = world.isBlockIndirectlyGettingPowered(pos); + int value = world.getRedstonePowerFromNeighbors(pos); if (value == 0) { for (EnumFacing f : EnumFacing.HORIZONTALS) { IBlockState state = world.getBlockState(pos.offset(f)); diff --git a/src/main/java/malte0811/industrialwires/blocks/controlpanel/TileEntityPanel.java b/src/main/java/malte0811/industrialwires/blocks/controlpanel/TileEntityPanel.java index aced3b1..defd205 100644 --- a/src/main/java/malte0811/industrialwires/blocks/controlpanel/TileEntityPanel.java +++ b/src/main/java/malte0811/industrialwires/blocks/controlpanel/TileEntityPanel.java @@ -106,8 +106,8 @@ public class TileEntityPanel extends TileEntityGeneralCP implements IDirectional @Override public void readNBT(NBTTagCompound in, boolean updatePacket) { readFromItemNBT(in); - components.setFacing(EnumFacing.getHorizontal(in.getInteger("facing"))); - components.setTop(EnumFacing.getFront(in.getInteger("top"))); + components.setFacing(EnumFacing.byHorizontalIndex(in.getInteger("facing"))); + components.setTop(EnumFacing.byIndex(in.getInteger("top"))); } @Override @@ -226,9 +226,9 @@ public class TileEntityPanel extends TileEntityGeneralCP implements IDirectional Matrix4 mat = components.getPanelTopTransformInverse(); PanelComponent retPc = null; RayTraceResult retRay = null; - Vec3d playerPosRelative = player.getPositionVector().addVector(-pos.getX(), player.getEyeHeight() - pos.getY(), -pos.getZ()); + Vec3d playerPosRelative = player.getPositionVector().add(-pos.getX(), player.getEyeHeight() - pos.getY(), -pos.getZ()); Vec3d playerPosTransformed = mat.apply(playerPosRelative); - Vec3d hitRel = hitAbs ? hitVec.addVector(-pos.getX(), -pos.getY(), -pos.getZ()) : hitVec; + Vec3d hitRel = hitAbs ? hitVec.add(-pos.getX(), -pos.getY(), -pos.getZ()) : hitVec; RayTraceResult r = getBoundingBox().calculateIntercept(playerPosRelative, playerPosRelative.add(player.getLookVec().scale(200))); if (r != null && r.hitVec != null) { hitRel = r.hitVec; diff --git a/src/main/java/malte0811/industrialwires/blocks/controlpanel/TileEntityRSPanelIE.java b/src/main/java/malte0811/industrialwires/blocks/controlpanel/TileEntityRSPanelIE.java index 0b20559..aa0b768 100644 --- a/src/main/java/malte0811/industrialwires/blocks/controlpanel/TileEntityRSPanelIE.java +++ b/src/main/java/malte0811/industrialwires/blocks/controlpanel/TileEntityRSPanelIE.java @@ -146,7 +146,7 @@ public class TileEntityRSPanelIE extends TileEntityRSPanel//TODO what parts of T public Vec3d getConnectionOffset(ImmersiveNetHandler.Connection connection) { EnumFacing side = facing.getOpposite(); double conRadius = connection.cableType.getRenderDiameter() / 2; - return new Vec3d(.5 - conRadius * side.getFrontOffsetX(), .5 - conRadius * side.getFrontOffsetY(), .5 - conRadius * side.getFrontOffsetZ()); + return new Vec3d(.5 - conRadius * side.getXOffset(), .5 - conRadius * side.getYOffset(), .5 - conRadius * side.getZOffset()); } @Override diff --git a/src/main/java/malte0811/industrialwires/blocks/hv/BlockJacobsLadder.java b/src/main/java/malte0811/industrialwires/blocks/hv/BlockJacobsLadder.java index 739a0e9..ec7a909 100644 --- a/src/main/java/malte0811/industrialwires/blocks/hv/BlockJacobsLadder.java +++ b/src/main/java/malte0811/industrialwires/blocks/hv/BlockJacobsLadder.java @@ -143,9 +143,10 @@ public class BlockJacobsLadder extends BlockIWBase implements IMetaEnum, IPlacem return new ItemStack(this, 1, getMetaFromState(state)); } + @Override - public void onEntityCollidedWithBlock(World worldIn, BlockPos pos, IBlockState state, Entity entityIn) { - super.onEntityCollidedWithBlock(worldIn, pos, state, entityIn); + public void onEntityCollision(World worldIn, BlockPos pos, IBlockState state, Entity entityIn) { + super.onEntityCollision(worldIn, pos, state, entityIn); TileEntity te = worldIn.getTileEntity(pos); if (te instanceof TileEntityJacobsLadder) { ((TileEntityJacobsLadder) te).onEntityTouch(entityIn); diff --git a/src/main/java/malte0811/industrialwires/blocks/hv/TileEntityDischargeMeter.java b/src/main/java/malte0811/industrialwires/blocks/hv/TileEntityDischargeMeter.java index f80d024..8bec9e5 100644 --- a/src/main/java/malte0811/industrialwires/blocks/hv/TileEntityDischargeMeter.java +++ b/src/main/java/malte0811/industrialwires/blocks/hv/TileEntityDischargeMeter.java @@ -52,7 +52,7 @@ public class TileEntityDischargeMeter extends TileEntityIWBase implements IPlaye @Override public void readNBT(NBTTagCompound in, boolean updatePacket) { hasWire = in.getBoolean(HAS_WIRE); - facing = EnumFacing.getHorizontal(in.getByte(FACING)); + facing = EnumFacing.byHorizontalIndex(in.getByte(FACING)); lastDischarge = in.getDouble(LAST_DISCHARGE); aabb = null; } diff --git a/src/main/java/malte0811/industrialwires/blocks/hv/TileEntityMarx.java b/src/main/java/malte0811/industrialwires/blocks/hv/TileEntityMarx.java index e6d5033..2ef08dc 100644 --- a/src/main/java/malte0811/industrialwires/blocks/hv/TileEntityMarx.java +++ b/src/main/java/malte0811/industrialwires/blocks/hv/TileEntityMarx.java @@ -714,16 +714,16 @@ public class TileEntityMarx extends TileEntityIWMultiblock implements ITickable, .radius(5); List toAdd = new ArrayList<>(te.stageCount*2-3); if (te.dischargeData!=null&&te.dischargeData.energy>0) { - toAdd.add(builder.pos(origin.addVector(0, 0, 0)).build()); - toAdd.add(builder.pos(origin.addVector(0, te.stageCount/2, 0)).build()); - toAdd.add(builder.pos(origin.addVector(0, te.stageCount-2, 0)).build()); + toAdd.add(builder.pos(origin.add(0, 0, 0)).build()); + toAdd.add(builder.pos(origin.add(0, te.stageCount / 2, 0)).build()); + toAdd.add(builder.pos(origin.add(0, te.stageCount - 2, 0)).build()); } origin = new Vec3d(offset(te.pos, te.facing, te.mirrored, 1, 0, 0)) - .addVector(0, .75, 0) + .add(0, .75, 0) .add(new Vec3d(te.facing.getDirectionVec()).scale(.25)); builder.radius(.5F); for (int i = 0;i= 0) { return new PanelModelBase(); diff --git a/src/main/java/malte0811/industrialwires/client/panelmodel/RawModelFontRenderer.java b/src/main/java/malte0811/industrialwires/client/panelmodel/RawModelFontRenderer.java index afe7842..9bd1853 100644 --- a/src/main/java/malte0811/industrialwires/client/panelmodel/RawModelFontRenderer.java +++ b/src/main/java/malte0811/industrialwires/client/panelmodel/RawModelFontRenderer.java @@ -91,10 +91,10 @@ public class RawModelFontRenderer extends FontRenderer { @Override public void onResourceManagerReload(IResourceManager resourceManager) { super.onResourceManagerReload(resourceManager); - String p = locationFontTexture.getResourcePath(); + String p = locationFontTexture.getPath(); if (p.startsWith("textures/")) p = p.substring("textures/".length(), p.length()); if (p.endsWith(".png")) p = p.substring(0, p.length() - ".png".length()); - String f = locationFontTexture.getResourceDomain() + ":" + p; + String f = locationFontTexture.getNamespace() + ":" + p; sprite = Minecraft.getMinecraft().getTextureMapBlocks().getAtlasSprite(f); } diff --git a/src/main/java/malte0811/industrialwires/client/render/TileRenderMarx.java b/src/main/java/malte0811/industrialwires/client/render/TileRenderMarx.java index ce88694..06cd73b 100644 --- a/src/main/java/malte0811/industrialwires/client/render/TileRenderMarx.java +++ b/src/main/java/malte0811/industrialwires/client/render/TileRenderMarx.java @@ -52,14 +52,14 @@ public class TileRenderMarx extends TileEntitySpecialRenderer { //draw firing spark gaps Vec3i facing = te.facing.getDirectionVec(); Vec3d offset = new Vec3d(MiscUtils.offset(BlockPos.ORIGIN, te.facing, te.mirrored, 1, 1, 0)); - offset = offset.addVector(-.5*oneSgn(offset.x), 0, -.5*oneSgn(offset.z)); + offset = offset.add(-.5 * oneSgn(offset.x), 0, -.5 * oneSgn(offset.z)); final float pos = .3125F; Vec3d gapDir = new Vec3d(facing.getZ()*(te.mirrored?-1:1), 1, facing.getX()*(te.mirrored?1:-1)); Vec3d up = new Vec3d(gapDir.x, -1, gapDir.z); Vec3d bottomGap = new Vec3d(offset.x+facing.getX()*pos+.5, offset.y+.75, offset.z+facing.getZ() * pos+.5); GlStateManager.pushMatrix(); GlStateManager.translate(x + bottomGap.x, y + bottomGap.y, z + bottomGap.z); - bottomGap = bottomGap.addVector(te.getPos().getX(), te.getPos().getY(), te.getPos().getZ()); + bottomGap = bottomGap.add(te.getPos().getX(), te.getPos().getY(), te.getPos().getZ()); for (int i = 0; i < te.getStageCount() - 1; i++) { renderGap(i, facing, vb, tes, player, gapDir, up, bottomGap, te.mirrored); } @@ -85,7 +85,7 @@ public class TileRenderMarx extends TileEntitySpecialRenderer { player = player.subtract(bottomGap.x, bottomGap.y+i, bottomGap.z); double t = player.dotProduct(gapDir)/2; Vec3d lineToPlayer = gapDir.scale(t).subtract(player); - double angleRad = Math.acos(up.dotProduct(lineToPlayer)/(up.lengthVector()*lineToPlayer.lengthVector())); + double angleRad = Math.acos(up.dotProduct(lineToPlayer) / (up.length() * lineToPlayer.length())); angleRad *= Math.signum(lineToPlayer.dotProduct(new Vec3d(facing))); float angle = (float) (Math.toDegrees(angleRad)); if (facing.getZ()<0) { diff --git a/src/main/java/malte0811/industrialwires/controlpanel/PanelUtils.java b/src/main/java/malte0811/industrialwires/controlpanel/PanelUtils.java index 98b5bb5..0bc0059 100644 --- a/src/main/java/malte0811/industrialwires/controlpanel/PanelUtils.java +++ b/src/main/java/malte0811/industrialwires/controlpanel/PanelUtils.java @@ -304,7 +304,7 @@ public final class PanelUtils { if (rs && data.hasKey(RS_CHANNEL)) { EnumDyeColor channColor = EnumDyeColor.byMetadata(data.getInteger(RS_CHANNEL)); String hexCol = Integer.toHexString(channColor.getColorValue()); - list.add(I18n.format("desc.immersiveengineering.info.redstoneChannel", "")); + list.add(I18n.format("desc.immersiveengineering.info.redstoneChannel", "")); } if (rs && data.hasKey(RS_ID)) { list.add(I18n.format(IndustrialWires.MODID + ".tooltip.rsId", data.getInteger(RS_ID))); diff --git a/src/main/java/malte0811/industrialwires/entities/EntityBrokenPart.java b/src/main/java/malte0811/industrialwires/entities/EntityBrokenPart.java index 52715ca..4e7acff 100644 --- a/src/main/java/malte0811/industrialwires/entities/EntityBrokenPart.java +++ b/src/main/java/malte0811/industrialwires/entities/EntityBrokenPart.java @@ -39,8 +39,8 @@ public class EntityBrokenPart extends Entity { public static final DataSerializer RES_LOC_SERIALIZER = new DataSerializer() { @Override public void write(@Nonnull PacketBuffer buf, @Nonnull ResourceLocation value) { - buf.writeString(value.getResourceDomain()); - buf.writeString(value.getResourcePath()); + buf.writeString(value.getNamespace()); + buf.writeString(value.getPath()); } @Nonnull @@ -59,7 +59,7 @@ public class EntityBrokenPart extends Entity { @Nonnull @Override public ResourceLocation copyValue(@Nonnull ResourceLocation value) { - return new ResourceLocation(value.getResourceDomain(), value.getResourcePath()); + return new ResourceLocation(value.getNamespace(), value.getPath()); } }; public static DataParameter MARKER_TEXTURE; diff --git a/src/main/java/malte0811/industrialwires/items/ItemIC2Coil.java b/src/main/java/malte0811/industrialwires/items/ItemIC2Coil.java index cd60b7c..933e3fa 100644 --- a/src/main/java/malte0811/industrialwires/items/ItemIC2Coil.java +++ b/src/main/java/malte0811/industrialwires/items/ItemIC2Coil.java @@ -47,7 +47,7 @@ public class ItemIC2Coil extends Item implements IWireCoil { public final static String NAME = "ic2_wire_coil"; public ItemIC2Coil() { - setUnlocalizedName(IndustrialWires.MODID + "."+NAME); + setTranslationKey(IndustrialWires.MODID + "." + NAME); setHasSubtypes(true); this.setCreativeTab(IndustrialWires.creativeTab); setMaxStackSize(1); @@ -67,10 +67,11 @@ public class ItemIC2Coil extends Item implements IWireCoil { } } + @Nonnull @Override - public String getUnlocalizedName(ItemStack stack) { - return this.getUnlocalizedName() + "." + subNames[stack.getMetadata()]; + public String getTranslationKey(ItemStack stack) { + return this.getTranslationKey() + "." + subNames[stack.getMetadata()]; } @Override diff --git a/src/main/java/malte0811/industrialwires/items/ItemKey.java b/src/main/java/malte0811/industrialwires/items/ItemKey.java index 990c02d..14ca082 100644 --- a/src/main/java/malte0811/industrialwires/items/ItemKey.java +++ b/src/main/java/malte0811/industrialwires/items/ItemKey.java @@ -42,7 +42,7 @@ public class ItemKey extends Item implements INetGUIItem { public static final String ITEM_NAME = "key"; public ItemKey() { - setUnlocalizedName(IndustrialWires.MODID + "."+ITEM_NAME); + setTranslationKey(IndustrialWires.MODID + "." + ITEM_NAME); setHasSubtypes(true); this.setCreativeTab(IndustrialWires.creativeTab); setMaxStackSize(64); @@ -83,7 +83,7 @@ public class ItemKey extends Item implements INetGUIItem { @Nonnull @Override - public String getUnlocalizedName(ItemStack stack) { + public String getTranslationKey(ItemStack stack) { return "item."+IndustrialWires.MODID+".key."+types[stack.getMetadata()]; } diff --git a/src/main/java/malte0811/industrialwires/items/ItemPanelComponent.java b/src/main/java/malte0811/industrialwires/items/ItemPanelComponent.java index f14864b..880be06 100644 --- a/src/main/java/malte0811/industrialwires/items/ItemPanelComponent.java +++ b/src/main/java/malte0811/industrialwires/items/ItemPanelComponent.java @@ -58,7 +58,7 @@ public class ItemPanelComponent extends Item implements INetGUIItem { public static final String NAME = "panel_component"; public ItemPanelComponent() { - setUnlocalizedName(IndustrialWires.MODID + "."+NAME); + setTranslationKey(IndustrialWires.MODID + "." + NAME); setHasSubtypes(true); this.setCreativeTab(IndustrialWires.creativeTab); setMaxStackSize(64); @@ -85,10 +85,11 @@ public class ItemPanelComponent extends Item implements INetGUIItem { return ClientProxy.itemFont;//TODO non-core-IE solution? } + @Nonnull @Override - public String getUnlocalizedName(ItemStack stack) { - return this.getUnlocalizedName() + "." + types[stack.getMetadata()]; + public String getTranslationKey(ItemStack stack) { + return this.getTranslationKey() + "." + types[stack.getMetadata()]; } @Override diff --git a/src/main/java/malte0811/industrialwires/util/Beziers.java b/src/main/java/malte0811/industrialwires/util/Beziers.java index 9181d97..1555b3d 100644 --- a/src/main/java/malte0811/industrialwires/util/Beziers.java +++ b/src/main/java/malte0811/industrialwires/util/Beziers.java @@ -31,7 +31,7 @@ public final class Beziers { int n = controls.length - 1; for (int i = 0; i <= n; i++) { double coeff = binomialCoeff(n, i) * Math.pow(t, i) * Math.pow(1 - t, n - i); - ret = ret.addVector(coeff * controls[i].x, coeff * controls[i].y, coeff * controls[i].z); + ret = ret.add(coeff * controls[i].x, coeff * controls[i].y, coeff * controls[i].z); } return ret; } diff --git a/src/main/java/malte0811/industrialwires/util/LocalSidedWorld.java b/src/main/java/malte0811/industrialwires/util/LocalSidedWorld.java index 5dea338..426b798 100644 --- a/src/main/java/malte0811/industrialwires/util/LocalSidedWorld.java +++ b/src/main/java/malte0811/industrialwires/util/LocalSidedWorld.java @@ -88,7 +88,7 @@ public class LocalSidedWorld { public Vec3d getRealPos(Vec3d relative) { return MiscUtils.offset(new Vec3d(origin.getX()+.5, origin.getY()+.5, origin.getZ()+.5), facing, mirror, - relative.addVector(.5, .5, .5)); + relative.add(.5, .5, .5)); } public Vec3d getRealDirection(Vec3d dir) { @@ -100,14 +100,14 @@ public class LocalSidedWorld { return f; } //+6 because getHorizontal uses abs(input%3). No idea why. - return EnumFacing.getHorizontal(f.getHorizontalIndex()-facing.getHorizontalIndex()+6); + return EnumFacing.byHorizontalIndex(f.getHorizontalIndex() - facing.getHorizontalIndex() + 6); } public EnumFacing transformedToReal(@Nullable EnumFacing f) { if (f==null||f.getAxis()== EnumFacing.Axis.Y) { return f; } - return EnumFacing.getHorizontal(f.getHorizontalIndex()+facing.getHorizontalIndex()+2); + return EnumFacing.byHorizontalIndex(f.getHorizontalIndex() + facing.getHorizontalIndex() + 2); } //Getters+Setters diff --git a/src/main/java/malte0811/industrialwires/util/MiscUtils.java b/src/main/java/malte0811/industrialwires/util/MiscUtils.java index bdff6a3..9d097db 100644 --- a/src/main/java/malte0811/industrialwires/util/MiscUtils.java +++ b/src/main/java/malte0811/industrialwires/util/MiscUtils.java @@ -88,14 +88,14 @@ public final class MiscUtils { if (mirror) { right *= -1; } - return offset(offset(p, f, forward), f.rotateY(), right).addVector(0, up, 0); + return offset(offset(p, f, forward), f.rotateY(), right).add(0, up, 0); } public static Vec3d offset(Vec3d in, EnumFacing f, double amount) { if (amount==0) { return in; } - return in.addVector(f.getFrontOffsetX()*amount, f.getFrontOffsetY()*amount, f.getFrontOffsetZ()*amount); + return in.add(f.getXOffset() * amount, f.getYOffset() * amount, f.getZOffset() * amount); } /** diff --git a/src/main/resources/assets/industrialwires/blockstates/control_panel.json b/src/main/resources/assets/industrialwires/blockstates/control_panel.json index 84ac7a6..dfbce7d 100644 --- a/src/main/resources/assets/industrialwires/blockstates/control_panel.json +++ b/src/main/resources/assets/industrialwires/blockstates/control_panel.json @@ -53,7 +53,13 @@ }, "type": { "rs_wire": { - "model": "immersiveengineering:smartmodel/conn_rs_panel_conn" + "model": "immersiveengineering:smartmodel/connector", + "custom": { + "base": "industrialwires:block/rs_panel_conn.obj", + "layers": [ + "SOLID" + ] + } }, "top": { "model": "industrialwires:smartmodel/panel" diff --git a/src/main/resources/assets/industrialwires/blockstates/hv_multiblock.json b/src/main/resources/assets/industrialwires/blockstates/hv_multiblock.json index 4025105..caf4d3d 100644 --- a/src/main/resources/assets/industrialwires/blockstates/hv_multiblock.json +++ b/src/main/resources/assets/industrialwires/blockstates/hv_multiblock.json @@ -77,7 +77,11 @@ "model": "builtin/generated" }, "connector": { - "model": "immersiveengineering:smartmodel/conn_empty" + "model": "immersiveengineering:smartmodel/connector", + "custom": { + "base": "builtin/generated", + "layers": [] + } } }, "boolean0": diff --git a/src/main/resources/assets/industrialwires/blockstates/ic2_connector.json b/src/main/resources/assets/industrialwires/blockstates/ic2_connector.json index 2756c72..a40256b 100644 --- a/src/main/resources/assets/industrialwires/blockstates/ic2_connector.json +++ b/src/main/resources/assets/industrialwires/blockstates/ic2_connector.json @@ -3,7 +3,6 @@ "defaults": { "transform": "forge:default-block", "textures": { - }, "custom": { "flip-v": true @@ -17,13 +16,95 @@ "#immersiveengineering:blocks/connector_connector_lv": "industrialwires:blocks/ic2_conn_tin" }, "transform": { - "scale": [ 0.5, 0.5, 0.5 ], - "firstperson_righthand": { "translation": [ 0, 0.25, 0.125 ]}, - "firstperson_lefthand": { "translation": [ 0, 0.25, 0.125 ]}, - "thirdperson_righthand": { "translation": [ -0.0625, 0.125, 0.1875 ], "rotation": [{ "x": 70 }, { "y": 70 }]}, - "thirdperson_lefthand": { "translation": [ -0.0625, 0.125, 0.1875 ], "rotation": [{ "x": 70 }, { "y": 70 }]}, - "fixed": {"scale": [ 2,2,2 ], "translation": [ 0, 0, 0 ], "rotation": [{ "y": -90 }]}, - "gui": { "translation": [ 0, 0.125, 0 ], "rotation": [{ "x": 30 },{ "y": 135 },{ "z": 0 }], "scale": [ 1.5, 1.5, 1.5 ] } + "scale": [ + 0.5, + 0.5, + 0.5 + ], + "firstperson_righthand": { + "translation": [ + 0, + 0.25, + 0.125 + ] + }, + "firstperson_lefthand": { + "translation": [ + 0, + 0.25, + 0.125 + ] + }, + "thirdperson_righthand": { + "translation": [ + -0.0625, + 0.125, + 0.1875 + ], + "rotation": [ + { + "x": 70 + }, + { + "y": 70 + } + ] + }, + "thirdperson_lefthand": { + "translation": [ + -0.0625, + 0.125, + 0.1875 + ], + "rotation": [ + { + "x": 70 + }, + { + "y": 70 + } + ] + }, + "fixed": { + "scale": [ + 2, + 2, + 2 + ], + "translation": [ + 0, + 0, + 0 + ], + "rotation": [ + { + "y": -90 + } + ] + }, + "gui": { + "translation": [ + 0, + 0.125, + 0 + ], + "rotation": [ + { + "x": 30 + }, + { + "y": 135 + }, + { + "z": 0 + } + ], + "scale": [ + 1.5, + 1.5, + 1.5 + ] + } } } ], @@ -34,13 +115,95 @@ "#immersiveengineering:blocks/connector_connector_lv": "industrialwires:blocks/ic2_relay_tin" }, "transform": { - "scale": [ 0.5, 0.5, 0.5 ], - "firstperson_righthand": { "translation": [ 0, 0.25, 0.125 ]}, - "firstperson_lefthand": { "translation": [ 0, 0.25, 0.125 ]}, - "thirdperson_righthand": { "translation": [ -0.0625, 0.125, 0.1875 ], "rotation": [{ "x": 70 }, { "y": 70 }]}, - "thirdperson_lefthand": { "translation": [ -0.0625, 0.125, 0.1875 ], "rotation": [{ "x": 70 }, { "y": 70 }]}, - "fixed": {"scale": [ 2,2,2 ], "translation": [ 0, 0, 0 ], "rotation": [{ "y": -90 }]}, - "gui": { "translation": [ 0, 0.125, 0 ], "rotation": [{ "x": 30 },{ "y": 135 },{ "z": 0 }], "scale": [ 1.5, 1.5, 1.5 ] } + "scale": [ + 0.5, + 0.5, + 0.5 + ], + "firstperson_righthand": { + "translation": [ + 0, + 0.25, + 0.125 + ] + }, + "firstperson_lefthand": { + "translation": [ + 0, + 0.25, + 0.125 + ] + }, + "thirdperson_righthand": { + "translation": [ + -0.0625, + 0.125, + 0.1875 + ], + "rotation": [ + { + "x": 70 + }, + { + "y": 70 + } + ] + }, + "thirdperson_lefthand": { + "translation": [ + -0.0625, + 0.125, + 0.1875 + ], + "rotation": [ + { + "x": 70 + }, + { + "y": 70 + } + ] + }, + "fixed": { + "scale": [ + 2, + 2, + 2 + ], + "translation": [ + 0, + 0, + 0 + ], + "rotation": [ + { + "y": -90 + } + ] + }, + "gui": { + "translation": [ + 0, + 0.125, + 0 + ], + "rotation": [ + { + "x": 30 + }, + { + "y": 135 + }, + { + "z": 0 + } + ], + "scale": [ + 1.5, + 1.5, + 1.5 + ] + } } } ], @@ -51,13 +214,95 @@ "#immersiveengineering:blocks/connector_connector_lv": "industrialwires:blocks/ic2_conn_copper" }, "transform": { - "scale": [ 0.5, 0.5, 0.5 ], - "firstperson_righthand": { "translation": [ 0, 0.25, 0.125 ]}, - "firstperson_lefthand": { "translation": [ 0, 0.25, 0.125 ]}, - "thirdperson_righthand": { "translation": [ -0.0625, 0.125, 0.1875 ], "rotation": [{ "x": 70 }, { "y": 70 }]}, - "thirdperson_lefthand": { "translation": [ -0.0625, 0.125, 0.1875 ], "rotation": [{ "x": 70 }, { "y": 70 }]}, - "fixed": {"scale": [ 2,2,2 ], "translation": [ 0, 0, 0 ], "rotation": [{ "y": -90 }]}, - "gui": { "translation": [ 0, 0.125, 0 ], "rotation": [{ "x": 30 },{ "y": 135 },{ "z": 0 }], "scale": [ 1.5, 1.5, 1.5 ] } + "scale": [ + 0.5, + 0.5, + 0.5 + ], + "firstperson_righthand": { + "translation": [ + 0, + 0.25, + 0.125 + ] + }, + "firstperson_lefthand": { + "translation": [ + 0, + 0.25, + 0.125 + ] + }, + "thirdperson_righthand": { + "translation": [ + -0.0625, + 0.125, + 0.1875 + ], + "rotation": [ + { + "x": 70 + }, + { + "y": 70 + } + ] + }, + "thirdperson_lefthand": { + "translation": [ + -0.0625, + 0.125, + 0.1875 + ], + "rotation": [ + { + "x": 70 + }, + { + "y": 70 + } + ] + }, + "fixed": { + "scale": [ + 2, + 2, + 2 + ], + "translation": [ + 0, + 0, + 0 + ], + "rotation": [ + { + "y": -90 + } + ] + }, + "gui": { + "translation": [ + 0, + 0.125, + 0 + ], + "rotation": [ + { + "x": 30 + }, + { + "y": 135 + }, + { + "z": 0 + } + ], + "scale": [ + 1.5, + 1.5, + 1.5 + ] + } } } ], @@ -68,13 +313,95 @@ "#immersiveengineering:blocks/connector_connector_lv": "industrialwires:blocks/ic2_relay_copper" }, "transform": { - "scale": [ 0.5, 0.5, 0.5 ], - "firstperson_righthand": { "translation": [ 0, 0.25, 0.125 ]}, - "firstperson_lefthand": { "translation": [ 0, 0.25, 0.125 ]}, - "thirdperson_righthand": { "translation": [ -0.0625, 0.125, 0.1875 ], "rotation": [{ "x": 70 }, { "y": 70 }]}, - "thirdperson_lefthand": { "translation": [ -0.0625, 0.125, 0.1875 ], "rotation": [{ "x": 70 }, { "y": 70 }]}, - "fixed": {"scale": [ 2,2,2 ], "translation": [ 0, 0, 0 ], "rotation": [{ "y": -90 }]}, - "gui": { "translation": [ 0, 0.125, 0 ], "rotation": [{ "x": 30 },{ "y": 135 },{ "z": 0 }], "scale": [ 1.5, 1.5, 1.5 ] } + "scale": [ + 0.5, + 0.5, + 0.5 + ], + "firstperson_righthand": { + "translation": [ + 0, + 0.25, + 0.125 + ] + }, + "firstperson_lefthand": { + "translation": [ + 0, + 0.25, + 0.125 + ] + }, + "thirdperson_righthand": { + "translation": [ + -0.0625, + 0.125, + 0.1875 + ], + "rotation": [ + { + "x": 70 + }, + { + "y": 70 + } + ] + }, + "thirdperson_lefthand": { + "translation": [ + -0.0625, + 0.125, + 0.1875 + ], + "rotation": [ + { + "x": 70 + }, + { + "y": 70 + } + ] + }, + "fixed": { + "scale": [ + 2, + 2, + 2 + ], + "translation": [ + 0, + 0, + 0 + ], + "rotation": [ + { + "y": -90 + } + ] + }, + "gui": { + "translation": [ + 0, + 0.125, + 0 + ], + "rotation": [ + { + "x": 30 + }, + { + "y": 135 + }, + { + "z": 0 + } + ], + "scale": [ + 1.5, + 1.5, + 1.5 + ] + } } } ], @@ -85,13 +412,95 @@ "#immersiveengineering:blocks/connector_connector_mv": "industrialwires:blocks/ic2_conn_gold" }, "transform": { - "scale": [ 0.5, 0.5, 0.5 ], - "firstperson_righthand": { "translation": [ 0, 0.25, 0.125 ]}, - "firstperson_lefthand": { "translation": [ 0, 0.25, 0.125 ]}, - "thirdperson_righthand": { "translation": [ -0.0625, 0.125, 0.1875 ], "rotation": [{ "x": 70 }, { "y": 70 }]}, - "thirdperson_lefthand": { "translation": [ -0.0625, 0.125, 0.1875 ], "rotation": [{ "x": 70 }, { "y": 70 }]}, - "fixed": {"scale": [ 2,2,2 ], "translation": [ 0, 0, 0 ], "rotation": [{ "y": -90 }]}, - "gui": { "translation": [ 0, 0.125, 0 ], "rotation": [{ "x": 30 },{ "y": 135 },{ "z": 0 }], "scale": [ 1.5, 1.5, 1.5 ] } + "scale": [ + 0.5, + 0.5, + 0.5 + ], + "firstperson_righthand": { + "translation": [ + 0, + 0.25, + 0.125 + ] + }, + "firstperson_lefthand": { + "translation": [ + 0, + 0.25, + 0.125 + ] + }, + "thirdperson_righthand": { + "translation": [ + -0.0625, + 0.125, + 0.1875 + ], + "rotation": [ + { + "x": 70 + }, + { + "y": 70 + } + ] + }, + "thirdperson_lefthand": { + "translation": [ + -0.0625, + 0.125, + 0.1875 + ], + "rotation": [ + { + "x": 70 + }, + { + "y": 70 + } + ] + }, + "fixed": { + "scale": [ + 2, + 2, + 2 + ], + "translation": [ + 0, + 0, + 0 + ], + "rotation": [ + { + "y": -90 + } + ] + }, + "gui": { + "translation": [ + 0, + 0.125, + 0 + ], + "rotation": [ + { + "x": 30 + }, + { + "y": 135 + }, + { + "z": 0 + } + ], + "scale": [ + 1.5, + 1.5, + 1.5 + ] + } } } ], @@ -102,13 +511,95 @@ "#immersiveengineering:blocks/connector_connector_mv": "industrialwires:blocks/ic2_relay_gold" }, "transform": { - "scale": [ 0.5, 0.5, 0.5 ], - "firstperson_righthand": { "translation": [ 0, 0.25, 0.125 ]}, - "firstperson_lefthand": { "translation": [ 0, 0.25, 0.125 ]}, - "thirdperson_righthand": { "translation": [ -0.0625, 0.125, 0.1875 ], "rotation": [{ "x": 70 }, { "y": 70 }]}, - "thirdperson_lefthand": { "translation": [ -0.0625, 0.125, 0.1875 ], "rotation": [{ "x": 70 }, { "y": 70 }]}, - "fixed": {"scale": [ 2,2,2 ], "translation": [ 0, 0, 0 ], "rotation": [{ "y": -90 }]}, - "gui": { "translation": [ 0, 0.125, 0 ], "rotation": [{ "x": 30 },{ "y": 135 },{ "z": 0 }], "scale": [ 1.5, 1.5, 1.5 ] } + "scale": [ + 0.5, + 0.5, + 0.5 + ], + "firstperson_righthand": { + "translation": [ + 0, + 0.25, + 0.125 + ] + }, + "firstperson_lefthand": { + "translation": [ + 0, + 0.25, + 0.125 + ] + }, + "thirdperson_righthand": { + "translation": [ + -0.0625, + 0.125, + 0.1875 + ], + "rotation": [ + { + "x": 70 + }, + { + "y": 70 + } + ] + }, + "thirdperson_lefthand": { + "translation": [ + -0.0625, + 0.125, + 0.1875 + ], + "rotation": [ + { + "x": 70 + }, + { + "y": 70 + } + ] + }, + "fixed": { + "scale": [ + 2, + 2, + 2 + ], + "translation": [ + 0, + 0, + 0 + ], + "rotation": [ + { + "y": -90 + } + ] + }, + "gui": { + "translation": [ + 0, + 0.125, + 0 + ], + "rotation": [ + { + "x": 30 + }, + { + "y": 135 + }, + { + "z": 0 + } + ], + "scale": [ + 1.5, + 1.5, + 1.5 + ] + } } } ], @@ -119,13 +610,95 @@ "#immersiveengineering:blocks/connector_connector_hv": "industrialwires:blocks/ic2_conn_hv" }, "transform": { - "scale": [ 0.5, 0.5, 0.5 ], - "firstperson_righthand": { "translation": [ 0, 0.25, 0.125 ]}, - "firstperson_lefthand": { "translation": [ 0, 0.25, 0.125 ]}, - "thirdperson_righthand": { "translation": [ -0.0625, 0.125, 0.1875 ], "rotation": [{ "x": 70 }, { "y": 70 }]}, - "thirdperson_lefthand": { "translation": [ -0.0625, 0.125, 0.1875 ], "rotation": [{ "x": 70 }, { "y": 70 }]}, - "fixed": {"scale": [ 2,2,2 ], "translation": [ 0, 0, 0 ], "rotation": [{ "y": -90 }]}, - "gui": { "translation": [ 0, 0.125, 0 ], "rotation": [{ "x": 30 },{ "y": 135 },{ "z": 0 }], "scale": [ 1.5, 1.5, 1.5 ] } + "scale": [ + 0.5, + 0.5, + 0.5 + ], + "firstperson_righthand": { + "translation": [ + 0, + 0.25, + 0.125 + ] + }, + "firstperson_lefthand": { + "translation": [ + 0, + 0.25, + 0.125 + ] + }, + "thirdperson_righthand": { + "translation": [ + -0.0625, + 0.125, + 0.1875 + ], + "rotation": [ + { + "x": 70 + }, + { + "y": 70 + } + ] + }, + "thirdperson_lefthand": { + "translation": [ + -0.0625, + 0.125, + 0.1875 + ], + "rotation": [ + { + "x": 70 + }, + { + "y": 70 + } + ] + }, + "fixed": { + "scale": [ + 2, + 2, + 2 + ], + "translation": [ + 0, + 0, + 0 + ], + "rotation": [ + { + "y": -90 + } + ] + }, + "gui": { + "translation": [ + 0, + 0.125, + 0 + ], + "rotation": [ + { + "x": 30 + }, + { + "y": 135 + }, + { + "z": 0 + } + ], + "scale": [ + 1.5, + 1.5, + 1.5 + ] + } } } ], @@ -133,13 +706,95 @@ { "model": "immersiveengineering:connector/relay_hv.obj", "transform": { - "scale": [ 0.5, 0.5, 0.5 ], - "firstperson_righthand": { "translation": [ 0, 0.25, 0.125 ]}, - "firstperson_lefthand": { "translation": [ 0, 0.25, 0.125 ]}, - "thirdperson_righthand": { "translation": [ -0.0625, 0.125, 0.1875 ], "rotation": [{ "x": 70 }, { "y": 70 }]}, - "thirdperson_lefthand": { "translation": [ -0.0625, 0.125, 0.1875 ], "rotation": [{ "x": 70 }, { "y": 70 }]}, - "fixed": {"scale": [ 2,2,2 ], "translation": [ 0, 0, 0 ], "rotation": [{ "y": -90 }]}, - "gui": { "translation": [ 0, 0.125, 0 ], "rotation": [{ "x": 30 },{ "y": 135 },{ "z": 0 }], "scale": [ 1.5, 1.5, 1.5 ] } + "scale": [ + 0.5, + 0.5, + 0.5 + ], + "firstperson_righthand": { + "translation": [ + 0, + 0.25, + 0.125 + ] + }, + "firstperson_lefthand": { + "translation": [ + 0, + 0.25, + 0.125 + ] + }, + "thirdperson_righthand": { + "translation": [ + -0.0625, + 0.125, + 0.1875 + ], + "rotation": [ + { + "x": 70 + }, + { + "y": 70 + } + ] + }, + "thirdperson_lefthand": { + "translation": [ + -0.0625, + 0.125, + 0.1875 + ], + "rotation": [ + { + "x": 70 + }, + { + "y": 70 + } + ] + }, + "fixed": { + "scale": [ + 2, + 2, + 2 + ], + "translation": [ + 0, + 0, + 0 + ], + "rotation": [ + { + "y": -90 + } + ] + }, + "gui": { + "translation": [ + 0, + 0.125, + 0 + ], + "rotation": [ + { + "x": 30 + }, + { + "y": 135 + }, + { + "z": 0 + } + ], + "scale": [ + 1.5, + 1.5, + 1.5 + ] + } } } ], @@ -150,13 +805,95 @@ "#immersiveengineering:blocks/connector_connector_hv": "industrialwires:blocks/ic2_conn_glass" }, "transform": { - "scale": [ 0.5, 0.5, 0.5 ], - "firstperson_righthand": { "translation": [ 0, 0.25, 0.125 ]}, - "firstperson_lefthand": { "translation": [ 0, 0.25, 0.125 ]}, - "thirdperson_righthand": { "translation": [ -0.0625, 0.125, 0.1875 ], "rotation": [{ "x": 70 }, { "y": 70 }]}, - "thirdperson_lefthand": { "translation": [ -0.0625, 0.125, 0.1875 ], "rotation": [{ "x": 70 }, { "y": 70 }]}, - "fixed": {"scale": [ 2,2,2 ], "translation": [ 0, 0, 0 ], "rotation": [{ "y": -90 }]}, - "gui": { "translation": [ 0, 0.125, 0 ], "rotation": [{ "x": 30 },{ "y": 135 },{ "z": 0 }], "scale": [ 1.5, 1.5, 1.5 ] } + "scale": [ + 0.5, + 0.5, + 0.5 + ], + "firstperson_righthand": { + "translation": [ + 0, + 0.25, + 0.125 + ] + }, + "firstperson_lefthand": { + "translation": [ + 0, + 0.25, + 0.125 + ] + }, + "thirdperson_righthand": { + "translation": [ + -0.0625, + 0.125, + 0.1875 + ], + "rotation": [ + { + "x": 70 + }, + { + "y": 70 + } + ] + }, + "thirdperson_lefthand": { + "translation": [ + -0.0625, + 0.125, + 0.1875 + ], + "rotation": [ + { + "x": 70 + }, + { + "y": 70 + } + ] + }, + "fixed": { + "scale": [ + 2, + 2, + 2 + ], + "translation": [ + 0, + 0, + 0 + ], + "rotation": [ + { + "y": -90 + } + ] + }, + "gui": { + "translation": [ + 0, + 0.125, + 0 + ], + "rotation": [ + { + "x": 30 + }, + { + "y": 135 + }, + { + "z": 0 + } + ], + "scale": [ + 1.5, + 1.5, + 1.5 + ] + } } } ], @@ -167,51 +904,219 @@ "#immersiveengineering:blocks/connector_relay_hv": "industrialwires:blocks/ic2_relay_glass" }, "transform": { - "scale": [ 0.5, 0.5, 0.5 ], - "firstperson_righthand": { "translation": [ 0, 0.25, 0.125 ]}, - "firstperson_lefthand": { "translation": [ 0, 0.25, 0.125 ]}, - "thirdperson_righthand": { "translation": [ -0.0625, 0.125, 0.1875 ], "rotation": [{ "x": 70 }, { "y": 70 }]}, - "thirdperson_lefthand": { "translation": [ -0.0625, 0.125, 0.1875 ], "rotation": [{ "x": 70 }, { "y": 70 }]}, - "fixed": {"scale": [ 2,2,2 ], "translation": [ 0, 0, 0 ], "rotation": [{ "y": -90 }]}, - "gui": { "translation": [ 0, 0.125, 0 ], "rotation": [{ "x": 30 },{ "y": 135 },{ "z": 0 }], "scale": [ 1.5, 1.5, 1.5 ] } + "scale": [ + 0.5, + 0.5, + 0.5 + ], + "firstperson_righthand": { + "translation": [ + 0, + 0.25, + 0.125 + ] + }, + "firstperson_lefthand": { + "translation": [ + 0, + 0.25, + 0.125 + ] + }, + "thirdperson_righthand": { + "translation": [ + -0.0625, + 0.125, + 0.1875 + ], + "rotation": [ + { + "x": 70 + }, + { + "y": 70 + } + ] + }, + "thirdperson_lefthand": { + "translation": [ + -0.0625, + 0.125, + 0.1875 + ], + "rotation": [ + { + "x": 70 + }, + { + "y": 70 + } + ] + }, + "fixed": { + "scale": [ + 2, + 2, + 2 + ], + "translation": [ + 0, + 0, + 0 + ], + "rotation": [ + { + "y": -90 + } + ] + }, + "gui": { + "translation": [ + 0, + 0.125, + 0 + ], + "rotation": [ + { + "x": 30 + }, + { + "y": 135 + }, + { + "z": 0 + } + ], + "scale": [ + 1.5, + 1.5, + 1.5 + ] + } } } ], "type": { "tin_conn": { - "model": "immersiveengineering:smartmodel/conn_ic2_conn_tin" + "model": "immersiveengineering:smartmodel/connector", + "custom": { + "base": "immersiveengineering:block/connector/connector_lv.obj", + "layers": [ + "SOLID" + ] + }, + "textures": { + "#immersiveengineering:blocks/connector_connector_lv": "industrialwires:blocks/ic2_conn_tin" + } }, "tin_relay": { - "model": "immersiveengineering:smartmodel/conn_ic2_relay_tin" + "model": "immersiveengineering:smartmodel/connector", + "custom": { + "base": "immersiveengineering:block/connector/connector_lv.obj", + "layers": [ + "SOLID" + ] + }, + "textures": { + "#immersiveengineering:blocks/connector_connector_lv": "industrialwires:blocks/ic2_relay_tin" + } }, "copper_conn": { - "model": "immersiveengineering:smartmodel/conn_ic2_conn_copper" + "model": "immersiveengineering:smartmodel/connector", + "custom": { + "base": "immersiveengineering:block/connector/connector_lv.obj", + "layers": [ + "SOLID" + ] + }, + "textures": { + "#immersiveengineering:blocks/connector_connector_lv": "industrialwires:blocks/ic2_conn_copper" + } }, "copper_relay": { - "model": "immersiveengineering:smartmodel/conn_ic2_relay_copper" + "model": "immersiveengineering:smartmodel/connector", + "custom": { + "base": "immersiveengineering:block/connector/connector_lv.obj", + "layers": [ + "SOLID" + ] + }, + "textures": { + "#immersiveengineering:blocks/connector_connector_lv": "industrialwires:blocks/ic2_relay_copper" + } }, "gold_conn": { - "model": "immersiveengineering:smartmodel/conn_ic2_conn_gold" + "model": "immersiveengineering:smartmodel/connector", + "custom": { + "base": "immersiveengineering:block/connector/connector_mv.obj", + "layers": [ + "SOLID" + ] + }, + "textures": { + "#immersiveengineering:blocks/connector_connector_mv": "industrialwires:blocks/ic2_conn_gold" + } }, "gold_relay": { - "model": "immersiveengineering:smartmodel/conn_ic2_relay_gold" + "model": "immersiveengineering:smartmodel/connector", + "custom": { + "base": "immersiveengineering:block/connector/connector_mv.obj", + "layers": [ + "SOLID" + ] + }, + "textures": { + "#immersiveengineering:blocks/connector_connector_mv": "industrialwires:blocks/ic2_relay_gold" + } }, "hv_conn": { - "model": "immersiveengineering:smartmodel/conn_ic2_conn_hv" + "model": "immersiveengineering:smartmodel/connector", + "custom": { + "base": "immersiveengineering:block/connector/connector_hv.obj", + "layers": [ + "SOLID" + ] + }, + "textures": { + "#immersiveengineering:blocks/connector_connector_hv": "industrialwires:blocks/ic2_conn_hv" + } }, "hv_relay": { - "model": "immersiveengineering:smartmodel/conn_ic2_relay_hv" + "model": "immersiveengineering:smartmodel/connector", + "custom": { + "base": "immersiveengineering:block/connector/relay_hv.obj", + "layers": [ + "TRANSLUCENT" + ] + } }, "glass_conn": { - "model": "immersiveengineering:smartmodel/conn_ic2_conn_glass" + "model": "immersiveengineering:smartmodel/connector", + "custom": { + "base": "immersiveengineering:block/connector/connector_hv.obj", + "layers": [ + "SOLID" + ] + }, + "textures": { + "#immersiveengineering:blocks/connector_connector_hv": "industrialwires:blocks/ic2_conn_glass" + } }, "glass_relay": { - "model": "immersiveengineering:smartmodel/conn_ic2_relay_glass" + "model": "immersiveengineering:smartmodel/connector", + "custom": { + "base": "immersiveengineering:block/connector/relay_hv.obj", + "layers": [ + "TRANSLUCENT" + ] + }, + "textures": { + "#immersiveengineering:blocks/connector_relay_hv": "industrialwires:blocks/ic2_relay_glass" + } } }, "facing": { "down": { - }, "up": { "transform": {