{
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "$id": "https://paramlet.com/tools/custom-dice/schema.json",
 "title": "Custom dice — parameters",
 "description": "Dice with your own faces: words for party games, names for a gift, numbers on D4 to D20. Engraved or filled with a second colour, sized as you like. All lengths are millimetres. Unknown keys are rejected; out-of-range values are rejected by the URL and API and clamped when a project file is opened.",
 "x-tool": "custom-dice",
 "x-toolVersion": "1.0.0",
 "x-specVersion": "1.0",
 "x-apiVersion": "1",
 "x-groups": [
  {
   "id": "die",
   "title": "Die"
  },
  {
   "id": "faces",
   "title": "Faces"
  },
  {
   "id": "look",
   "title": "Colours"
  },
  {
   "id": "print",
   "title": "Printing"
  }
 ],
 "x-presets": {
  "note": "Choosing a preset resets every key marked x-resetOnPreset to its default and then applies the preset values.",
  "items": [
   {
    "id": "decision-die",
    "title": "Decision die: yes, no, sure",
    "description": "A 22 mm die with YES, NO, SURE, WAIT, SOON and SKIP on its faces: for a party, a meeting that will not end, or a question nobody will answer.",
    "values": {
     "set": false,
     "kind": "d6",
     "size": 22,
     "edgeRadius": 1.6,
     "style": "words",
     "face1": "YES",
     "face2": "NO",
     "face3": "SURE",
     "face4": "WAIT",
     "face5": "SOON",
     "face6": "SKIP",
     "font": "lilita",
     "depth": 0.8,
     "colorMode": "multi",
     "baseColor": "#a21caf",
     "letterColor": "#fef9c3",
     "material": "pla",
     "layerHeight": 0.16,
     "wallCount": 4,
     "infill": 100
    }
   },
   {
    "id": "classic-die-with-pips",
    "title": "Classic die with pips, 18 mm",
    "description": "An 18 mm die with the pips where a die of the West has them: a spare for a board game, in any colour you have.",
    "values": {
     "set": false,
     "kind": "d6",
     "size": 18,
     "edgeRadius": 1.6,
     "style": "pips",
     "face1": "YES",
     "face2": "NO",
     "face3": "SURE",
     "face4": "WAIT",
     "face5": "SOON",
     "face6": "SKIP",
     "font": "lilita",
     "depth": 0.8,
     "colorMode": "multi",
     "baseColor": "#f4efe6",
     "letterColor": "#1c1917",
     "material": "pla",
     "layerHeight": 0.16,
     "wallCount": 4,
     "infill": 100
    }
   },
   {
    "id": "story-die",
    "title": "Story die for the classroom",
    "description": "Six words instead of six pictures: CAT, DOG, SUN, TREE, BOOK and STAR. Throw it and tell a sentence with the word.",
    "values": {
     "set": false,
     "kind": "d6",
     "size": 22,
     "edgeRadius": 1.6,
     "style": "words",
     "face1": "CAT",
     "face2": "DOG",
     "face3": "SUN",
     "face4": "TREE",
     "face5": "BOOK",
     "face6": "STAR",
     "font": "lilita",
     "depth": 0.8,
     "colorMode": "multi",
     "baseColor": "#0e7490",
     "letterColor": "#fef9c3",
     "material": "pla",
     "layerHeight": 0.16,
     "wallCount": 4,
     "infill": 100
    }
   },
   {
    "id": "names-die",
    "title": "Names die: a gift",
    "description": "LOVE, YOU, ME, US, TRUE and 4EVER on a 24 mm die: a small gift to print in an hour. Put your own words on the faces.",
    "values": {
     "set": false,
     "kind": "d6",
     "size": 24,
     "edgeRadius": 1.6,
     "style": "words",
     "face1": "LOVE",
     "face2": "YOU",
     "face3": "ME",
     "face4": "US",
     "face5": "TRUE",
     "face6": "4EVER",
     "font": "lilita",
     "depth": 0.8,
     "colorMode": "multi",
     "baseColor": "#be123c",
     "letterColor": "#fef9c3",
     "material": "pla",
     "layerHeight": 0.16,
     "wallCount": 4,
     "infill": 100
    }
   },
   {
    "id": "giant-die-60mm",
    "title": "Giant die, 60 mm",
    "description": "A 60 mm die with numbers 1 to 6: for the garden, a party game or a classroom. Two colours or one.",
    "values": {
     "set": false,
     "kind": "d6",
     "size": 60,
     "edgeRadius": 4,
     "style": "numbers",
     "face1": "YES",
     "face2": "NO",
     "face3": "SURE",
     "face4": "WAIT",
     "face5": "SOON",
     "face6": "SKIP",
     "font": "lilita",
     "depth": 1.2,
     "colorMode": "multi",
     "baseColor": "#1d4ed8",
     "letterColor": "#fef9c3",
     "material": "pla",
     "layerHeight": 0.16,
     "wallCount": 4,
     "infill": 100
    }
   },
   {
    "id": "d20-dragon-die",
    "title": "D20 with numbers, 32 mm",
    "description": "A twenty-sided die with its numbers engraved and filled, opposite faces adding up to 21. For a tabletop game that lost its die.",
    "values": {
     "set": false,
     "kind": "d20",
     "size": 32,
     "edgeRadius": 1.6,
     "style": "numbers",
     "face1": "YES",
     "face2": "NO",
     "face3": "SURE",
     "face4": "WAIT",
     "face5": "SOON",
     "face6": "SKIP",
     "font": "lilita",
     "depth": 0.8,
     "colorMode": "multi",
     "baseColor": "#15803d",
     "letterColor": "#fef9c3",
     "material": "pla",
     "layerHeight": 0.16,
     "wallCount": 4,
     "infill": 100
    }
   },
   {
    "id": "blank-die",
    "title": "Blank die, 16 mm",
    "description": "A blank die to write or stamp on: a replacement for a board game, or a counter with your own mark.",
    "values": {
     "set": false,
     "kind": "d6",
     "size": 16,
     "edgeRadius": 1.6,
     "style": "blank",
     "face1": "YES",
     "face2": "NO",
     "face3": "SURE",
     "face4": "WAIT",
     "face5": "SOON",
     "face6": "SKIP",
     "font": "lilita",
     "depth": 0.8,
     "colorMode": "single",
     "baseColor": "#f4efe6",
     "letterColor": "#fef9c3",
     "material": "pla",
     "layerHeight": 0.16,
     "wallCount": 4,
     "infill": 100
    }
   },
   {
    "id": "rpg-dice-set",
    "title": "Dice set: D4, D6, D8, D10, D12, D20",
    "description": "Six dice with their numbers, one of each, 28 mm across the flats, in a row on the bed. For a tabletop game or a spare set.",
    "values": {
     "set": true,
     "kind": "d6",
     "size": 28,
     "edgeRadius": 1.6,
     "style": "words",
     "face1": "YES",
     "face2": "NO",
     "face3": "SURE",
     "face4": "WAIT",
     "face5": "SOON",
     "face6": "SKIP",
     "font": "lilita",
     "depth": 0.8,
     "colorMode": "multi",
     "baseColor": "#b91c1c",
     "letterColor": "#fef9c3",
     "material": "pla",
     "layerHeight": 0.16,
     "wallCount": 4,
     "infill": 100
    }
   }
  ]
 },
 "x-coreParams": {
  "exportFormat": {
   "type": "string",
   "title": "File format",
   "description": "3mf = 3MF (mm); stl = STL files in a zip (mm)",
   "x-group": "download",
   "x-role": "core.exportFormat",
   "x-unit": "none",
   "x-agentSafe": true,
   "enum": [
    "3mf",
    "stl"
   ],
   "default": "3mf"
  },
  "exportTol": {
   "type": "number",
   "title": "Mesh precision",
   "description": "Simplification tolerance in mm (0 = original mesh).",
   "x-group": "download",
   "x-role": "core.exportTolerance",
   "x-unit": "mm",
   "x-agentSafe": true,
   "enum": [
    0,
    0.01,
    0.02
   ],
   "default": 0.02
  },
  "units": {
   "type": "string",
   "title": "Units shown",
   "description": "Display only: mm or inches (1 in = 25.4 mm). Stored values, the API and exports are always mm.",
   "x-group": "view",
   "x-role": "core.displayUnits",
   "x-unit": "none",
   "x-agentSafe": true,
   "enum": [
    "mm",
    "in"
   ],
   "x-enumTitles": {
    "mm": "Millimetres",
    "in": "Inches"
   },
   "default": "mm"
  }
 },
 "type": "object",
 "properties": {
  "set": {
   "type": "integer",
   "enum": [
    0,
    1
   ],
   "title": "Whole set",
   "description": "One die, or D4, D6, D8, D10, D12 and D20 with numbers, one of each, in a row.",
   "x-group": "die",
   "x-agentSafe": true,
   "x-label-lv": "Viss komplekts",
   "default": 0,
   "x-resetOnPreset": true
  },
  "kind": {
   "type": "string",
   "enum": [
    "d4",
    "d6",
    "d8",
    "d10",
    "d12",
    "d20"
   ],
   "x-enumTitles": {
    "d4": "D4 (four sides)",
    "d6": "D6 (six sides)",
    "d8": "D8 (eight sides)",
    "d10": "D10 (ten sides)",
    "d12": "D12 (twelve sides)",
    "d20": "D20 (twenty sides)"
   },
   "title": "Die",
   "description": "A D6 takes words, numbers or pips. The others take their numbers, one to a face, with opposite faces adding up.",
   "x-group": "die",
   "x-visibleIf": {
    "set": false
   },
   "x-agentSafe": true,
   "x-label-lv": "Kauliņš",
   "default": "d6",
   "x-resetOnPreset": true
  },
  "size": {
   "type": "number",
   "minimum": 12,
   "maximum": 80,
   "multipleOf": 1,
   "title": "Size",
   "description": "Across the flats, from a face to the one opposite. A D4 is a little taller than that.",
   "x-group": "die",
   "x-unit": "mm",
   "x-agentSafe": true,
   "x-label-lv": "Izmērs",
   "default": 22,
   "x-resetOnPreset": true
  },
  "edgeRadius": {
   "type": "number",
   "minimum": 0,
   "maximum": 6,
   "x-step": 0.2,
   "title": "Edge rounding",
   "description": "Round edges roll better and do not chip. At the most a fifth of the size, and never more than leaves room for the marks.",
   "x-group": "die",
   "x-unit": "mm",
   "x-role": "core.fillet",
   "x-agentSafe": true,
   "x-label-lv": "Šķautņu noapaļojums",
   "default": 1.6,
   "x-resetOnPreset": true
  },
  "style": {
   "type": "string",
   "enum": [
    "words",
    "numbers",
    "pips",
    "blank"
   ],
   "x-enumTitles": {
    "words": "Words of your own",
    "numbers": "Numbers 1 to 6",
    "pips": "Pips, like a classic die",
    "blank": "Blank"
   },
   "title": "Faces",
   "description": "What the six faces show.",
   "x-group": "faces",
   "x-visibleIf": {
    "set": false,
    "kind": "d6"
   },
   "x-agentSafe": true,
   "x-label-lv": "Skaldnes",
   "default": "words",
   "x-resetOnPreset": true
  },
  "face1": {
   "type": "string",
   "maxLength": 8,
   "title": "Face 1",
   "description": "The face with one pip shows this. Up to 8 characters. Empty: blank.",
   "x-group": "faces",
   "x-visibleIf": {
    "set": false,
    "kind": "d6",
    "style": "words"
   },
   "x-agentSafe": true,
   "x-label-lv": "1. skaldne",
   "default": "YES",
   "x-resetOnPreset": true
  },
  "face2": {
   "type": "string",
   "maxLength": 8,
   "title": "Face 2",
   "description": "The face with two pips.",
   "x-group": "faces",
   "x-visibleIf": {
    "set": false,
    "kind": "d6",
    "style": "words"
   },
   "x-agentSafe": true,
   "x-label-lv": "2. skaldne",
   "default": "NO",
   "x-resetOnPreset": true
  },
  "face3": {
   "type": "string",
   "maxLength": 8,
   "title": "Face 3",
   "description": "The face with three pips.",
   "x-group": "faces",
   "x-visibleIf": {
    "set": false,
    "kind": "d6",
    "style": "words"
   },
   "x-agentSafe": true,
   "x-label-lv": "3. skaldne",
   "default": "SURE",
   "x-resetOnPreset": true
  },
  "face4": {
   "type": "string",
   "maxLength": 8,
   "title": "Face 4",
   "description": "The face with four pips.",
   "x-group": "faces",
   "x-visibleIf": {
    "set": false,
    "kind": "d6",
    "style": "words"
   },
   "x-agentSafe": true,
   "x-label-lv": "4. skaldne",
   "default": "WAIT",
   "x-resetOnPreset": true
  },
  "face5": {
   "type": "string",
   "maxLength": 8,
   "title": "Face 5",
   "description": "The face with five pips.",
   "x-group": "faces",
   "x-visibleIf": {
    "set": false,
    "kind": "d6",
    "style": "words"
   },
   "x-agentSafe": true,
   "x-label-lv": "5. skaldne",
   "default": "SOON",
   "x-resetOnPreset": true
  },
  "face6": {
   "type": "string",
   "maxLength": 8,
   "title": "Face 6",
   "description": "The face with six pips.",
   "x-group": "faces",
   "x-visibleIf": {
    "set": false,
    "kind": "d6",
    "style": "words"
   },
   "x-agentSafe": true,
   "x-label-lv": "6. skaldne",
   "default": "SKIP",
   "x-resetOnPreset": true
  },
  "font": {
   "type": "string",
   "enum": [
    "lilita",
    "pacifico",
    "varela",
    "barlow"
   ],
   "x-enumTitles": {
    "lilita": "Bold rounded (Lilita One)",
    "pacifico": "Script, joined letters (Pacifico)",
    "varela": "Clean rounded (Varela Round)",
    "barlow": "Narrow, for long text (Barlow Condensed)"
   },
   "title": "Letter style",
   "description": "The bold style holds its strokes on a small die; the narrow one fits a longer word.",
   "x-group": "faces",
   "x-agentSafe": true,
   "x-label-lv": "Burtu stils",
   "default": "lilita",
   "x-resetOnPreset": true
  },
  "depth": {
   "type": "number",
   "minimum": 0.4,
   "maximum": 1.5,
   "x-step": 0.1,
   "title": "Engraving depth",
   "description": "How deep the letters and pips are cut. In two colours the cut is filled flush with the second colour.",
   "x-group": "faces",
   "x-unit": "mm",
   "x-agentSafe": true,
   "x-label-lv": "Gravējuma dziļums",
   "default": 0.8,
   "x-resetOnPreset": true
  },
  "colorMode": {
   "type": "string",
   "enum": [
    "single",
    "multi"
   ],
   "x-enumTitles": {
    "single": "One colour: engraved",
    "multi": "Two colours: body and face fill"
   },
   "title": "Colours",
   "description": "Two colours fills the engraving flush with a second colour, in a 3MF for a multi-material printer. The die prints with a face on the bed, so the marks on it are the first layers.",
   "x-group": "look",
   "x-agentSafe": true,
   "x-label-lv": "Krāsas",
   "default": "multi",
   "x-resetOnPreset": true
  },
  "baseColor": {
   "type": "string",
   "pattern": "^#[0-9a-fA-F]{6}$",
   "title": "Body colour",
   "description": "The die.",
   "x-group": "look",
   "x-role": "core.previewColor",
   "x-agentSafe": true,
   "x-label-lv": "Korpusa krāsa",
   "default": "#a21caf",
   "x-resetOnPreset": true
  },
  "letterColor": {
   "type": "string",
   "pattern": "^#[0-9a-fA-F]{6}$",
   "title": "Face fill colour",
   "description": "The letters and pips in the engraving.",
   "x-group": "look",
   "x-visibleIf": {
    "colorMode": "multi"
   },
   "x-agentSafe": true,
   "x-label-lv": "Pildījuma krāsa",
   "default": "#fef9c3",
   "x-resetOnPreset": true
  },
  "material": {
   "type": "string",
   "enum": [
    "pla",
    "petg",
    "asa"
   ],
   "x-enumTitles": {
    "pla": "PLA",
    "petg": "PETG",
    "asa": "ASA"
   },
   "title": "Filament",
   "description": "PLA prints the sharpest edges and is enough for a die that is thrown by hand.",
   "x-group": "print",
   "x-role": "core.printMaterial",
   "x-agentSafe": true,
   "x-label-lv": "Filaments",
   "default": "pla",
   "x-resetOnPreset": true
  },
  "layerHeight": {
   "type": "number",
   "minimum": 0.12,
   "maximum": 0.3,
   "x-step": 0.02,
   "title": "Layer height",
   "description": "0.16 mm or less keeps the edges round and the letters sharp.",
   "x-group": "print",
   "x-unit": "mm",
   "x-agentSafe": true,
   "x-label-lv": "Slāņa augstums",
   "default": 0.16,
   "x-resetOnPreset": true
  },
  "wallCount": {
   "type": "integer",
   "minimum": 3,
   "maximum": 8,
   "multipleOf": 1,
   "title": "Perimeter walls",
   "description": "Four lines: the edges take the knocks.",
   "x-group": "print",
   "x-unit": "count",
   "x-role": "print.wallCount",
   "x-agentSafe": true,
   "x-label-lv": "Sienu skaits",
   "default": 4,
   "x-resetOnPreset": true
  },
  "infill": {
   "type": "integer",
   "minimum": 10,
   "maximum": 100,
   "multipleOf": 5,
   "title": "Infill",
   "description": "100 %: a die should weigh the same on every side.",
   "x-group": "print",
   "x-unit": "pct",
   "x-role": "print.infill",
   "x-agentSafe": true,
   "x-label-lv": "Aizpildījums",
   "default": 100,
   "x-resetOnPreset": true
  }
 },
 "additionalProperties": false,
 "recommended_materials": [
  {
   "id": "pla-matte-filament",
   "title": "Matte PLA Filament 1.75 mm (1 kg) — smooth surface finish",
   "why": "Clean matte finish for decorative vases, ornaments and candle holders.",
   "url": "https://paramlet.com/go/pla-matte-filament?src=agent",
   "relation": "material",
   "disclosure": "Affiliate link (Amazon Associates, tag paramlet-21)"
  },
  {
   "id": "deburring-tool-set",
   "title": "Precision Deburring Tool with 10 HSS Blades",
   "why": "Cleans brim edges and drill-hole chamfers in seconds.",
   "url": "https://paramlet.com/go/deburring-tool-set?src=agent",
   "relation": "material",
   "disclosure": "Affiliate link (Amazon Associates, tag paramlet-21)"
  }
 ]
}