Materials are raw and processed resources — the building blocks for crafting equipment. Each material type lives in its own sub-folder under data/items/materials/.

Material Types

Type (meta value)FolderDescription
oredata/items/materials/ores/Raw, unprocessed minerals
ingotdata/items/materials/ingots/Smelted/refined metals
alloydata/items/materials/alloys/Combined composite materials
circuitdata/items/materials/circuits/Electronic components
crystaldata/items/materials/crystals/Energy crystals
itemdata/items/materials/bio/Organic/biological materials

JSON Shape

{
  "displayName": "items.materials.mypack.ores.iron",
  "description": "items.materials.mypack.ores.iron.desc",
  "texture": "mypack/assets/textures/materials/ore/iron.png",
  "meta": "ore",
  "storeCategory": "ores",
  "storePrice": 100,
  "storeSellValue": 50,
  "storeShowWeight": 10,
  "storeFeaturedDiscountPercentage": 0.0,
  "storeFeaturedShowWeight": 0
}

Field Reference

FieldTypeRequiredDescription
displayNamestring (lang key)Registry key for the item display name.
descriptionstring (lang key)Registry key for the item description.
texturestring (path)Path to the PNG texture, relative to the pack root. See Textures.
metastringMaterial type slug. Must match the sub-folder: ore, ingot, alloy, circuit, crystal, or item (for bio).
storeCategorystringStore section this item appears under. See Appendix A of the layout spec.
storePriceintegerBuy price in the in-game store.
storeSellValueintegerSell price returned to the player.
storeShowWeightintegerRelative probability of appearing in the store listing. 0 = never shown.
storeFeaturedDiscountPercentagefloat (0–1)NoDiscount applied when featured. 0.0 = no discount.
storeFeaturedShowWeightintegerNoProbability of appearing in the featured listing. 0 = never featured.

Example — Ore

{
  "displayName": "items.materials.mypack.ores.uranium",
  "description": "items.materials.mypack.ores.uranium.desc",
  "texture": "mypack/assets/textures/materials/ore/uranium.png",
  "meta": "ore",
  "storeCategory": "ores",
  "storePrice": 250,
  "storeSellValue": 100,
  "storeShowWeight": 8,
  "storeFeaturedDiscountPercentage": 0.0,
  "storeFeaturedShowWeight": 0
}

Example — Ingot

{
  "displayName": "items.materials.mypack.ingots.uranium",
  "description": "items.materials.mypack.ingots.uranium.desc",
  "texture": "mypack/assets/textures/materials/ingot/uranium.png",
  "meta": "ingot",
  "storeCategory": "ingots",
  "storePrice": 600,
  "storeSellValue": 250,
  "storeShowWeight": 5
}

Example — Circuit

{
  "displayName": "items.materials.mypack.circuits.logic_board",
  "description": "items.materials.mypack.circuits.logic_board.desc",
  "texture": "mypack/assets/textures/materials/circuits/logic_board.png",
  "meta": "circuit",
  "storeCategory": "circuits",
  "storePrice": 800,
  "storeSellValue": 300,
  "storeShowWeight": 4
}

Material Flow

Ore  →  Recipe  →  Ingot  →  Recipe  →  Alloy  →  Recipe  →  Equipment
Bio drop from enemy  →  Recipe  →  Component  →  Recipe  →  Equipment

Language Keys

"items.materials.mypack.ores.uranium":        "Uranium Ore",
"items.materials.mypack.ores.uranium.desc":   "A radioactive ore found in deep asteroid fields.",
"items.materials.mypack.ingots.uranium":      "Uranium Ingot",
"items.materials.mypack.ingots.uranium.desc": "Refined uranium, ready for high-energy applications."