now the fire of the tree will ignite provided that the air temperature is high
This commit is contained in:
parent
05126557e4
commit
ebcd4e8ab6
@ -17,7 +17,7 @@ if minetest.get_modpath("areas") then
|
|||||||
interval = 10/speed,
|
interval = 10/speed,
|
||||||
chance = 50,
|
chance = 50,
|
||||||
action = function(pos)
|
action = function(pos)
|
||||||
if pos.y > -10 and pos.y < 1500 then
|
if pos.y > -10 and pos.y < 30 then
|
||||||
minetest.env:add_node(pos, {name="surface_effect:radioactive_earth"})
|
minetest.env:add_node(pos, {name="surface_effect:radioactive_earth"})
|
||||||
end
|
end
|
||||||
end,
|
end,
|
||||||
@ -29,8 +29,10 @@ minetest.register_abm({
|
|||||||
interval = 30/speed,
|
interval = 30/speed,
|
||||||
chance = 2000,
|
chance = 2000,
|
||||||
action = function(pos)
|
action = function(pos)
|
||||||
if pos.y > -10 and pos.y < 1500 then
|
local info_biome = minetest.get_biome_data(pos)
|
||||||
minetest.env:add_node(pos, {name="fire:basic_flame"})
|
|
||||||
|
if pos.y > -10 and pos.y < 500 and info_biome.heat > 45 then
|
||||||
|
minetest.env:add_node(pos, {name="fire:basic_flame"})
|
||||||
end
|
end
|
||||||
end,
|
end,
|
||||||
})
|
})
|
||||||
@ -51,7 +53,9 @@ minetest.register_abm({
|
|||||||
interval = 10/speed,
|
interval = 10/speed,
|
||||||
chance = 50,
|
chance = 50,
|
||||||
action = function(pos)
|
action = function(pos)
|
||||||
if pos.y > -10 and pos.y < 1500 then
|
local info_biome = minetest.get_biome_data(pos)
|
||||||
|
|
||||||
|
if pos.y > -10 and pos.y < 1500 and info_biome.heat > 45 then
|
||||||
minetest.env:remove_node(pos)
|
minetest.env:remove_node(pos)
|
||||||
if minetest.env:get_node({x=pos.x, y=pos.y -1, z=pos.z}).name == "default:water_source" then
|
if minetest.env:get_node({x=pos.x, y=pos.y -1, z=pos.z}).name == "default:water_source" then
|
||||||
minetest.env:remove_node({x=pos.x, y=pos.y -1, z=pos.z})
|
minetest.env:remove_node({x=pos.x, y=pos.y -1, z=pos.z})
|
||||||
|
Loading…
x
Reference in New Issue
Block a user