nodecore-skyblock/nc_sky_inject/init.lua

35 lines
828 B
Lua

-- LUALOCALS < ---------------------------------------------------------
local nodecore
= nodecore
-- LUALOCALS > ---------------------------------------------------------
local ntgr = nodecore.tree_growth_rate
function nodecore.tree_growth_rate(pos)
return ntgr(pos)*10
end
nodecore.register_craft({
label = "melt cobble to lava",
action = "cook",
touchgroups = {flame = 4},
duration = 30,
cookfx = true,
nodes = {
{
match = "nc_terrain:cobble",
replace = "nc_terrain:lava_source"
}
}
})
nodecore.register_craft({
label = "squash water from leaves",
action = "pummel",
nodes = {
{match = "nc_tree:leaves_loose", replace = "nc_terrain:water_source"}
},
toolgroups = {thumpy = 2}
})
nodecore.register_cook_abm({nodenames = {"nc_terrain:cobble"}, neighbors = {"group:flame"}})