Skip to content

‐ Milling Recipe Examples

Electrolyte edited this page May 28, 2024 · 2 revisions

Adding Tiered Milling Recipes through KubeJS

Syntax: event.recipes.greate.milling(output[], input)

ServerEvents.recipes(event => {
        //Single Items
        event.recipes.greate.milling('diamond', 'dirt').recipeTier(4)
        event.recipes.greate.milling(TieredOutputItem.of('diamond').withChance(0.9).withExtraTierChance(0.1), 'dirt')

        //Item Tags
        event.recipes.greate.milling('diamond', '#forge:cobblestone').recipeTier(4)
        event.recipes.greate.milling(TieredOutputItem.of('diamond').withChance(0.9).withExtraTierChance(0.1), '#forge:cobblestone')
})

Adding Tiered Milling Recipes through JSON Files

Single Items

{
  "type": "greate:milling",
  "recipeTier": 3,
  "ingredients": [
    {
      "item": "minecraft:apple"
    }
  ],
  "results": [
    {
      "item": "minecraft:diamond"
    },
    {
      "chance": 0.25,
      "item": "minecraft:stone"
    },
    {
      "chance": 0.95,
      "extraTierChance": 0.05,
      "item": "minecraft:emerald"
    }
  ]
}

Item Tags

{
  "type": "greate:milling",
  "recipeTier": 3,
  "ingredients": [
    {
      "tag": "forge:cobblestone"
    }
  ],
  "results": [
    {
      "item": "minecraft:diamond"
    },
    {
      "chance": 0.25,
      "item": "minecraft:stone"
    },
    {
      "chance": 0.95,
      "extraTierChance": 0.05,
      "item": "minecraft:emerald"
    }
  ]
}