From 2ea2f0c2131ac3014674101f946b7c283e027474 Mon Sep 17 00:00:00 2001 From: Mossmanikin Date: Sun, 22 Sep 2013 09:48:16 +0200 Subject: [PATCH] forest soil conditions slightly changed --- forestsoils/generating.lua | 33 +++++++++++++++++++++++++-------- forestsoils/init.lua | 21 +++++++++++++++++---- 2 files changed, 42 insertions(+), 12 deletions(-) diff --git a/forestsoils/generating.lua b/forestsoils/generating.lua index b12331c..ec183ab 100644 --- a/forestsoils/generating.lua +++ b/forestsoils/generating.lua @@ -3,7 +3,7 @@ abstract_forestsoils.place_soil = function(pos) local node_here = minetest.get_node(pos) if minetest.registered_nodes[node_here.name] then -- instead of check_air = true, - if minetest.find_node_near(pos, 3, {"group:tree"}) then + if minetest.find_node_near(pos, 4, {"group:tree"}) then minetest.add_node(pos, {name="forestsoils:dirt_with_leaves_1"}) end end @@ -11,11 +11,11 @@ end plantslib:register_generate_plant({ surface = {"default:dirt_with_grass"}, - max_count = 6400, + max_count = 2400,--6400, rarity = 1, min_elevation = 1, near_nodes = {"group:tree"}, - near_nodes_size = 3, + near_nodes_size = 4, near_nodes_vertical = 1, near_nodes_count = 4, plantlife_limit = -1, @@ -37,9 +37,13 @@ end plantslib:register_generate_plant({ surface = {"default:dirt_with_grass"}, - max_count = 6400, + max_count = 2400,--6400, rarity = 67, min_elevation = 1, + near_nodes = {"group:tree"}, + near_nodes_size = 4, + near_nodes_vertical = 1, + near_nodes_count = 1, plantlife_limit = -1, check_air = false, }, @@ -49,7 +53,8 @@ plantslib:register_generate_plant({ abstract_forestsoils.place_soil_2 = function(pos) local node_here = minetest.get_node(pos) if minetest.registered_nodes[node_here.name] then -- instead of check_air = true, - if minetest.find_node_near(pos, 1, {"forestsoils:dirt_with_leaves_1"}) then + if minetest.find_node_near(pos, 1, {"forestsoils:dirt_with_leaves_1"}) + or minetest.find_node_near(pos, 1, {"forestsoils:dirt_with_leaves_2"}) then minetest.add_node(pos, {name="forestsoils:grass_with_leaves_2"}) end end @@ -57,9 +62,13 @@ end plantslib:register_generate_plant({ surface = {"default:dirt_with_grass"}, - max_count = 6400, + max_count = 2400,--6400, rarity = 1, min_elevation = 1, + near_nodes = {"forestsoils:dirt_with_leaves_1","forestsoils:dirt_with_leaves_2"}, + near_nodes_size = 1, + near_nodes_vertical = 1, + near_nodes_count = 1, plantlife_limit = -1, check_air = false, }, @@ -77,9 +86,13 @@ end plantslib:register_generate_plant({ surface = {"default:dirt_with_grass"}, - max_count = 6400, + max_count = 2400,--6400, rarity = 1, min_elevation = 1, + near_nodes = {"forestsoils:grass_with_leaves_2"}, + near_nodes_size = 1, + near_nodes_vertical = 1, + near_nodes_count = 1, plantlife_limit = -1, check_air = false, }, @@ -97,9 +110,13 @@ end plantslib:register_generate_plant({ surface = {"default:dirt_with_grass"}, - max_count = 6400, + max_count = 2400,--6400, rarity = 1, min_elevation = 1, + near_nodes = {"forestsoils:dirt_with_leaves_1"}, + near_nodes_size = 1, + near_nodes_vertical = 1, + near_nodes_count = 1, plantlife_limit = -1, check_air = false, }, diff --git a/forestsoils/init.lua b/forestsoils/init.lua index 85af78a..224f04d 100644 --- a/forestsoils/init.lua +++ b/forestsoils/init.lua @@ -1,16 +1,29 @@ ----------------------------------------------------------------------------------------------- -local title = "Forrest Soils" -local version = "0.0.5" +local title = "Forest Soils" +local version = "0.0.6" local mname = "forestsoils" ----------------------------------------------------------------------------------------------- abstract_forestsoils = {} dofile(minetest.get_modpath("forestsoils").."/nodes.lua") ---dofile(minetest.get_modpath("forestsoils").."/generate.lua") ---dofile(minetest.get_modpath("forestsoils").."/abms.lua") dofile(minetest.get_modpath("forestsoils").."/generating.lua") +-- felt like playing a bit :D +print(" _____ __") +print("_/ ____\\___________ ____ _______/ |_") +print("\\ __\\/ _ \\_ __ \\_/ __ \\ / ___/\\ __\\") +print(" | | ( <_> ) | \\/\\ ___/ \\___ \\ | |") +print(" |__| \\____/|__| \\___ >____ > |__|") +print(" \\/ \\/") + +print(" .__.__") +print(" __________ |__| | ______") +print(" / ___/ _ \\| | | / ___/") +print(" \\___ ( <_> ) | |__\\___ \\") +print("/____ >____/|__|____/____ >") +print(" \\/ \\/") + ----------------------------------------------------------------------------------------------- print("[Mod] "..title.." ["..version.."] ["..mname.."] Loaded...") ----------------------------------------------------------------------------------------------- \ No newline at end of file