//Loads all the craftable things in the game! to make a new craftable, create a new file in any of playermade/ craftingtables/ workbenches/ or misc/, they will get automatically included GMS.Combinations = {} function GMS.RegisterCombi( tbl, group ) if ( !GMS.Combinations[ group ] ) then GMS.Combinations[ group ] = {} end if(group == "Structures") then print("Found a structure:") print(tbl.Name) end GMS.Combinations[ group ][ string.Replace( tbl.Name, " ", "_" ) ] = tbl end /* local folderpath = "gamemodes/" .. GM.GAMEMODE_FOLDER_NAME .. "/gamemode/craftablesystem/playermade/" print("Attempting to load folderpath " .. folderpath) local files, directories = file.Find(folderpath .. "*", "MOD") print("Files:") PrintTable(files) print("Directories:") PrintTable(directories) if(recursive) then for k,v in pairs(directories) do addResourceFolder(folderstring..v,recursive) end end for k,v in pairs(files) do include(folderstring .. "/".. v) end */ --include("craftablesystem/playermade/concrete.lua") --include("playermade/concrete.lua") --includeFolder("craftablesystem/playermade",false)