Skip to content

Instantly share code, notes, and snippets.

@EvanHsieh0415
Last active March 18, 2024 10:51
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save EvanHsieh0415/b6d2791adac5a1d134f5bc291cda1e69 to your computer and use it in GitHub Desktop.
Save EvanHsieh0415/b6d2791adac5a1d134f5bc291cda1e69 to your computer and use it in GitHub Desktop.

Create - Data Pack Recipes Docs

Mod Loader Conditions

Forge

{
  "conditions": [
    {
      "type": "forge:mod_loaded",
      "modid": "${modid}"
    }
  ]
}

Fabric

{
  "fabric:load_conditions": [
    {
      "condition": "fabric:all_mods_loaded",
      "values": [
        "${modid}",
        "..."
      ]
    }
  ]
}

Base Format

{
  "type": String,
  "ingredients": Array[Object],
  "results": Array[Object]
}

- ingredients

{
  "item | fluid | tag | fluidTag": String,
  "nbt": Object,
  "count | amount": Number
}

- results

{
  "item | fluid": String,
  "nbt": Object,
  "chance": Number,
  "count | amount": Number
}

- type

Machine Type Name ID Additional Attributes Remark
Encased Fan Bluk Haunting create:haunting
\ Bluk Washing create:splashing
Millstone Milling create:milling {"processingTime": Number} ^1
Curshing Wheel Crushing create:crushing {"processingTime": Number} ^1
Mechanical Press Compacting create:compacting {"heatRequirement": "superheated | heated | none"}
\ Pressing create:pressing
Mechanical Mixer Mixing create:mixing {"heatRequirement": "superheated | heated | none"} ^2^3
Item Drain Item Draining create:emptying
Spout Filling by Spout create:filling
Mechanical Saw Sawing create:cutting {"processingTime": Number} ^1
Deployer Deploying create:deploying
(Red) Sand Paper Sandpaper Polishing create:sandpaper_polishing
Hand Manual Item Application create:item_application

^1: processingTime<Ticks>
^2: For ingredients: {"return_chance": Number[Double]}
^3: Multiple inputs of the same material cannot be counted in Create mod. You have to place them separately instead, for example:

[
  {
    "item": "minecraft:diamond"
  },
  {
    "item": "minecraft:diamond"
  },
  {
    "item": "minecraft:diamond"
  },
]

Special Recipe Format

Mechanical Crafting

{
  "type": "create:mechanical_crafting",
  "pattern": Array<Shape with Keys>,
  "key": Object<key: item | tag>,
  "result": {
    "item": String
  },
  "acceptMirrored": Boolean
}

Recipe Sequence

{
  "type": "create:sequenced_assembly",
  "transitionalItem": {
    "item": ""
  },
  "ingredents": [
    {
      "item | tag": ""
    }    
  ]
  "sequence": Array[Step],
  "results": []
  "loops": Number
}
@andrewthederp
Copy link

andrewthederp commented Mar 17, 2024

In the recipe sequence section
"ingredents" -> "ingredient",
missing a comma after the "ingredients" field
missing a comma after the "results" field
PS: thanks for this gist

@EvanHsieh0415
Copy link
Author

In the recipe sequence section "ingredents" -> "ingredient", missing a comma after the "ingredients" field missing a comma after the "results" field PS: thanks for this gist

you can see the new version of this gist on hackmd: https://hackmd.io/@mango-minecraft-notes/Create_Datapack_Recipes

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment