Can anyone help me on this please? I am trying to redo the whole DM3 assets pack for modding.

Code: Select all
--- Toolbox Item ---
defineObject{
name = "tool_box",
baseObject = "base_item",
components = {
{
class = "Model",
model = "mod_assets/dmcsb_pack/models/items/dm_toolbox.fbx",
},
{
class = "Item",
uiName = "Toolbox",
gfxAtlas = "mod_assets/textures/gui/dm_icoatlas.tga",
gfxIndex = 144,
weight = 1.0,
description = "An toolbox with some tools used to create basic items.",
traits = { "usable" },
},
{
class = "CraftPotion",
requirements = { "alchemy", 1 },
},
},
}
--- Recipe to make a torch ---
defineRecipe{
potion = "torch",
level = 1,
ingredients = 7, --is the herb number for: "t_box_drywood but does not register--
}
--- Herb 7 --- --- I assume you just add a new herb number 7 next in line on the list, but not sure if this right? ---
defineObject{
name = "t_box_drywood",
baseObject = "base_item",
components = {
{
class = "Model",
model = "assets/models/items/branch.fbx",
},
{
class = "Item",
uiName = "Dry Wood",
description = "Dry wood can be used to create items.",
gfxIndex = 273,
stackable = true,
weight = 0.05,
traits = { "herb" },
},
},
tags = { "herb" },
}