From 7302e3514f51ab322673eb65069bfbf1cbea2782 Mon Sep 17 00:00:00 2001 From: N-Nachtigal Date: Sun, 27 Jul 2025 14:55:06 +0200 Subject: [PATCH] Changed spawn rate of rubber tree --- .../technic_worldgen/rubber.lua | 19 +++++++++++++++++-- 1 file changed, 17 insertions(+), 2 deletions(-) diff --git a/mods/technic_plus_beta/technic_worldgen/rubber.lua b/mods/technic_plus_beta/technic_worldgen/rubber.lua index 5917c898..48696560 100644 --- a/mods/technic_plus_beta/technic_worldgen/rubber.lua +++ b/mods/technic_plus_beta/technic_worldgen/rubber.lua @@ -91,13 +91,28 @@ minetest.register_abm({ nodenames = {"moretrees:rubber_tree_sapling"}, label = "Worldgen: grow rubber tree sapling", interval = 60, - chance = 20, + chance = 1, --20 action = function(pos, node) minetest.remove_node(pos) minetest.spawn_tree(pos, technic.rubber_tree_model) end }) +--[[minetest.register_decoration({ + name = "moretrees:rubber_tree", + deco_type = "schematic", + place_on = {"default:dirt_with_rainforest_litter"}, + sidelen = 80, + fill_ratio = 0.001, + biomes = {"rainforest"}, + y_max = 31000, + y_min = 1, + schematic = minetest.get_modpath("default") .. "/schematics/jungle_tree.mts", + flags = "place_center_x, place_center_z", + rotation = "random", + }) + ]]-- + if technic.config:get_bool("enable_rubber_tree_generation") then minetest.register_on_generated(function(minp, maxp, blockseed) if math.random(1, 100) > 5 then @@ -108,7 +123,7 @@ if technic.config:get_bool("enable_rubber_tree_generation") then y = (maxp.y - minp.y) / 2 + minp.y, z = (maxp.z - minp.z) / 2 + minp.z} local pos = minetest.find_node_near(tmp, maxp.x - minp.x, - {has_mcl and "mcl_core:dirt_with_grass" or "default:dirt_with_grass"}) + {"default:dirt_with_rainforest_litter" or "livingjungle:jungleground"}) if pos ~= nil then minetest.spawn_tree({x=pos.x, y=pos.y+1, z=pos.z}, technic.rubber_tree_model) end