Wiki 9Minecraft Wiki 9Minecraft

Pewter Mechanics: Custom JSON Materials

Guides 3FAQ 10Related mods 48
DownloadPewter Mod

Get the files on 9Minecraft

Contents (4)
  1. JSON Structure
  2. Properties
  3. Next guides
  4. More in this wiki

Pewter allows users to define their own Tinkers' Construct materials using JSON files. This is useful for adding support for mods not natively covered by Pewter.

JSON Structure

To add a custom material, create a JSON file in config/pewter/materials/. The file should follow this structure:

{
 "name": "example_material",
 "color": "#FFFFFF",
 "craftable": true,
 "castable": false,
 "stats": {
 "head": [200, 5.0, 4.0, 2],
 "handle": [0.9, 50],
 "extra": [50]
 },
 "traits": ["sharp", "dense"]
}

Properties

  • name: The internal name of the material.
  • color: The hex color code for the tool parts.
  • craftable: If true, parts can be made in the Part Builder.
  • castable: If true, parts can be made in the Smeltery Casting Table.
  • stats: Defines Durability, Speed, Attack, and Harvest Level for the Head; Modifier and Durability for the Handle; and Durability for the Extra part.
  • traits: A list of Tinkers' Construct trait IDs to apply to the material.