promotional bannermobile promotional banner
premium banner
A fork of C:C&A for improving its wire connectors

Description

A fork of Create: Crafts & Additions for improving it's wire connectors, giving them more tiers with greater distance and power, with mod compatibilities

NOTICE!

Mod does not come with recipes in the base mod! Add recipes yourself using datapacks or scripting, OR use with C:C&A/Gregtech Modern

Compats:

Create: Crafts & Additions

  • Electrum Connector and Spool
  • Recipes using rods, their wires and spools

Gregtech Modern

  • Autogenerated wires and spools from gt materials
  • Generated spools per tier with recipes

Planned:

  • Kubejs plugin for spool tiers and connector registry

The mod is also fairly easy to make custom connectors with via a Java mod!

build.gradle

repositories { // Place cursemaven repos within repositories block
   maven { url "https://cursemaven.com/"; content { includeGroup "curse.maven" } }
   maven { url = "https://minecraft.curseforge.com/api/maven/" }
}

dependencies { // Place impl within dependencies block
    implementation fg.deobf("curse.maven:create-powerlines-1076056:6274258")
}

CustomPowerlines.java

import net.deepacat.createpowerlines.blocks.connector.ConnectorStyle;
import net.deepacat.createpowerlines.blocks.connector.ConnectorType;
import net.deepacat.createpowerlines.blocks.connector.ConnectorTypes;
import net.deepacat.createpowerlines.item.WireMaterial;
import net.deepacat.createpowerlines.item.WireMaterials;

import java.util.ArrayList;
import java.util.List;

import static net.deepacat.createpowerlines.blocks.connector.ConnectorTypes.registerOne;
import static net.deepacat.createpowerlines.blocks.connector.ConnectorTypes.registerTier;

public class CustomPowerlines {
    public static void init() {
        ArrayList<WireMaterial> allTier = new ArrayList<>(); // All
        ArrayList<WireMaterial> tierULV = new ArrayList<>(); // 0
        ArrayList<WireMaterial> tierLV = new ArrayList<>();  // 1
        ArrayList<WireMaterial> tierMV = new ArrayList<>();  // 2
        ArrayList<WireMaterial> tierHV = new ArrayList<>();  // 3
        ArrayList<WireMaterial> tierEV = new ArrayList<>();  // 4

        WireMaterial silver = WireMaterials.getOrRegister("Silver", 0xCECECE);
        allTier.add(silver);

        public static ConnectorType[] registerTier(String tier, long baseEnergy, double[] energyMults, int color, List<WireMaterial> wireMaterials) {
        registerTier("Silver", 2048, 1, 0xCECECE, allTier);

        public static ConnectorType registerOne(String tier, String size, int connections, int wireLength, long baseEnergy, double energyMult,
          List<WireMaterial> wireMaterials, int width, int height, int color, ConnectorStyle style)
        registerOne("testConnector", "Small", 4, 16, 4096, 2, allTier, 3, 4, 0xCECECE, ConnectorStyle.LARGE);
    }
}