local STRUCT = {} STRUCT.Name = "Stone Furnace" STRUCT.Model = "models/props/de_inferno/ClayOven.mdl" STRUCT.onInitialize = function(self) print("Initalize called!") end STRUCT.uniquedata = false STRUCT.onUse = function(self, ply) if CLIENT and ply != LocalPlayer() then return end print("onUse called!") end STRUCT.timemult = 0.5 STRUCT.skillease = 0.25 local timefunc = function(ply, num) print("Inputs: num=" .. num) local time = math.pow(num,STRUCT.timemult) - ((num * STRUCT.timemult) * math.pow(ply:GetSkill("Smelting"),STRUCT.skillease )) time = time * num / 5 print("Time was: " .. time) return time end local checkfunc = function(ply) return true end local genericRecipe = { ["Name"] = "Copper", ["Description"] = "Smelt some copper ore into\ncopper!", ["Requirements"] = {["Copper Ore"] = 1}, ["Results"] = {["Copper"] = 1}, ["Ratio"] = {1,1}, ["Image"] = "items/ingot_copper.png", ["CanCraft"] = checkfunc, ["Time"] = timefunc, ["Mults"] = {1,5,10,20,50} } genericGiveRecipie(STRUCT,genericRecipe) genericMakeCrafting(STRUCT) registerStructure(STRUCT)