master
parent
70199680e4
commit
ddd932db0e
|
@ -13,12 +13,6 @@ minetest.register_craft({
|
||||||
recipe = "group:tree",
|
recipe = "group:tree",
|
||||||
})
|
})
|
||||||
|
|
||||||
minetest.register_craft({
|
|
||||||
type = "cooking",
|
|
||||||
output = "default:coal_lump",
|
|
||||||
recipe = "group:tree",
|
|
||||||
})
|
|
||||||
|
|
||||||
minetest.register_craft({
|
minetest.register_craft({
|
||||||
output = "default:mossycobble",
|
output = "default:mossycobble",
|
||||||
type = "shapeless",
|
type = "shapeless",
|
||||||
|
@ -155,7 +149,7 @@ local function is_not_an_ore(ore_name)
|
||||||
end
|
end
|
||||||
|
|
||||||
-- Place ore just as often as they occur in mapgen.
|
-- Place ore just as often as they occur in mapgen.
|
||||||
local function choose_ore(pos)
|
local function choose_ore()
|
||||||
local cool_flowing = "default:stone"
|
local cool_flowing = "default:stone"
|
||||||
for _, ore in pairs(minetest.registered_ores) do
|
for _, ore in pairs(minetest.registered_ores) do
|
||||||
if is_not_an_ore(ore.ore) then
|
if is_not_an_ore(ore.ore) then
|
||||||
|
@ -184,7 +178,7 @@ default.cool_lava = function(pos, node)
|
||||||
end
|
end
|
||||||
minetest.set_node(pos, {name = cool_source})
|
minetest.set_node(pos, {name = cool_source})
|
||||||
else -- Lava flowing
|
else -- Lava flowing
|
||||||
local cool_flowing = choose_ore(pos)
|
local cool_flowing = choose_ore()
|
||||||
minetest.set_node(pos, {name = cool_flowing})
|
minetest.set_node(pos, {name = cool_flowing})
|
||||||
end
|
end
|
||||||
minetest.sound_play("default_cool_lava",
|
minetest.sound_play("default_cool_lava",
|
||||||
|
|
|
@ -38,14 +38,13 @@ if minetest.global_exists("startanode") then
|
||||||
fill_chest(pos)
|
fill_chest(pos)
|
||||||
end
|
end
|
||||||
else
|
else
|
||||||
-- without water: keep the start-a-node as stone and place the chest above
|
-- keep the start-a-node as stone and place the chest above without water
|
||||||
startanode.after_place_func = function(player, pos)
|
startanode.after_place_func = function(player, pos)
|
||||||
chestpos = {x=pos.x, y=pos.y+1,z=pos.z}
|
chestpos = {x=pos.x, y=pos.y+1,z=pos.z}
|
||||||
minetest.set_node(chestpos, {name="default:chest"})
|
minetest.set_node(chestpos, {name="default:chest"})
|
||||||
fill_chest(chestpos)
|
fill_chest(chestpos)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
return
|
return
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue