Modern Industrialization

Modern Industrialization

4M Downloads

[19.2] .ore() is broken when registering new material

Sipepper opened this issue ยท 2 comments

commented

Hi, when I try to add a custom ore via material system, the following error appears

MIMaterialEvents.addMaterials(event => {
  event.createMaterial("Vanadium", "vanadium", 0x6a6a67,
          builder => {
          builder            
          .addParts("ingot","dust","plate")
            .ore({ 
              "generate": true, 
              "ore_set": "iron", 
              "vein_size": 8, 
              "veins_per_chunk": 8, 
              "max_y": 64, 
              })
              .defaultRecipes()
      });
});

image

startup (1).log

commented

Ran into a similar issue. This is caused by not including a .rawMetal in the builder.

commented

image

This happens because the material includes an ingot but no raw ore, so the ore does not know what to drop. We should probably add a way to specify the dropped part.