fix inability to make water, add a way to make metal crystals, lux and hard stone

This commit is contained in:
Kimapr 2020-01-08 22:23:36 +05:00
parent d479ebb0df
commit 92ae6296d5
1 changed files with 20 additions and 1 deletions

View File

@ -23,4 +23,23 @@ nodecore.register_craft({
}
})
nodecore.register_cook_abm({nodenames = {"nc_terrain:cobble"}, neighbors = {"group:flame"}})
nodecore.register_cook_abm({nodenames = {"nc_terrain:cobble"}, neighbors = {"group:flame"}})
nodecore.register_limited_abm({
label = "aggregate insta-cooking",
interval = 1,
chance = 1,
nodenames = {"nc_concrete:wet_source"},
neighbors = {"group:lava"},
action = function(pos,node)
local nnode
if math.random() > (1/10) then
nnode = {name = "nc_terrain:hard_stone_1"}
else
local t = {"nc_crystal:ore","nc_lux:stone"}
nnode = {name=t[math.random(1,#t)]}
end
minetest.set_node(pos,nnode)
nodecore.node_sound(pos,"place")
end
})