Welcome to the configuration guide for DevHub 3D Crafting Table! This document will walk you through setting up and customizing your crafting experience. All primary configuration files are located in
π οΈ Configuration
π Configuration Files Overview:
configs/shared.lua: Settings accessible by both the server and client (e.g., recipe definitions, debug modes).
configs/server.lua: Server-side settings (e.g., table locations, XP integration).
Shared Configuration (configs/shared.lua)
These settings are shared between the server and the client.
Debug Configuration
Controls whether debug messages are displayed in the console.
Shared.Debug = { Enabled =true, -- Set to false to disable all debug prints Levels = { Info =true, -- General information Success =true, -- Success operations Warning =true-- Warnings and potential issues }}
Enabled: true to show debug messages, false to hide them.
Levels: Fine-tune which types of messages you want to see:
Info: General script information.
Success: Confirmation of successful actions.
Warning: Potential issues or misconfigurations.
DevHub Skill Tree Integration
This setting enables integration with the DevHub Skill Tree System.
DEVHUB_SKILLTREE_ENABLED: Set to true if you're using the DevHub Skill Tree system.
The skill tree system can be purchased at: DevHub Store.
Recepie Configuration
This section contains generated code from how-to-create-table.md
Recepie: Stores generated recipe data.
Multiple Recipes Configuration
The Shared.MultipleRecipes allows you to create custom recipes with specific item requirements. This system provides more flexibility for creating multiple recipes under a single crafting table.
Config.Tables = {
{
coords = vec4(250.5990, -753.7527, 34.6390, 68.1239),
tableUid = "herbal_table", -- Old method: using tableUid
snapToGround = true
},
{
coords = vec4(3629.7241, 5683.1719, 7.8236, 343.4010),
recipeUids = { "carft1", "carft3", "carft2", "carft4", "carft5" }, -- New method: using recipeUids
snapToGround = true
},
-- You can add more tables with different locations and recipes
}
Config.AddXP = function(source, xp)
-- Add XP to player
if Shared.DEVHUB_SKILLTREE_ENABLED then
-- Server side example
exports['devhub_skillTree']:addXp('personal', xp, source)
end
end