Create: Powerlines
作者:rebot | 分类:模组
价格:0 墨喵币
下载量:0
点赞:0
版本 1.20.1-1.3.0
本资源为搬运资源,原资源地址:
https://modrinth.com/mod/create-powerlines
资源信息
Minecraft 版本: 1.20.1
平台: forge
资源介绍
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:
- Electrum Connector and Spool
- Recipes using rods, their wires and spools
- Autogenerated wires and spools from gt materials
- Generated spools per tier with recipes
Planned:
- Kubejs plugin for spool tiers and connector registry
Java
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);
}
}
下载太慢?试试 墨喵加速站,支持 Modrinth 和外网直链高速下载! 用的人越多,下载的越快!
下载与版本
评论(0)
请 登录 后发表评论。
举报此资源
请登录后举报
暂无评论,抢个沙发吧~