3 Commits

Author SHA1 Message Date
Wuzzy
25d4e435fb Improve German translation (#58) 2025-12-25 11:30:42 -05:00
cx384
403b16f5d9 Make all trees spawn again (#57)
* Make all trees spawn again

* Fix removed value
2025-10-04 14:11:58 -04:00
Niklp
7c690ed901 Remove nonexistent waving paramtype2 from saplings (#56) 2025-10-01 18:07:22 -04:00
6 changed files with 218 additions and 204 deletions

View File

@@ -1,30 +1,45 @@
-- TODO
-- Use biomes in the decoration definition depending on their heat_point humidity_point
-- instead of spawning it with a rather low fill_ratio everywhere
local ratio_abundant = 0.001
local ratio_common = 0.0005
local ratio_normal = 0.0003
local ratio_uncommon = 0.0002
local ratio_rare = 0.0001
local ratio_very_rare = 0.00003
local coniferous_place_on = {
xcompat.materials.dirt_with_grass,
"default:dirt_with_coniferous_litter"
}
moretrees.beech_biome = { moretrees.beech_biome = {
place_on = xcompat.materials.dirt_with_grass, place_on = xcompat.materials.dirt_with_grass,
fill_ratio = ratio_normal,
} }
moretrees.palm_biome = { moretrees.palm_biome = {
place_on = xcompat.materials.sand, place_on = xcompat.materials.sand,
min_elevation = -1, min_elevation = -1,
max_elevation = 1, max_elevation = 1,
spawn_by = {xcompat.materials.water_source}, fill_ratio = ratio_abundant,
num_spawn_by = 10,
} }
moretrees.date_palm_biome = { moretrees.date_palm_biome = {
place_on = xcompat.materials.desert_sand, place_on = xcompat.materials.desert_sand,
min_elevation = -1, min_elevation = -1,
max_elevation = 10, max_elevation = 8,
spawn_by = {xcompat.materials.water_source}, fill_ratio = ratio_common,
num_spawn_by = 100,
} }
moretrees.date_palm_biome_2 = { moretrees.date_palm_biome_2 = {
place_on = xcompat.materials.desert_sand, place_on = xcompat.materials.desert_sand,
min_elevation = 11, min_elevation = 9,
max_elevation = 30, max_elevation = 30,
spawn_by = {xcompat.materials.water_source}, spawn_by = {xcompat.materials.water_source},
num_spawn_by = 1, num_spawn_by = 1,
fill_ratio = ratio_abundant,
} }
moretrees.apple_tree_biome = { moretrees.apple_tree_biome = {
@@ -32,44 +47,42 @@ moretrees.apple_tree_biome = {
min_elevation = 1, min_elevation = 1,
max_elevation = 10, max_elevation = 10,
biomes = {"deciduous_forest"}, biomes = {"deciduous_forest"},
fill_ratio = 0.0001, fill_ratio = ratio_rare,
} }
moretrees.oak_biome = { moretrees.oak_biome = {
place_on = xcompat.materials.dirt_with_grass, place_on = xcompat.materials.dirt_with_grass,
min_elevation = 0, min_elevation = 0,
max_elevation = 10, max_elevation = 10,
fill_ratio = 0.0003 fill_ratio = ratio_normal,
} }
moretrees.sequoia_biome = { moretrees.sequoia_biome = {
place_on = xcompat.materials.dirt_with_grass, place_on = xcompat.materials.dirt_with_grass,
min_elevation = 0, min_elevation = 0,
max_elevation = 10, max_elevation = 10,
fill_ratio = 0.0001, fill_ratio = ratio_rare,
} }
moretrees.birch_biome = { moretrees.birch_biome = {
place_on = xcompat.materials.dirt_with_grass, place_on = xcompat.materials.dirt_with_grass,
min_elevation = 10, min_elevation = 10,
max_elevation = 15, max_elevation = 15,
fill_ratio = 0.001, fill_ratio = ratio_common,
} }
moretrees.willow_biome = { moretrees.willow_biome = {
place_on = xcompat.materials.dirt_with_grass, place_on = xcompat.materials.dirt_with_grass,
min_elevation = -5, min_elevation = -5,
max_elevation = 5, max_elevation = 5,
spawn_by = {xcompat.materials.water_source}, fill_ratio = ratio_uncommon,
num_spawn_by = 5,
} }
moretrees.rubber_tree_biome = { moretrees.rubber_tree_biome = {
place_on = xcompat.materials.dirt_with_grass, place_on = xcompat.materials.dirt_with_grass,
min_elevation = -5, min_elevation = -5,
max_elevation = 5, max_elevation = 8,
spawn_by = {xcompat.materials.water_source}, fill_ratio = ratio_normal,
num_spawn_by = 10,
} }
moretrees.jungletree_biome = { moretrees.jungletree_biome = {
@@ -88,15 +101,15 @@ moretrees.jungletree_biome = {
} }
moretrees.spruce_biome = { moretrees.spruce_biome = {
place_on = xcompat.materials.dirt_with_grass, place_on = coniferous_place_on,
min_elevation = 20, min_elevation = 20,
fill_ratio = ratio_uncommon,
} }
moretrees.cedar_biome = { moretrees.cedar_biome = {
place_on = xcompat.materials.dirt_with_grass, place_on = coniferous_place_on,
min_elevation = 0, --Added to solve an issue where cedar trees would sometimes spawn deep underground min_elevation = 0, --Added to solve an issue where cedar trees would sometimes spawn deep underground
spawn_by = {xcompat.materials.water_source}, fill_ratio = ratio_rare,
num_spawn_by = 5,
} }
@@ -106,7 +119,8 @@ moretrees.poplar_biome = {
min_elevation = 0, min_elevation = 0,
max_elevation = 50, max_elevation = 50,
spawn_by = {xcompat.materials.water_source}, spawn_by = {xcompat.materials.water_source},
num_spawn_by = 1, num_spawn_by = 3,
fill_ratio = ratio_abundant,
} }
-- Spawn an occasional poplar elsewhere. -- Spawn an occasional poplar elsewhere.
@@ -114,17 +128,17 @@ moretrees.poplar_biome_2 = {
place_on = xcompat.materials.dirt_with_grass, place_on = xcompat.materials.dirt_with_grass,
min_elevation = 0, min_elevation = 0,
max_elevation = 50, max_elevation = 50,
spawn_by = {xcompat.materials.water_source}, fill_ratio = ratio_very_rare,
num_spawn_by = 10,
} }
-- Subterranean lakes provide enough water for poplars to grow -- Subterranean lakes provide enough water for poplars to grow
moretrees.poplar_biome_3 = { moretrees.poplar_biome_3 = {
place_on = xcompat.materials.dirt_with_grass, place_on = xcompat.materials.dirt_with_grass,
min_elevation = 0, min_elevation = -50,
max_elevation = 50, max_elevation = 0,
spawn_by = {xcompat.materials.water_source}, spawn_by = {xcompat.materials.water_source},
num_spawn_by = 1, num_spawn_by = 3,
fill_ratio = ratio_abundant,
} }
moretrees.poplar_small_biome = { moretrees.poplar_small_biome = {
@@ -133,6 +147,7 @@ moretrees.poplar_small_biome = {
max_elevation = 50, max_elevation = 50,
spawn_by = {xcompat.materials.water_source}, spawn_by = {xcompat.materials.water_source},
num_spawn_by = 1, num_spawn_by = 1,
fill_ratio = ratio_normal,
} }
moretrees.poplar_small_biome_2 = { moretrees.poplar_small_biome_2 = {
@@ -141,15 +156,18 @@ moretrees.poplar_small_biome_2 = {
max_elevation = 50, max_elevation = 50,
spawn_by = {xcompat.materials.water_source}, spawn_by = {xcompat.materials.water_source},
num_spawn_by = 5, num_spawn_by = 5,
fill_ratio = ratio_abundant,
} }
moretrees.fir_biome = { moretrees.fir_biome = {
place_on = xcompat.materials.dirt_with_grass, place_on = coniferous_place_on,
min_elevation = 25, min_elevation = 25,
fill_ratio = ratio_normal,
} }
moretrees.fir_biome_snow = { moretrees.fir_biome_snow = {
place_on = {"snow:dirt_with_snow", "snow:snow"}, place_on = {"snow:dirt_with_snow", "snow:snow"},
below_nodes = {xcompat.materials.dirt, xcompat.materials.dirt_with_grass, "snow:dirt_with_snow"}, below_nodes = {xcompat.materials.dirt, xcompat.materials.dirt_with_grass, "snow:dirt_with_snow"},
fill_ratio = ratio_normal,
} }

104
init.lua
View File

@@ -153,60 +153,58 @@ function translate_biome_defs(def, treename, index)
return deco_def return deco_def
end end
if moretrees.spawn_enabled then minetest.register_decoration(translate_biome_defs(moretrees.beech_biome, "beech"))
minetest.register_decoration(translate_biome_defs(moretrees.beech_biome, "beech")) minetest.register_decoration(translate_biome_defs(moretrees.apple_tree_biome, "apple_tree"))
minetest.register_decoration(translate_biome_defs(moretrees.apple_tree_biome, "apple_tree")) minetest.register_decoration(translate_biome_defs(moretrees.oak_biome, "oak"))
minetest.register_decoration(translate_biome_defs(moretrees.oak_biome, "oak")) minetest.register_decoration(translate_biome_defs(moretrees.sequoia_biome, "sequoia"))
minetest.register_decoration(translate_biome_defs(moretrees.sequoia_biome, "sequoia")) minetest.register_decoration(translate_biome_defs(moretrees.palm_biome, "palm"))
minetest.register_decoration(translate_biome_defs(moretrees.palm_biome, "palm")) minetest.register_decoration(translate_biome_defs(moretrees.date_palm_biome, "date_palm", 1))
minetest.register_decoration(translate_biome_defs(moretrees.date_palm_biome, "date_palm", 1)) minetest.register_decoration(translate_biome_defs(moretrees.date_palm_biome_2, "date_palm", 2))
minetest.register_decoration(translate_biome_defs(moretrees.date_palm_biome_2, "date_palm", 2)) minetest.register_decoration(translate_biome_defs(moretrees.cedar_biome, "cedar"))
minetest.register_decoration(translate_biome_defs(moretrees.cedar_biome, "cedar")) minetest.register_decoration(translate_biome_defs(moretrees.rubber_tree_biome, "rubber_tree"))
minetest.register_decoration(translate_biome_defs(moretrees.rubber_tree_biome, "rubber_tree")) minetest.register_decoration(translate_biome_defs(moretrees.willow_biome, "willow"))
minetest.register_decoration(translate_biome_defs(moretrees.willow_biome, "willow")) minetest.register_decoration(translate_biome_defs(moretrees.birch_biome, "birch"))
minetest.register_decoration(translate_biome_defs(moretrees.birch_biome, "birch")) minetest.register_decoration(translate_biome_defs(moretrees.spruce_biome, "spruce"))
minetest.register_decoration(translate_biome_defs(moretrees.spruce_biome, "spruce")) if minetest.get_modpath("default") then
if minetest.get_modpath("default") then minetest.register_decoration(translate_biome_defs(moretrees.jungletree_biome, "jungletree"))
minetest.register_decoration(translate_biome_defs(moretrees.jungletree_biome, "jungletree"))
end
minetest.register_decoration(translate_biome_defs(moretrees.fir_biome, "fir", 1))
if minetest.get_modpath("snow") then
minetest.register_decoration(translate_biome_defs(moretrees.fir_biome_snow, "fir", 2))
end
minetest.register_decoration(translate_biome_defs(moretrees.poplar_biome, "poplar", 1))
minetest.register_decoration(translate_biome_defs(moretrees.poplar_biome_2, "poplar", 2))
minetest.register_decoration(translate_biome_defs(moretrees.poplar_biome_3, "poplar", 3))
minetest.register_decoration(translate_biome_defs(moretrees.poplar_small_biome, "poplar_small", 4))
minetest.register_decoration(translate_biome_defs(moretrees.poplar_small_biome_2, "poplar_small", 5))
--[[
this is purposefully wrapped in a on mods loaded callback to that it gets the proper ids
if other mods clear the registered decorations
]]
minetest.register_on_mods_loaded(function()
for k, v in pairs(deco_ids) do
deco_ids[k] = minetest.get_decoration_id(v)
end
minetest.set_gen_notify("decoration", deco_ids)
end)
minetest.register_on_generated(function(minp, maxp, blockseed)
local g = minetest.get_mapgen_object("gennotify")
local locations = {}
for _, id in pairs(deco_ids) do
local deco_locations = g["decoration#" .. id] or {}
for _, pos in pairs(deco_locations) do
locations[#locations+1] = pos
end
end
if #locations == 0 then return end
for _, pos in ipairs(locations) do
local timer = minetest.get_node_timer({x=pos.x, y=pos.y+1, z=pos.z})
timer:start(math.random(2,10))
end
end)
end end
minetest.register_decoration(translate_biome_defs(moretrees.fir_biome, "fir", 1))
if minetest.get_modpath("snow") then
minetest.register_decoration(translate_biome_defs(moretrees.fir_biome_snow, "fir", 2))
end
minetest.register_decoration(translate_biome_defs(moretrees.poplar_biome, "poplar", 1))
minetest.register_decoration(translate_biome_defs(moretrees.poplar_biome_2, "poplar", 2))
minetest.register_decoration(translate_biome_defs(moretrees.poplar_biome_3, "poplar", 3))
minetest.register_decoration(translate_biome_defs(moretrees.poplar_small_biome, "poplar_small", 4))
minetest.register_decoration(translate_biome_defs(moretrees.poplar_small_biome_2, "poplar_small", 5))
--[[
this is purposefully wrapped in a on mods loaded callback to that it gets the proper ids
if other mods clear the registered decorations
]]
minetest.register_on_mods_loaded(function()
for k, v in pairs(deco_ids) do
deco_ids[k] = minetest.get_decoration_id(v)
end
minetest.set_gen_notify("decoration", deco_ids)
end)
minetest.register_on_generated(function(minp, maxp, blockseed)
local g = minetest.get_mapgen_object("gennotify")
local locations = {}
for _, id in pairs(deco_ids) do
local deco_locations = g["decoration#" .. id] or {}
for _, pos in pairs(deco_locations) do
locations[#locations+1] = pos
end
end
if #locations == 0 then return end
for _, pos in ipairs(locations) do
local timer = minetest.get_node_timer({x=pos.x, y=pos.y+1, z=pos.z})
timer:start(math.random(2,10))
end
end)
-- Code to spawn a birch tree -- Code to spawn a birch tree

View File

@@ -1,5 +1,5 @@
# textdomain: moretrees # textdomain: moretrees
# Translation by Xanthin and heavygale # Translation by Xanthin, heavygale and Wuzzy
### cocos_palm.lua ### ### cocos_palm.lua ###
@@ -13,19 +13,19 @@ Acorn Muffin=Eichelmuffin
Acorn Muffin batter=Eichelmuffinteig Acorn Muffin batter=Eichelmuffinteig
Coconut Milk=Kokosnussmilch Coconut Milk=Kokosnussmilch
Date=Dattel Date=Dattel
Date & nut snack=Dattel & Nuss-Snack Date & nut snack=Dattel-und-Nuss-Snack
Date-nut cake=Dattelnusskuchen Date-nut cake=Dattel-Nuss-Kuchen
Date-nut cake batter=Dattelnuss-Kuchenteig Date-nut cake batter=Dattel-Nuss-Kuchenteig
Date-nut energy bar=Dattelnuss-Energieriegel Date-nut energy bar=Dattel-Nuss-Energieriegel
Raw Coconut=Kokosnussfleisch Raw Coconut=Kokosnussfleisch
Roasted Cedar Cone Nuts=Geröstete Zedernzapfenkerne Roasted Cedar Cone Nuts=Geröstete Zedernzapfenkerne
Roasted Fir Cone Nuts=Geroestete Tannenzapfenkerne Roasted Fir Cone Nuts=Geröstete Tannenzapfenkerne
Roasted Spruce Cone Nuts=Geroestete Fichtenzapfenkerne Roasted Spruce Cone Nuts=Geröstete Fichtenzapfenkerne
### date_palm.lua ### ### date_palm.lua ###
Date Flowers=Dattelblüten Date Flowers=Dattelblüten
Date Stem=Dattelstamm Date Stem=Dattelstängel
Dates=Datteln Dates=Datteln
### node_defs.lua ### ### node_defs.lua ###
@@ -33,188 +33,188 @@ Dates=Datteln
@1 (fast growth)=@1 (schnelles Wachstum) @1 (fast growth)=@1 (schnelles Wachstum)
Acorn=Eichel Acorn=Eichel
Apple Tree=Apfelbaum Apple Tree=Apfelbaum
Apple Tree Fence=Apfelbaum-Zaun Apple Tree Fence=Apfelbaumzaun
Apple Tree Fence Gate=Apfelbaum-Tor Apple Tree Fence Gate=Apfelbaumzauntor
Apple Tree Fence Rail=Apfelbaum-Schiene Apple Tree Fence Rail=Apfelbaumzaungeländer
Apple Tree Leaves=Apfelbaumlaub Apple Tree Leaves=Apfelbaumblätter
Apple Tree Planks=Apfelbaumbretter Apple Tree Planks=Apfelbaumplanken
Apple Tree Planks Slab=Apfelbaumplatte Apple Tree Planks Slab=Apfelbaumplankenplatte
Apple Tree Planks Stair=Apfelbaumstufe Apple Tree Planks Stair=Apfelbaumplankentreppe
Apple Tree Sapling=Apfelbaumsetzling Apple Tree Sapling=Apfelbaumsetzling
Apple Tree Trunk=Apfelbaumstamm Apple Tree Trunk=Apfelbaumstamm
Apple Tree Trunk Slab=Apfelbaumstammplatte Apple Tree Trunk Slab=Apfelbaumstammplatte
Apple Tree Trunk Stair=Apfelbaumstammstufe Apple Tree Trunk Stair=Apfelbaumstammtreppe
Beech Tree=Buche Beech Tree=Buche
Beech Tree Fence=Buchenholz-Zaun Beech Tree Fence=Buchenholzzaun
Beech Tree Fence Gate=Buchenholz-Tor Beech Tree Fence Gate=Buchenholzzaunzor
Beech Tree Fence Rail=Buchenholz-Schiene Beech Tree Fence Rail=Buchenholzzaungeländer
Beech Tree Leaves=Buchenlaub Beech Tree Leaves=Buchenblätter
Beech Tree Planks=Buchenholzbretter Beech Tree Planks=Buchenholzplanken
Beech Tree Planks Slab=Buchenholzplatte Beech Tree Planks Slab=Buchenholzplatte
Beech Tree Planks Stair=Buchenholzstufe Beech Tree Planks Stair=Buchenholztreppe
Beech Tree Sapling=Buchesetzling Beech Tree Sapling=Buchensetzling
Beech Tree Trunk=Buchenstamm Beech Tree Trunk=Buchenstamm
Beech Tree Trunk Slab=Buchenstammplatte Beech Tree Trunk Slab=Buchenstammplatte
Beech Tree Trunk Stair=Buchenstammstufe Beech Tree Trunk Stair=Buchenstammtreppe
Birch Tree=Birke Birch Tree=Birke
Birch Tree Fence=Birkenholz-Zaun Birch Tree Fence=Birkenholzzaun
Birch Tree Fence Gate=Birkenholz-Tor Birch Tree Fence Gate=Birkenholzzauntor
Birch Tree Fence Rail=Birkenholz-Schiene Birch Tree Fence Rail=Birkenholzzaungeländer
Birch Tree Leaves=Birkenlaub Birch Tree Leaves=Birkenblätter
Birch Tree Planks=Birkenbretter Birch Tree Planks=Birkenplanken
Birch Tree Planks Slab=Birkenholzplatte Birch Tree Planks Slab=Birkenholzplatte
Birch Tree Planks Stair=Birkeholzstufe Birch Tree Planks Stair=Birkeholztreppe
Birch Tree Sapling=Birkensetzling Birch Tree Sapling=Birkensetzling
Birch Tree Trunk=Birkenstamm Birch Tree Trunk=Birkenstamm
Birch Tree Trunk Slab=Birkenstammplatte Birch Tree Trunk Slab=Birkenstammplatte
Birch Tree Trunk Stair=Birkenstammstufe Birch Tree Trunk Stair=Birkenstammtreppe
Cedar Cone=Zedernzapfen Cedar Cone=Zedernzapfen
Cedar Tree=Zeder Cedar Tree=Zeder
Cedar Tree Fence=Zedernholz-Zaun Cedar Tree Fence=Zedernholzzaun
Cedar Tree Fence Gate=Zedernholz-Tor Cedar Tree Fence Gate=Zedernholzzauntor
Cedar Tree Fence Rail=Zedernholz-Schiene Cedar Tree Fence Rail=Zedernholzzaungeländer
Cedar Tree Leaves=Zederblätter Cedar Tree Leaves=Zederblätter
Cedar Tree Planks=Zedernholzbretter Cedar Tree Planks=Zedernholzplanken
Cedar Tree Planks Slab=Zedernholzplatte Cedar Tree Planks Slab=Zedernholzplatte
Cedar Tree Planks Stair=Zedernholzstufe Cedar Tree Planks Stair=Zedernholztreppe
Cedar Tree Sapling=Zedersetzling Cedar Tree Sapling=Zedersetzling
Cedar Tree Trunk=Zederstamm Cedar Tree Trunk=Zederstamm
Cedar Tree Trunk Slab=Zederstammplatte Cedar Tree Trunk Slab=Zederstammplatte
Cedar Tree Trunk Stair=Zederstamm Stufe Cedar Tree Trunk Stair=Zederstammtreppe
Date Palm Tree=Dattelpalme Date Palm Tree=Dattelpalme
Date Palm Tree Fence=Dattelpalmen-Zaun Date Palm Tree Fence=Dattelpalmenzaun
Date Palm Tree Fence Gate=Dattelpalmen-Tor Date Palm Tree Fence Gate=Dattelpalmenzauntor
Date Palm Tree Fence Rail=Dattelpalmen-Schiene Date Palm Tree Fence Rail=Dattelpalmenzaungeländer
Date Palm Tree Leaves=Dattelpalmenblätter Date Palm Tree Leaves=Dattelpalmblätter
Date Palm Tree Planks=Dattelpalmenbretter Date Palm Tree Planks=Dattelpalmenplanken
Date Palm Tree Planks Slab=Dattelpalmenplatte Date Palm Tree Planks Slab=Dattelpalmenplatte
Date Palm Tree Planks Stair=Dattelpalmenstufe Date Palm Tree Planks Stair=Dattelpalmentreppe
Date Palm Tree Sapling=Dattelpalmensetzling Date Palm Tree Sapling=Dattelpalmensetzling
Date Palm Tree Trunk=Dattelpalmenstamm Date Palm Tree Trunk=Dattelpalmenstamm
Date Palm Tree Trunk Slab=Dattelpalmenstammplatte Date Palm Tree Trunk Slab=Dattelpalmenstammplatte
Date Palm Tree Trunk Stair=Dattelpalmenstammstufe Date Palm Tree Trunk Stair=Dattelpalmenstammtreppe
Douglas Fir=Douglasie Douglas Fir=Douglasie
Douglas Fir Fence=Douglasien-Zaun Douglas Fir Fence=Douglasienzaun
Douglas Fir Fence Gate=Douglasien-Tor Douglas Fir Fence Gate=Douglasienzauntor
Douglas Fir Fence Rail=Douglasien-Schiene Douglas Fir Fence Rail=Douglasienzaungeländer
Douglas Fir Leaves=Douglasiennadeln Douglas Fir Leaves=Douglasiennadeln
Douglas Fir Leaves (Bright)=Douglasiennadeln (breit) Douglas Fir Leaves (Bright)=Douglasiennadeln (hell)
Douglas Fir Planks=Douglasienbretter Douglas Fir Planks=Douglasienplanken
Douglas Fir Planks Slab=Douglasienplatte Douglas Fir Planks Slab=Douglasienplatte
Douglas Fir Planks Stair=Douglasienstufe Douglas Fir Planks Stair=Douglasientreppe
Douglas Fir Sapling=Douglasiensetzling Douglas Fir Sapling=Douglasiensetzling
Douglas Fir Trunk=Douglasienstamm Douglas Fir Trunk=Douglasienstamm
Douglas Fir Trunk Slab=Douglasienstammplatte Douglas Fir Trunk Slab=Douglasienstammplatte
Douglas Fir Trunk Stair=Douglasienstammstufe Douglas Fir Trunk Stair=Douglasienstammtreppe
Fir Cone=Tannenzapfen Fir Cone=Tannenzapfen
Giant Sequoia=Riesenmammutbaum Giant Sequoia=Riesenmammutbaum
Giant Sequoia Fence=Riesenmammutbaum-Zaun Giant Sequoia Fence=Riesenmammutbaumzaun
Giant Sequoia Fence Gate=Riesenmammutbaum-Tor Giant Sequoia Fence Gate=Riesenmammutbaumzauntor
Giant Sequoia Fence Rail=Riesenmammutbaum-Schiene Giant Sequoia Fence Rail=Riesenmammutbaumzaungeländer
Giant Sequoia Leaves=Riesenmammutbaumlaub Giant Sequoia Leaves=Riesenmammutbaumblätter
Giant Sequoia Planks=Riesenmammutbaumbretter Giant Sequoia Planks=Riesenmammutbaumplanken
Giant Sequoia Planks Slab=Riesenmammutbaumplatte Giant Sequoia Planks Slab=Riesenmammutbaumplatte
Giant Sequoia Planks Stair=Riesenmammutbaumstufe Giant Sequoia Planks Stair=Riesenmammutbaumtreppe
Giant Sequoia Sapling=Riesenmammutbaumsetzling Giant Sequoia Sapling=Riesenmammutbaumsetzling
Giant Sequoia Trunk=Riesenmammutbaumstamm Giant Sequoia Trunk=Riesenmammutbaumstamm
Giant Sequoia Trunk Slab=Riesenmammutbaumstammplatte Giant Sequoia Trunk Slab=Riesenmammutbaumstammplatte
Giant Sequoia Trunk Stair=Riesenmammutbaumstammstufe Giant Sequoia Trunk Stair=Riesenmammutbaumstammtreppe
Jungle Tree=Tropenbaum Jungle Tree=Dschungelbaum
Jungle Tree Fence=Tropenbaum-Zaun Jungle Tree Fence=Dschungelbaumzaun
Jungle Tree Fence Gate=Tropenbaum-Tor Jungle Tree Fence Gate=Dschungelbaumzauntor
Jungle Tree Fence Rail=Tropenbaum-Schiene Jungle Tree Fence Rail=Dschungelbaumzaungeländer
Jungle Tree Leaves=Tropenbaumlaub Jungle Tree Leaves=Dschungelbaumblätter
Jungle Tree Leaves (@1)=Tropenbaumlaub (@1) Jungle Tree Leaves (@1)=Dschungelbaumblätter (@1)
Jungle Tree Planks=Tropenholzbretter Jungle Tree Planks=Dschungelholzplanken
Jungle Tree Planks Slab=Tropenholzplatte Jungle Tree Planks Slab=Dschungelholzplatte
Jungle Tree Planks Stair=Tropenholzstufe Jungle Tree Planks Stair=Dschungelholztreppe
Jungle Tree Sapling=Tropenbaumsetzling Jungle Tree Sapling=Dschungelbaumsetzling
Jungle Tree Trunk=Tropenbaumstamm Jungle Tree Trunk=Dschungelbaumstamm
Jungle Tree Trunk Slab=Tropenbaumstammplatte Jungle Tree Trunk Slab=Dschungelbaumstammplatte
Jungle Tree Trunk Stair=Tropenbaumstammstufe Jungle Tree Trunk Stair=Dschungelbaumstammtreppe
Oak Tree=Eiche Oak Tree=Eiche
Oak Tree Fence=Eichenholz-Zaun Oak Tree Fence=Eichenholzzaun
Oak Tree Fence Gate=Eichenholz-Tor Oak Tree Fence Gate=Eichenholzzauntor
Oak Tree Fence Rail=Eichenholz-Schiene Oak Tree Fence Rail=Eichenholzzaungeländer
Oak Tree Leaves=Eichenlaub Oak Tree Leaves=Eichenblätter
Oak Tree Planks=Eichenbretter Oak Tree Planks=Eichenplanken
Oak Tree Planks Slab=Eichenholzplatte Oak Tree Planks Slab=Eichenholzplatte
Oak Tree Planks Stair=Eichenholzstufe Oak Tree Planks Stair=Eichenholztreppe
Oak Tree Sapling=Eichensetzling Oak Tree Sapling=Eichensetzling
Oak Tree Trunk=Eichenstamm Oak Tree Trunk=Eichenstamm
Oak Tree Trunk Slab=Eichenstammplatte Oak Tree Trunk Slab=Eichenstammplatte
Oak Tree Trunk Stair=Eichenstammstufe Oak Tree Trunk Stair=Eichenstammtreppe
Palm Tree=Palme Palm Tree=Palme
Palm Tree Fence=Plamenholz-Zaun Palm Tree Fence=Palmholzzaun
Palm Tree Fence Gate=Plamenholz-Tor Palm Tree Fence Gate=Palmholzzauntor
Palm Tree Fence Rail=Plamenholz-Schiene Palm Tree Fence Rail=Palmholzzaungeländer
Palm Tree Leaves=Palmenlaub Palm Tree Leaves=Palmblätter
Palm Tree Planks=Palmenbretter Palm Tree Planks=Palmenplanken
Palm Tree Planks Slab=Plamenholzplatte Palm Tree Planks Slab=Palmholzplatte
Palm Tree Planks Stair=Plamenholzstufe Palm Tree Planks Stair=Palmholztreppe
Palm Tree Sapling=Palmensetzling Palm Tree Sapling=Palmensetzling
Palm Tree Trunk=Palmenstamm Palm Tree Trunk=Palmenstamm
Palm Tree Trunk Slab=Palmenstammplatte Palm Tree Trunk Slab=Palmenstammplatte
Palm Tree Trunk Stair=Palmenstammstufe Palm Tree Trunk Stair=Palmenstammtreppe
Poplar Tree=Pappel Poplar Tree=Pappel
Poplar Tree Fence=Pappelholz-Zaun Poplar Tree Fence=Pappelholzzaun
Poplar Tree Fence Gate=Pappelholz-Tor Poplar Tree Fence Gate=Pappelholzzauntor
Poplar Tree Fence Rail=Pappelholz-Schiene Poplar Tree Fence Rail=Pappelholzzaungeländer
Poplar Tree Leaves=Pappelblätter Poplar Tree Leaves=Pappelblätter
Poplar Tree Planks=Pappelholzbretter Poplar Tree Planks=Pappelholzplanken
Poplar Tree Planks Slab=Pappelholzsplatte Poplar Tree Planks Slab=Pappelholzsplatte
Poplar Tree Planks Stair=Pappelholzstufe Poplar Tree Planks Stair=Pappelholztreppe
Poplar Tree Sapling=Pappelsetzling Poplar Tree Sapling=Pappelsetzling
Poplar Tree Trunk=Pappelstamm Poplar Tree Trunk=Pappelstamm
Poplar Tree Trunk Slab=Pappelstammplatte Poplar Tree Trunk Slab=Pappelstammplatte
Poplar Tree Trunk Stair=Pappelstammstufe Poplar Tree Trunk Stair=Pappelstammtreppe
Red=rot Red=rot
Rubber Tree=Gummibaum Rubber Tree=Gummibaum
Rubber Tree Fence=Gummibaum-Zaun Rubber Tree Fence=Gummibaumzaun
Rubber Tree Fence Gate=Gummibaum-Tor Rubber Tree Fence Gate=Gummibaumzauntor
Rubber Tree Fence Rail=Gummibaum-Schiene Rubber Tree Fence Rail=Gummibaumzaungeländer
Rubber Tree Leaves=Gummibaumlaub Rubber Tree Leaves=Gummibaumblätter
Rubber Tree Planks=Gummibaumbretter Rubber Tree Planks=Gummibaumplanken
Rubber Tree Planks Slab=Gummibaumplatte Rubber Tree Planks Slab=Gummibaumplatte
Rubber Tree Planks Stair=Gummibaumstufe Rubber Tree Planks Stair=Gummibaumtreppe
Rubber Tree Sapling=Gummibaumsetzling Rubber Tree Sapling=Gummibaumsetzling
Rubber Tree Trunk=Gummibaumstamm Rubber Tree Trunk=Gummibaumstamm
Rubber Tree Trunk (Empty)=Gummibaumstamm (leer) Rubber Tree Trunk (Empty)=Gummibaumstamm (leer)
Rubber Tree Trunk Slab=Gummibaumstammplatte Rubber Tree Trunk Slab=Gummibaumstammplatte
Rubber Tree Trunk Stair=Gummibaumstammstufe Rubber Tree Trunk Stair=Gummibaumstammtreppe
Small poplar Tree Sapling=Kleiner Pappelsetzling Small poplar Tree Sapling=Kleiner Pappelsetzling
Spruce Cone=Fichtenzapfen Spruce Cone=Fichtenzapfen
Spruce Tree=Fichte Spruce Tree=Fichte
Spruce Tree Fence=Fichtenholz-Zaun Spruce Tree Fence=Fichtenholzzaun
Spruce Tree Fence Gate=Fichtenholz-Zaun Spruce Tree Fence Gate=Fichtenholzzaun
Spruce Tree Fence Rail=Fichtenholz-Schiene Spruce Tree Fence Rail=Fichtenholzzaungeländer
Spruce Tree Leaves=Fichtennadeln Spruce Tree Leaves=Fichtennadeln
Spruce Tree Planks=Fichtenbretter Spruce Tree Planks=Fichtenplanken
Spruce Tree Planks Slab=Fichtenholzplatte Spruce Tree Planks Slab=Fichtenholzplatte
Spruce Tree Planks Stair=Fichtenholzstufe Spruce Tree Planks Stair=Fichtenholztreppe
Spruce Tree Sapling=Fichtensetzling Spruce Tree Sapling=Fichtensetzling
Spruce Tree Trunk=Fichtenstamm Spruce Tree Trunk=Fichtenstamm
Spruce Tree Trunk Slab=Fichtenstammplatte Spruce Tree Trunk Slab=Fichtenstammplatte
Spruce Tree Trunk Stair=Fichtenstammstufe Spruce Tree Trunk Stair=Fichtenstammtreppe
Willow Tree=Weide Willow Tree=Weide
Willow Tree Fence=Weidenholz-Zaun Willow Tree Fence=Weidenholzzaun
Willow Tree Fence Gate=Weidenholz-Tor Willow Tree Fence Gate=Weidenholzzauntor
Willow Tree Fence Rail=Weidenholz-Schiene Willow Tree Fence Rail=Weidenholzzaungeländer
Willow Tree Leaves=Weidenlaub Willow Tree Leaves=Weidenblätter
Willow Tree Planks=Weidenbretter Willow Tree Planks=Weidenplanken
Willow Tree Planks Slab=Weidenholzplatte Willow Tree Planks Slab=Weidenholzplatte
Willow Tree Planks Stair=Weidenholzstufe Willow Tree Planks Stair=Weidenholztreppe
Willow Tree Sapling=Weidensetzling Willow Tree Sapling=Weidensetzling
Willow Tree Trunk=Weidenstamm Willow Tree Trunk=Weidenstamm
Willow Tree Trunk Slab=Weidenstammplatte Willow Tree Trunk Slab=Weidenstammplatte
Willow Tree Trunk Stair=Weidenstammstufe Willow Tree Trunk Stair=Weidenstammtreppe
Yellow=gelb Yellow=gelb
# init.lua # init.lua
Sapling=Setzling Sapling=Setzling
Tree=Baum Tree=Baum
Wooden Planks=Holzbretter Wooden Planks=Holzplanken
Leaves=Blätter Leaves=Blätter
Wooden Fence=Holzzaun Wooden Fence=Holzzaun
Wooden Fence Rail=Holzschiene Wooden Fence Rail=Holzzaungeländer
Wooden Fence Gate=Holztor Wooden Fence Gate=Holzzauntor

View File

@@ -218,7 +218,6 @@ local dirs2 = { 12, 9, 18, 7, 12 }
local moretrees_new_leaves_drawtype = "allfaces_optional" local moretrees_new_leaves_drawtype = "allfaces_optional"
local moretrees_plantlike_leaves_visual_scale = 1 local moretrees_plantlike_leaves_visual_scale = 1
local moretrees_new_leaves_waving = 1
if moretrees.plantlike_leaves then if moretrees.plantlike_leaves then
moretrees_new_leaves_drawtype = "plantlike" moretrees_new_leaves_drawtype = "plantlike"
@@ -299,9 +298,12 @@ for i in ipairs(moretrees.treelist) do
end end
local moretrees_leaves_inventory_image = nil local moretrees_leaves_inventory_image = nil
local moretrees_new_leaves_waving = nil
if moretrees.plantlike_leaves then if moretrees.plantlike_leaves then
moretrees_leaves_inventory_image = minetest.inventorycube("moretrees_"..treename.."_leaves.png") moretrees_leaves_inventory_image = minetest.inventorycube("moretrees_"..treename.."_leaves.png")
else
moretrees_new_leaves_waving = 1
end end
minetest.register_node("moretrees:"..treename.."_leaves", { minetest.register_node("moretrees:"..treename.."_leaves", {
@@ -433,7 +435,6 @@ for i in ipairs(moretrees.treelist) do
tiles = {split_tn[2] and split_tn[2]=="small" and "moretrees_" .. treename .. "_sapling.png" or saptex}, tiles = {split_tn[2] and split_tn[2]=="small" and "moretrees_" .. treename .. "_sapling.png" or saptex},
inventory_image = split_tn[2] and split_tn[2]=="small" and "moretrees_" .. treename .. "_sapling.png" or saptex, inventory_image = split_tn[2] and split_tn[2]=="small" and "moretrees_" .. treename .. "_sapling.png" or saptex,
paramtype = "light", paramtype = "light",
paramtype2 = "waving",
walkable = false, walkable = false,
is_ground_content = true, is_ground_content = true,
selection_box = { selection_box = {
@@ -492,7 +493,6 @@ for i in ipairs(moretrees.treelist) do
tiles = {split_tn[2] and split_tn[2]=="small" and "moretrees_" .. treename .. "_sapling.png" or saptex,}, tiles = {split_tn[2] and split_tn[2]=="small" and "moretrees_" .. treename .. "_sapling.png" or saptex,},
inventory_image = split_tn[2] and split_tn[2]=="small" and "moretrees_" .. treename .. "_sapling.png" or saptex, inventory_image = split_tn[2] and split_tn[2]=="small" and "moretrees_" .. treename .. "_sapling.png" or saptex,
paramtype = "light", paramtype = "light",
paramtype2 = "waving",
walkable = false, walkable = false,
is_ground_content = true, is_ground_content = true,
selection_box = { selection_box = {
@@ -615,6 +615,8 @@ for color = 1, #jungleleaves do
if moretrees.plantlike_leaves then if moretrees.plantlike_leaves then
moretrees_leaves_inventory_image = minetest.inventorycube("moretrees_jungletree_leaves_"..jungleleaves[color]..".png") moretrees_leaves_inventory_image = minetest.inventorycube("moretrees_jungletree_leaves_"..jungleleaves[color]..".png")
else
moretrees_new_leaves_waving = 1
end end
minetest.register_node(leave_name, { minetest.register_node(leave_name, {

View File

@@ -13,8 +13,7 @@ local dirt_surfaces = {
["woodsoils:dirt_with_leaves_1"] = true, ["woodsoils:dirt_with_leaves_1"] = true,
["woodsoils:dirt_with_leaves_2"] = true, ["woodsoils:dirt_with_leaves_2"] = true,
["woodsoils:grass_with_leaves_1"] = true, ["woodsoils:grass_with_leaves_1"] = true,
["woodsoils:grass_with_leaves_2"] = true, ["woodsoils:grass_with_leaves_2"] = true
["meditteranean_biome:dirt_with_mediterranean_grass"] = true
} }
local conifer_surfaces = { local conifer_surfaces = {
@@ -28,8 +27,7 @@ local conifer_surfaces = {
["woodsoils:dirt_with_leaves_2"] = true, ["woodsoils:dirt_with_leaves_2"] = true,
["woodsoils:grass_with_leaves_1"] = true, ["woodsoils:grass_with_leaves_1"] = true,
["woodsoils:grass_with_leaves_2"] = true, ["woodsoils:grass_with_leaves_2"] = true,
["default:dirt_with_snow"] = true, ["default:dirt_with_snow"] = true
["meditteranean_biome:dirt_with_mediterranean_grass"] = true
} }
local sand_surfaces = { local sand_surfaces = {
@@ -37,7 +35,6 @@ local sand_surfaces = {
[xcompat.materials.sand] = true, [xcompat.materials.sand] = true,
[xcompat.materials.desert_sand] = true, [xcompat.materials.desert_sand] = true,
["cottages:loam"] = true, ["cottages:loam"] = true,
["darkage:mud"] = true,
-- note, no silver sand here. -- note, no silver sand here.
-- too cold for a palm, too... well... sandy for anything else. -- too cold for a palm, too... well... sandy for anything else.
} }

View File

@@ -2,7 +2,6 @@ local stg = minetest.settings
--spawns tree on mapgen as saplings, legacy setting --spawns tree on mapgen as saplings, legacy setting
moretrees.spawn_saplings = stg:get_bool("moretrees.spawn_saplings", true) moretrees.spawn_saplings = stg:get_bool("moretrees.spawn_saplings", true)
moretrees.spawn_enabled = stg:get_bool("moretrees.spawn_enabled", true)
--enable plantlike drawtype for leaves --enable plantlike drawtype for leaves
moretrees.plantlike_leaves = stg:get_bool("moretrees.plantlike_leaves", false) moretrees.plantlike_leaves = stg:get_bool("moretrees.plantlike_leaves", false)
@@ -55,4 +54,4 @@ if type(minetest.get_game_info) == "function" then
moretrees.enable_planks = minetest.get_game_info().id~="voxelgarden" moretrees.enable_planks = minetest.get_game_info().id~="voxelgarden"
else else
moretrees.enable_planks = true moretrees.enable_planks = true
end end