#Immersive Engineering Mineral Vein

14 messages · Page 1 of 1 (latest)

true furnace
#

Is there a way to modify / add Immersive Engineering vein types using KubeJS?
I am referring to the virtual veins that can be found by the core sample drill and mined by the excavator.

fading houndBOT
#

Once your ticket has been resolved, please close it with </ticket close:1054771505520717835> command!

true furnace
#

So I did some digging and the recipes responsible for this is in ImmersiveEngineering-1.18.2-8.4.0-161.jar/data/immersiveengineering/recipes/mineral/ and the JSONs look like this:

#
{
    "type": "immersiveengineering:mineral_mix",
    "ores": [
        {
            "chance": 0.4,
            "output": {
                "tag": "forge:ores/lead"
            }
        },
        {
            "chance": 0.4,
            "output": {
                "tag": "forge:dusts/sulfur"
            }
        },
        {
            "chance": 0.2,
            "output": {
                "tag": "forge:ores/silver"
            }
        }
    ],
    "spoils": [
        {
            "chance": 0.2,
            "output": {
                "item": "minecraft:gravel"
            }
        },
        {
            "chance": 0.5,
            "output": {
                "item": "minecraft:cobblestone"
            }
        },
        {
            "chance": 0.3,
            "output": {
                "item": "minecraft:cobbled_deepslate"
            }
        }
    ],
    "dimensions": [
        "minecraft:overworld"
    ],
    "weight": 15,
    "fail_chance": 0.05
}
#

Possible to use event.custom() for this?

true furnace
#

Anyone please? I know this kind of modification is possible with CraftTweaker but what about KubeJS?

spiral umbra
true furnace
#

Managed to get it to work! Here's some example code:

    const sphalerite = {
        "type": "immersiveengineering:mineral_mix",
        "ores": [
            { "chance": 0.4, "output": { "tag": "forge:ores/zinc" } },
            { "chance": 0.2, "output": { "tag": "forge:dusts/sulfur" } },
            { "chance": 0.2, "output": { "tag": "forge:ores/fluorite" } },
            { "chance": 0.2, "output": { "tag": "forge:ores/iron" } }
        ],
        "spoils": [
            { "chance": 0.2, "output": { "item": "minecraft:gravel" } },
            { "chance": 0.5, "output": { "item": "minecraft:cobblestone" } },
            { "chance": 0.3, "output": { "item": "minecraft:cobbled_deepslate" } }
        ],
        "dimensions": ["minecraft:overworld"],
        "weight": 15,
        "fail_chance": 0.05
    };
    event.custom(sphalerite).id('immersiveengineering:mineral/sphalerite');
#

Realistically I can close the ticket now, but there's just one more thing I want to ask.
Is there a way to set localization strings using KubeJS? Currently it's spitting out the translation key in place of the name of the mineral vein.
(I know, I know, it should be done with a resource pack, but is it possible with KubeJS?)

spiral umbra
true furnace
spiral umbra
true furnace