Skip to content
Acey edited this page Jun 1, 2026 · 5 revisions

🍏 Jammies - Datapack Guide

The mod allows you to add new lids and custom jam recipes using datapacks.


Adding a new Lid

To add a new lid, create a JSON file inside:
data/<your_namespace>/jammies/lid/yourlid.json

Example:

{
  "lid_item": {
    "item": "tfc:jar_lid"
  },
  "return_chance": 0.75,
  "translation_key": "jammies.tfc.jar_lid"
}

Fields

  • lid_item : The item to use as a lid. Must reference an existing item.
  • return_chance (Optional) : Chance (between 0.0 – 1.0) for the lid to be returned when unsealing, defaults to 1.0.
  • translation_key (optional) : Custom name translation key for the lid. If not included, the default item name is used.

After adding your lid, include it in the jammies:lids item tag: data/jammies/tags/item/lids.json

{
  "replace": false,
  "values": [
    "yourmod:custom_lid"
  ]
}

Adding Custom Jam Recipes

Jammies introduces two new recipe types:

  • jammies:jar_sealing
  • jammies:jar_unsealing

Jar Sealing Recipe

Used to seal unsealed jars with a lid.

{
  "type": "jammies:jar_sealing",
  "jar": {
    "item": "tfc:jar/green_apple_unsealed"
  },
  "lid": {
    "tag": "jammies:lids"
  },
  "result": {
    "count": 1,
    "id": "tfc:jar/green_apple"
  }
}

Fields

  • jar : The unsealed jar item.
  • lid : The lid ingredient or tag (usually jammies:lids).
  • result : The sealed jar output.

Jar Unsealing Recipe

{
  "type": "jammies:jar_unsealing",
  "jar": {
    "item": "tfc:jar/green_apple"
  },
  "result": {
    "count": 1,
    "id": "tfc:jar/green_apple_unsealed"
  }
}

Fields

  • jar: The sealed jar input.
  • result: The unsealed jar output.
  • always_return_lid (optional : (true/false)) : When true the return chance is ignored and the lid is always returned.

Right-Click Unsealing

  • There is no recipe addition for right-click unsealing, it works as long as there is a valid Unsealing Recipe for the Jar

Modifiers

  • jammies:copy_lid : Copies the lid information from the input to the output
  • jammies:add_lid : Add the lid used information to the output
  • jammies:copy_date : Copies the exact date info from the input to the output