diff --git a/src/main/java/com/gregtechceu/gtceu/api/data/chemical/material/Material.java b/src/main/java/com/gregtechceu/gtceu/api/data/chemical/material/Material.java index 7c03e2c974..f32dc54d72 100644 --- a/src/main/java/com/gregtechceu/gtceu/api/data/chemical/material/Material.java +++ b/src/main/java/com/gregtechceu/gtceu/api/data/chemical/material/Material.java @@ -526,12 +526,16 @@ public void verifyMaterial() { * @since GTCEu 2.0.0 */ @RemapPrefixForJS("kjs$") + @Accessors(fluent = true) public static class Builder extends BuilderBase { private final MaterialInfo materialInfo; private final MaterialProperties properties; private final MaterialFlags flags; + @Setter + private String formula = null; + /* * The temporary list of components for this Material. */ @@ -1237,6 +1241,9 @@ public Material buildAndRegister() { } var mat = new Material(materialInfo, properties, flags); + if (formula != null) { + mat.setFormula(formula); + } materialInfo.verifyInfo(properties, averageRGB); mat.registerMaterial(); return mat;