mirror of
https://git.minetest.land/Mineclonia/Mineclonia.git
synced 2024-11-06 01:35:05 +00:00
b50addac55
Group levels are now specified as a list of names when registering a digging group. Digging groups which do not have specified levels will support tools having two levels, 0 and 1 where 0 means the tool can dig but not harvest the node and 1 means it can also harvest the node. If more levels are required one has to specifiy them when registering the digging group.
30 lines
1.2 KiB
Lua
30 lines
1.2 KiB
Lua
mcl_core = {}
|
|
|
|
-- Repair percentage for toolrepair
|
|
mcl_core.repair = 0.05
|
|
|
|
mcl_autogroup.register_diggroup("handy")
|
|
mcl_autogroup.register_diggroup("pickaxey", {
|
|
levels = { "wood", "gold", "stone", "iron", "diamond" }
|
|
})
|
|
mcl_autogroup.register_diggroup("axey")
|
|
mcl_autogroup.register_diggroup("shovely")
|
|
mcl_autogroup.register_diggroup("shearsy")
|
|
mcl_autogroup.register_diggroup("shearsy_wool")
|
|
mcl_autogroup.register_diggroup("shearsy_cobweb")
|
|
mcl_autogroup.register_diggroup("swordy")
|
|
mcl_autogroup.register_diggroup("swordy_cobweb")
|
|
mcl_autogroup.register_diggroup("creative_breakable")
|
|
|
|
-- Load files
|
|
local modpath = minetest.get_modpath("mcl_core")
|
|
dofile(modpath.."/functions.lua")
|
|
dofile(modpath.."/nodes_base.lua") -- Simple solid cubic nodes with simple definitions
|
|
dofile(modpath.."/nodes_liquid.lua") -- Liquids
|
|
dofile(modpath.."/nodes_cactuscane.lua") -- Cactus and sugar canes
|
|
dofile(modpath.."/nodes_trees.lua") -- Tree nodes: Wood, Planks, Sapling, Leaves
|
|
dofile(modpath.."/nodes_glass.lua") -- Glass
|
|
dofile(modpath.."/nodes_climb.lua") -- Climbable nodes
|
|
dofile(modpath.."/nodes_misc.lua") -- Other and special nodes
|
|
dofile(modpath.."/craftitems.lua")
|
|
dofile(modpath.."/crafting.lua")
|