A mod that adds jam. Jam that you can add many, many things to. Beef, slime, and honey jam. Any takers?
Jamtastic can be downloaded from Curseforge.
If, for one reason or another, you want to add some kind of support for Jamtastic, here are some instructions.
If you want to make your item a valid jam ingredient, there are two options:
-
Give your item a
FoodComponent
, using the.food()
method in your item settings. After that, everything else is handled automatically. Nothing else needs to be done by you. -
If your item doesn't have a food component by design (e.g. cake, because it needs to be placed), you can add it to the
jam_ingredients
folder:Make a new folder:
src/main/resources/data/<your mod id>/jam_ingredients
, and add a JSON file (it can be named whatever you like).The JSON file should look like this:
{ "ingredients": [ { "item": "minecraft:cake", "hunger": 14, "saturation": 2.8 } ] }
That example adds cake as a valid ingredient, with 14 hunger, and 2.8 saturation.
If you want to add a different kind of compatibility feature, please open an issue, so we can discuss the best course of action. For example, when adding support for Sandwichable it made the most sense to put the code on my side rather than in Sandwichable.