HomeJavaModsCustom Virtual Vein
Custom Virtual Vein
ModsJava

Custom Virtual Vein

by Non_coffee · on Modrinth

Set connected virtual ore veins of different sizes for world blocks through configuration files and mine them using MBD2's custom machinery.

⬇ Download on Modrinth

VeinsConfiguring Virtual Veins of Varying Sizes in World Chunks and Connecting Them, Using Multiblocked2 Custom Machinery for Mining. Vein Characteristics Need to be Added to the Machine.

Also set vein conditions within recipe conditions.

Recipe input can be arbitrary (input cannot be set to a vein), but the output must be set to a vein.

After saving the above settings, you can use primary, intermediate, and advanced vein detectors as well as vein displays to view veins in the world.

Regarding vein settings, the configuration file path is: config/customvirtualvein/veins.json.

Complete Configuration File:

{
  "_comment": "Vein Configuration File - Custom Virtual Vein Configuration",
  "_doc_name": "name: Unique vein identifier (in English)",
  "_doc_displayName": "displayName: Vein display name",
  "_doc_minCapacity": "minCapacity: Minimum capacity",
  "_doc_maxCapacity": "maxCapacity: Maximum capacity",
  "_doc_outputs": "outputs: Output list",
  "_doc_output_type": "output.type: item/block/fluid",
  "_doc_output_id": "output.id: Resource ID (e.g., minecraft:raw_iron)",
  "_doc_output_weight": "output.weight: Weight",
  "_doc_output_amount": "output.minAmount/maxAmount: Quantity range",
  "veins": [
    {
      "name": "iron_vein",
      "displayName": "Iron Vein",
      "minCapacity": 2000,
      "maxCapacity": 8000,
      "outputs": [
        {
          "type": "item",
          "id": "minecraft:raw_iron",
          "weight": 70,
          "minAmount": 1,
          "maxAmount": 3
        },
        {
          "type": "item",
          "id": "minecraft:iron_nugget",
          "weight": 20,
          "minAmount": 1,
          "maxAmount": 5
        },
        {
          "type": "item",
          "id": "minecraft:raw_copper",
          "weight": 10,
          "minAmount": 1,
          "maxAmount": 2
        }
      ]
    },
    {
      "name": "oil_vein",
      "displayName": "Oil Vein (Fluid Example)",
      "minCapacity": 10000,
      "maxCapacity": 50000,
      "outputs": [
        {
          "type": "fluid",
          "id": "minecraft:lava",
          "weight": 100,
          "minAmount": 100,
          "maxAmount": 500
        },
        {
          "type": "fluid",
          "id": "minecraft:water",
          "weight": 10,
          "minAmount": 100,
          "maxAmount": 500
        }
      ]
    }
  ]
}

After configuring the file, place the machine configured for vein mining in the chunk corresponding to the vein and power it on.

Quick facts

Install steps are the general flow for this file type — How to install Minecraft Java mods & modpacks walks through it step by step.

Verified by MCModsHub

These come from our own check of the pack file, not from the source page.

Explore more