forked from mtcontrib/plantlife_modpack
Minor changes
This commit is contained in:
parent
b212a53158
commit
4d2a58027e
@ -13,14 +13,15 @@ assert(abstract_ferns.config.enable_horsetails == true)
|
|||||||
|
|
||||||
abstract_ferns.grow_horsetail = function(pos)
|
abstract_ferns.grow_horsetail = function(pos)
|
||||||
local horsetail_size = math.random(1, 4)
|
local horsetail_size = math.random(1, 4)
|
||||||
|
local dest = {x=pos.x, y=pos.y+1, z=pos.z}
|
||||||
if horsetail_size == 1 then
|
if horsetail_size == 1 then
|
||||||
minetest.set_node({x=pos.x, y=pos.y+1, z=pos.z}, {name="ferns:horsetail_01"})
|
minetest.set_node(dest, {name="ferns:horsetail_01"})
|
||||||
elseif horsetail_size == 2 then
|
elseif horsetail_size == 2 then
|
||||||
minetest.set_node({x=pos.x, y=pos.y+1, z=pos.z}, {name="ferns:horsetail_02"})
|
minetest.set_node(dest, {name="ferns:horsetail_02"})
|
||||||
elseif horsetail_size == 3 then
|
elseif horsetail_size == 3 then
|
||||||
minetest.set_node({x=pos.x, y=pos.y+1, z=pos.z}, {name="ferns:horsetail_03"})
|
minetest.set_node(dest, {name="ferns:horsetail_03"})
|
||||||
elseif horsetail_size == 4 then
|
else -- horsetail_size == 4
|
||||||
minetest.set_node({x=pos.x, y=pos.y+1, z=pos.z}, {name="ferns:horsetail_04"})
|
minetest.set_node(dest, {name="ferns:horsetail_04"})
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
@ -165,8 +166,7 @@ if abstract_ferns.config.enable_horsetails_on_stones == true then
|
|||||||
"default:mossycobble",
|
"default:mossycobble",
|
||||||
"stoneage:dirt_with_silex",
|
"stoneage:dirt_with_silex",
|
||||||
"stoneage:grass_with_silex",
|
"stoneage:grass_with_silex",
|
||||||
"stoneage:sand_with_silex"--, -- roots go deep
|
"stoneage:sand_with_silex", -- roots go deep
|
||||||
--"sumpf:sumpf"
|
|
||||||
},
|
},
|
||||||
max_count = 35,
|
max_count = 35,
|
||||||
rarity = 20,
|
rarity = 20,
|
||||||
|
Loading…
Reference in New Issue
Block a user