Fix gravel not breaking to chips

This commit is contained in:
Kimapr 2019-12-05 11:11:12 +05:00
parent 4f4dcfa0f0
commit 50019d490b
1 changed files with 27 additions and 1 deletions

View File

@ -8,3 +8,29 @@ local ntgr = nodecore.tree_growth_rate
function nodecore.tree_growth_rate(pos) function nodecore.tree_growth_rate(pos)
return ntgr(pos)*10 return ntgr(pos)*10
end end
nodecore.register_craft({
label = "break gravel to chips",
action = "pummel",
nodes = {
{match = "nc_terrain:gravel_loose", replace = "nc_terrain:sand"}
},
items = {
{name = modname .. ":chip", count = 4, scatter = 5}
},
toolgroups = {cracky = 2},
itemscatter = 5
})
nodecore.register_craft({
label = "break packed gravel to chips",
action = "pummel",
nodes = {
{match = "nc_terrain:gravel", replace = "nc_terrain:sand"}
},
items = {
{name = modname .. ":chip", count = 2, scatter = 5}
},
toolgroups = {cracky = 2},
itemscatter = 5
})