1
0
mirror of https://github.com/sys4-fr/server-nalc.git synced 2025-12-18 07:55:27 +01:00

update Farming, keep our tweaks

This commit is contained in:
Ombridride
2014-11-13 23:31:49 +01:00
parent 78e6000aa1
commit c2a3d29e9e
18 changed files with 155 additions and 112 deletions

View File

@@ -52,7 +52,7 @@ minetest.register_on_generated(function(minp, maxp, seed)
-- If dirt with grass, add plant in various stages of maturity
if nn == "default:dirt_with_grass" then
local type = math.random(1,10)
local type = math.random(1,11)
if type == 1 and ground_y > 15 then
minetest.set_node(p,{name="farming:potato_"..pr:next(3, 4)})
elseif type == 2 then
@@ -73,6 +73,8 @@ minetest.register_on_generated(function(minp, maxp, seed)
minetest.set_node(p,{name="farming:raspberry_4"})
elseif type == 10 and ground_y > 10 then
minetest.set_node(p,{name="farming:rhubarb_3"})
elseif type == 11 and ground_y > 5 then
minetest.set_node(p,{name="farming:blueberry_4"})
end
end
end