A new berry, with no new code
A new id adds something new. This cloudberry is the blueberry row copied and changed. Because it carries the "berry" tag, it already works in every one of those recipes, and the mod doesn't touch a single recipe file to get there.
Its look is a voxel model, and models are JSON too. There are 720 of them in the game today, from berries to every bone of a Stegosaurus.
{
"items": [
{
"id": "northernfare:cloudberry",
"category": "food",
"name": "Cloudberries",
"description": "Amber berries from cold, boggy ground. Tart, and they keep well.",
"maxStack": 32,
"massKg": 0.03,
"stackable": true,
"tags": ["berry"],
"food": {
"satietyGain": 0.1,
"hydrationGain": 0.03,
"nutritionGain": 0.04,
"warmthC": 0.05,
"spoilGameDays": 2
},
"icon": "northernfare:item/cloudberry",
"mesh": "northernfare:item/cloudberry"
}
]
}