-local function cap(str)
- return str:gsub("^%l", string.upper)
-end
-
- -- Higher number = stronger enchant.
-local use_factor = 1.2
-local times_subtractor = 0.1
-local damage_adder = 1
-local strength_factor = 1.2
-local speed_factor = 0.2
-local jump_factor = 0.2
-
-local tools = {
- --[[ Registration format :
- [Mod name] = {
- {materials},
- {tool name, tool group, {enchantments}}
- }
- --]]
- ["default"] = {
- {"steel", "bronze", "mese", "diamond"},
- {"axe", "choppy", {"durable", "fast"}},
- {"pick", "cracky", {"durable", "fast"}},
- {"shovel", "crumbly", {"durable", "fast"}},
- {"sword", "fleshy", {"sharp"}}
- },
- ["3d_armor"] = {
- {"steel", "bronze", "gold", "diamond"},
- {"boots", nil, {"strong", "speed"}},
- {"chestplate", nil, {"strong"}},
- {"helmet", nil, {"strong"}},
- {"leggings", nil, {"strong"}}
- }
-}