From 50019d490b72d787e39b3be75231b2cd3d365ea9 Mon Sep 17 00:00:00 2001 From: Kimapr Date: Thu, 5 Dec 2019 11:11:12 +0500 Subject: [PATCH] Fix gravel not breaking to chips --- nc_sky_inject/init.lua | 28 +++++++++++++++++++++++++++- 1 file changed, 27 insertions(+), 1 deletion(-) diff --git a/nc_sky_inject/init.lua b/nc_sky_inject/init.lua index 4f702e0..370a56b 100644 --- a/nc_sky_inject/init.lua +++ b/nc_sky_inject/init.lua @@ -7,4 +7,30 @@ local ntgr = nodecore.tree_growth_rate function nodecore.tree_growth_rate(pos) return ntgr(pos)*10 -end \ No newline at end of file +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 + }) \ No newline at end of file