Skip to content

ToolData

Merlord edited this page Apr 8, 2023 · 2 revisions
Field Type Description
id string Required. This will be the unique identifier used internally by Crafting Framework to identify this tool.
name string The name of the tool. Used in various UIs.
ids table <number, string> Required. This is the list of item ids that are considered identical tool.
requirement function(tes3itemStack): boolean Optionally, you can provide a function that will be used to evaluate if a certain item in the player's inventory can be used as a tool. It will be called with a tes3itemStack parameter, that it needs to evaluate if it should be recognized as a tool. When that is the case the function needs to return true, false otherwise. Used when no ids are provided.
Clone this wiki locally