Make stone pickaxe capable of breaking cracky=1 nodes (#663)
This commit is contained in:
parent
fb9de06828
commit
1b0b2457d7
1 changed files with 10 additions and 0 deletions
|
@ -26,6 +26,16 @@ function ctf_map.can_cross(player)
|
|||
return false
|
||||
end
|
||||
|
||||
-- Modify MTG's stone pickaxe to be capable of breaking cracky=1 nodes
|
||||
-- Do it here, for lack of a better place
|
||||
do
|
||||
local tool_caps = minetest.registered_items["default:pick_stone"].tool_capabilities
|
||||
tool_caps.groupcaps.cracky.times[1] = 12.0
|
||||
minetest.override_item("default:pick_stone", {
|
||||
tool_capabilities = tool_caps
|
||||
})
|
||||
end
|
||||
|
||||
local modpath = minetest.get_modpath(minetest.get_current_modname())
|
||||
dofile(modpath .. "/nodes.lua")
|
||||
dofile(modpath .. "/emerge.lua")
|
||||
|
|
Loading…
Reference in a new issue