-
Notifications
You must be signed in to change notification settings - Fork 0
Tutorial: Adding Menu Items (For modpack authors)
Chakyl edited this page Jul 7, 2026
·
6 revisions
Cozy Cafe is data-driven, and each shop is created with Json files! This is best used for Modpack developers who want to add lots of different menu items for their packs.
Before you ready the rest of this tutorial, you should have a basic understand of these things:
- Data packs and how to load them: https://minecraft.wiki/w/Data_pack
- Guided tutorial: https://minecraft.wiki/w/Tutorial:Creating_a_data_pack
- Resource packs and how to load them: https://minecraft.wiki/w/Resource_pack
- Guided tutorial: https://minecraft.wiki/w/Tutorial:Creating_a_resource_pack
- If you're making a ton of custom menu items, a datagen system will make writing the json less tedious.
Cozy Cafe comes with some mod support by default, which can be found here: https://github.com/Chakyl/Cozy-Cafe/tree/main/src/main/resources/data/cozycafe/menu. This is also a good place to find examples!
Before anything else, you must define the menu item in the directory cozy_cafe\menu.
Inside of yourfooditem.json, add the following:
{
"item": "yourmod:yourfooditem",
"category": "main",
"price": 1,
"flavors": ["vegan", "hot", "light"],
"themes": ["casual"]
}-
item- Id of the menu item -
category("drink","main","dessert") - What category the menu item is -
price- How much the dish sells for. Tips are based off this value -
themes- Array of themes the menu item has. Can use any single word description, all lowercase. Currently unimplemented. -
flavors- Array of flavors the menu item has. Can use any single word description, all lowercase. Currently unimplemented.