forked from Kimapr/nodecore-skyblock
fix inability to make water, add a way to make metal crystals, lux and hard stone
This commit is contained in:
parent
d479ebb0df
commit
92ae6296d5
|
@ -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
|
||||||
|
})
|
||||||
|
|
Loading…
Reference in New Issue