Skip to content

Examples

Kal Chikhou edited this page Nov 24, 2022 · 2 revisions

Materials:

A couple of examples of material files for a Modded Metal, a Vanilla Gem, and an Alloy.

Example 1: Aluminum [Modded Metal]

{
  "id": "aluminum",
  "source": "modded",
  "localizedName": "Aluminum",
  "processedTypes": [
    "ore",
    "storage_block",
    "ingot",
    "nugget",
    "raw",
    "dust",
    "plate",
    "gear",
    "rod",
    "fluid",
    "slurry",
    "crystal",
    "shard",
    "clump",
    "dirty_dust",
    "fragment",
    "gravel",
    "crushed_ore"
  ],
  "properties": {
    "materialType": "metal",
    "harvestLevel": 2
  },
  "colors": {
    "fluidColor": "c5dbed",
    "materialColor": "c5dbed"
  },
  "compat": {
    "create": {
      "crushing": {
        "firstOutputCount": 10,
        "secondOutputCount": 15,
        "secondOutputChance": 0.35
      },
      "splashing": {
        "secondOutput": "minecraft:apple",
        "secondOutputCount": 15,
        "secondOutputChance": 0.35
      }
    },
    "thermal": {
      "pulverizer": {
        "firstOutputCount": 10,
        "firstOutputChance": 0.6,
        "secondOutput": "minecraft:apple",
        "secondOutputCount": 1,
        "secondOutputChance": 0.20
      },
      "induction": {
        "firstOutputCount": 1,
        "firstOutputChance": 0.5,
        "secondOutput": "minecraft:gold_ingot",
        "secondOutputCount": 1,
        "secondOutputChance": 0.15
      }
    }
  }
}

Example 2: Lapis Lazuli [Vanilla Gem]

{
  "id": "lapis",
  "source": "vanilla",
  "localizedName": "Lapis Lazuli",
  "removeDefaultOre": true,
  "processedTypes": [
    "ore",
    "dust",
    "plate",
    "gear",
    "rod"
  ],
  "properties": {
    "materialType": "gem",
    "harvestLevel": 1
  },
  "oreDrop": {
    "drop": "minecraft:lapis_lazuli",
    "min": 4,
    "max": 9
  }
}

Example 3: Brass [Alloy]

{
  "id": "brass",
  "source": "modded",
  "localizedName": "Brass",
  "processedTypes": [
    "storage_block",
    "ingot",
    "nugget",
    "dust",
    "plate",
    "gear",
    "rod",
    "fluid"
  ],
  "properties": {
  "materialType": "alloy",
  "harvestLevel": 2
},
  "colors": {
    "fluidColor": "b5a642",
    "materialColor": "b5a642"
  },
  "compat": {
    "thermal": {
      "induction": {
        "firstInput": "minecraft:iron_ingot",
        "firstInputCount": 3,
        "secondInput": "minecraft:apple",
        "secondInputCount": 5,
        "thirdInput": "minecraft:gold_nugget",
        "thirdInputCount": 2,
        "firstOutputCount": 10
      }
    }
  }
}

Strata:

A couple of examples of strata files for a Modded, and a Vanilla type.

Example 1: Minecraft Sand [Vanilla Type]

{
  "id": "minecraft_sand",
  "baseTexture": "minecraft:block/sand",
  "suffix": "sand",
  "fillerType": "minecraft:sand",
  "localizedName": "Sand",
  "harvestTool": "shovel",
  "hardness": 0.5,
  "resistance": 0.7
}

Example 2: Undergarden Depthrock [Modded Type]

{
  "id": "undergarden_depthrock",
  "baseTexture": "undergarden:block/depthrock",
  "suffix": "depthrock",
  "fillerType": "undergarden:depthrock",
  "localizedName": "Depthrock"
}

Deposits:

A couple of examples of deposit files for a Vanilla, a Sphere, and a Geode.

Example 1: Uranium [Vanilla Deposit]

{
  "type": "emendatusenigmatica:vanilla_deposit",
  "dimension": "minecraft:overworld",
  "biomes": [
  ],
  "registryName": "vanilla_overworld_uranium_ore_deposit",
  "config": {
    "material": "uranium",
    "fillerTypes": [
      "minecraft_sand",
      "minecraft_stone",
      "minecraft_andesite",
      "minecraft_granite"
    ],
    "chance": 10,
    "size": 16,
    "minYLevel": 60,
    "maxYLevel": 128
  }
}

Example 2: Galena [Sphere Deposit]

{
  "type": "emendatusenigmatica:sphere_deposit",
  "dimension": "minecraft:the_nether",
  "biomes": [
    "minecraft:crimson_forest"
  ],
  "registryName": "sphere_nether_galena_deposit",
  "config": {
    "blocks": [
      {
        "material": "lead",
        "weight": 10
      },
      {
        "tag": "forge:ores/silver",
        "weight": 3
      }
    ],
    "fillerTypes": [
      "minecraft_netherrack",
      "minecraft_basalt",
      "minecraft_blackstone"
    ],
    "chance": 10,
    "radius": 6,
    "minYLevel": 32,
    "maxYLevel": 128
  }
}

Example 3: Vanilla Metal in the Undergarden [Geode Deposit]

{
  "type": "emendatusenigmatica:geode_deposit",
  "dimension": "undergarden:undergarden",
  "biomes": [
  ],
  "registryName": "geode_undergarden_vanilla_ore_deposit",
  "config": {
    "outerShellBlocks": [
      {
        "block": "minecraft:basalt",
        "weight": 10
      },
      {
        "block": "minecraft:obsidian",
        "weight": 3
      }
    ],
    "innerShellBlocks": [
      {
        "block": "minecraft:blackstone",
        "weight": 10
      },
      {
        "block": "minecraft:tuff",
        "weight": 3
      }
    ],
    "innerBlocks": [
      {
        "block": "minecraft:iron_ore",
        "weight": 10
      },
      {
        "tag": "forge:ores/copper",
        "weight": 3
      },
      {
        "material": "gold",
        "weight": 3
      }
    ],
    "fillBlocks": [
      {
        "block": "minecraft:air",
        "weight": 10
      }
    ],
    "fillerTypes": [
      "undergarden_depthrock"
    ],
    "chance": 10,
    "radius": 6,
    "minYLevel": 32,
    "maxYLevel": 128
  }
}