Hello!
I'm just starting to create mods until I was able to make a 3D model and added an item to the game. Can you tell me where you can see the information on setting up the spawn of a new item. I realized that I need to place the file \media\lua\server\items\
I looked at other mods, but I didn't quite understand how it works.
I made a container in which things should spawn like in the Sewing Kit
as I understand it, I need to write something like this code for this
MRE = {
rolls = 1,
items = {
"item1", 200,
"item2", 200,
"item3", 200,
"item4", 200,
"item5", 200,
"item6", 200,
"item7", 200,
"item8", 200,
},
finland = 0,
},
I wanted to make it as a recipe, it's much easier there. But as I understand it, it will not work to get different items when unpacking. For this reason, I had to do it as a container.
I realized that the file should contain (example)
table.insert(SuburbsDistributions["conveniencestore"]["shelves"].items, "MRE");
table.insert(SuburbsDistributions["conveniencestore"]["shelves"].items, 0.1);
table.insert(SuburbsDistributions["fossoil"]["crate"].items, "MRE");
table.insert(SuburbsDistributions["fossoil"]["crate"].items, 0.1);
but I want to understand what is responsible for what and the correct file structure to avoid errors.
Thank you and sorry if the question was stupid.