This tutorial is set by the author's setting without permission.
Before the tutorial starts, please refer to the following tutorial to preliminary understand how to make a packet:
Minecraft wiki for making packets (Minecraft Wiki)
The original English wiki of this tutorial is here.
The Minecraft version used in the tutorial is 1.19.3, and the lazy kitchen version is 14.0.1-Fabric.
The default support for lazy kitchen is the items that can be used directly in their hands (for example, the cake in MC was not made directly by the lazy kitchen, it needs JSON support, and it will be mentioned in the future).Therefore, raw materials, seasonings, etc. in some food mods cannot be made by lazy kitchen.But lazy kitchen supports JSON data customization, making it possible to compatible with other mods.
1. Let the CB support the omitted omissions in the MOD
Take Croptopia as an example.The lazy kitchen has supported the production of some raw materials in Croptopia, but some raw materials have been missed, such as Soy Sauce and Paprika to reduce the game experience.Before repairing, we cannot make soy sauce and red pepper with the cooking table:
We can make a packet to repair this situation.
Create a folder, this folder is the name of your data packet.
Enter the new folder and create a new Pack.mcmeta.For specific ways, please refer to the tutorial of making data packets at the top of the tutorial.
Create a folder in this way:
{$ data packet name}/data/{$ casual name}/cookingforBlockheads/compat/
IntersectionNotice!All folders can only include half -horn English and numbers!Can't contain Chinese!
Create a new JSON file (name casual name, but recommended using the MOD name) under Compat, and open the editor with a notepad or your favorite IDE.
{{"Modid": "Croptopia",
"Foods": {
"Ingredients": [[
"Croptopia: SOY_SAUCE",
"Croptopia: Paprika"
]
}
}
The meaning of the relevant key name and key value can be found at the end of the text.
Pack the packet file into ZIP, add it to the packet folder, enter the/regoad reinstallation in the game, and input/datapack list to confirm whether it is successful:
Go into the cooking table and take a look:
Successfully add raw materials.Enjoy!
2. Add other MOD support
Take cake eggs as an example.
Consistent with Vanilla's cake, cake eggs can only be put down and can not be used directly in their hands.So you cannot be directly synthesized by the lazy kitchen:
We can also make it like the law.Create a new data packet and add the following in the JSON file:
{{"Modid": "Ekac",
"Foods": {
"General": [[
"Ekac: Ekac"]
}
}
Add data packet:
Look at the effect:
You can integrate multiple JSON files into a packet for easy distribution and loading.
You can also enter GitHub upload and submit PR to help the original author compatible with more mods!
Appendix: The meaning of the JSON key name
Key name
describe
modid
The ID of the MOD integrated with CB.
Only by loading the MOD represented by this ID, the JSON file will be loaded.
Foods
Define the naming array object,
It is used to specify items that cannot be added automatically (for example, it is an item that cannot be eaten because of raw materials or seasonings.
Or it can only be put down like cakes).
Now only the sub -key values of "General" and "Ingredients".
Tools
Define the name of the number of the items, specify items as a tool or kitchen utensil.
If the lack of tools, the synthetic table will not be displayed, but it will be displayed as a "lack of kitchenware."
Water
Define the objects of the items, specify items that can be equivalent to the bucket.
The sink can replace the water source of these items.
milk
Define the objects of the items, specify items that can be equivalent to milk barrels.
Dairy cows in tanks and tanks can replace milk sources of these items.
toaster
Define the array objects that include the sub -key value "input" and "output",
Specify items that can be baked by a spitter.Input input, output output.
(Human talk: Input is something that is put into the vomiting driver, Output is something spit out by the spit driver)
KitchenConnectors
Define the number of array objects of the block entity or block registry, which can be specified for use
Decorative or separated kitchen flooring, but blocks with the same connection function as the kitchen floor.
(Human talk: the same as the kitchen floor)
kitchenitemproviders
Define the number of arrays of the name of the blocking form,
The items in the entity can be directly used by multiple kitchens.
Be sure to add it carefully, because not all the items are working normally.
(Human talk: turn these things like storage objects such as refrigerators and cabinets)