forked from mtcontrib/moretrees
add acacia trees
grows in the desert near the edges of the biome
This commit is contained in:
parent
652baa7b32
commit
ff0df53829
@ -90,6 +90,18 @@ moretrees.willow_biome = {
|
|||||||
max_count = 5,
|
max_count = 5,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
moretrees.acacia_biome = {
|
||||||
|
surface = { "default:dirt_with_grass", "default:desert_sand" },
|
||||||
|
avoid_nodes = moretrees.avoidnodes,
|
||||||
|
avoid_radius = 15,
|
||||||
|
seed_diff = 1,
|
||||||
|
rarity = 50,
|
||||||
|
max_count = 15,
|
||||||
|
plantlife_limit = -1,
|
||||||
|
humidity_min = 0.3,
|
||||||
|
humidity_max = 0,
|
||||||
|
}
|
||||||
|
|
||||||
moretrees.rubber_tree_biome = {
|
moretrees.rubber_tree_biome = {
|
||||||
surface = "default:dirt_with_grass",
|
surface = "default:dirt_with_grass",
|
||||||
avoid_nodes = moretrees.avoidnodes,
|
avoid_nodes = moretrees.avoidnodes,
|
||||||
@ -168,3 +180,4 @@ moretrees.fir_biome_snow = {
|
|||||||
delete_above = true,
|
delete_above = true,
|
||||||
spawn_replace_node = true
|
spawn_replace_node = true
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -9,6 +9,7 @@ moretrees.enable_palm = true
|
|||||||
moretrees.enable_pine = true
|
moretrees.enable_pine = true
|
||||||
moretrees.enable_rubber_tree = true
|
moretrees.enable_rubber_tree = true
|
||||||
moretrees.enable_willow = true
|
moretrees.enable_willow = true
|
||||||
|
moretrees.enable_acacia = true
|
||||||
moretrees.enable_birch = true
|
moretrees.enable_birch = true
|
||||||
moretrees.enable_spruce = true
|
moretrees.enable_spruce = true
|
||||||
moretrees.enable_jungle_tree = true
|
moretrees.enable_jungle_tree = true
|
||||||
|
6
init.lua
6
init.lua
@ -92,6 +92,7 @@ if moretrees.spawn_saplings then
|
|||||||
moretrees.spawn_pine_object = "moretrees:pine_sapling_ongen"
|
moretrees.spawn_pine_object = "moretrees:pine_sapling_ongen"
|
||||||
moretrees.spawn_rubber_tree_object = "moretrees:rubber_tree_sapling_ongen"
|
moretrees.spawn_rubber_tree_object = "moretrees:rubber_tree_sapling_ongen"
|
||||||
moretrees.spawn_willow_object = "moretrees:willow_sapling_ongen"
|
moretrees.spawn_willow_object = "moretrees:willow_sapling_ongen"
|
||||||
|
moretrees.spawn_acacia_object = "moretrees:acacia_sapling_ongen"
|
||||||
moretrees.spawn_birch_object = "moretrees:birch_sapling_ongen"
|
moretrees.spawn_birch_object = "moretrees:birch_sapling_ongen"
|
||||||
moretrees.spawn_spruce_object = "moretrees:spruce_sapling_ongen"
|
moretrees.spawn_spruce_object = "moretrees:spruce_sapling_ongen"
|
||||||
moretrees.spawn_jungletree_object = "moretrees:jungletree_sapling_ongen"
|
moretrees.spawn_jungletree_object = "moretrees:jungletree_sapling_ongen"
|
||||||
@ -106,6 +107,7 @@ else
|
|||||||
moretrees.spawn_pine_object = moretrees.pine_model
|
moretrees.spawn_pine_object = moretrees.pine_model
|
||||||
moretrees.spawn_rubber_tree_object = moretrees.rubber_tree_model
|
moretrees.spawn_rubber_tree_object = moretrees.rubber_tree_model
|
||||||
moretrees.spawn_willow_object = moretrees.willow_model
|
moretrees.spawn_willow_object = moretrees.willow_model
|
||||||
|
moretrees.spawn_acacia_object = moretrees.acacia_model
|
||||||
moretrees.spawn_birch_object = "moretrees:grow_birch"
|
moretrees.spawn_birch_object = "moretrees:grow_birch"
|
||||||
moretrees.spawn_spruce_object = "moretrees:grow_spruce"
|
moretrees.spawn_spruce_object = "moretrees:grow_spruce"
|
||||||
moretrees.spawn_jungletree_object = "moretrees:grow_jungletree"
|
moretrees.spawn_jungletree_object = "moretrees:grow_jungletree"
|
||||||
@ -146,6 +148,10 @@ if moretrees.enable_willow then
|
|||||||
plantslib:register_generate_plant(moretrees.willow_biome, moretrees.spawn_willow_object)
|
plantslib:register_generate_plant(moretrees.willow_biome, moretrees.spawn_willow_object)
|
||||||
end
|
end
|
||||||
|
|
||||||
|
if moretrees.enable_acacia then
|
||||||
|
plantslib:register_generate_plant(moretrees.acacia_biome, moretrees.spawn_acacia_object)
|
||||||
|
end
|
||||||
|
|
||||||
if moretrees.enable_birch then
|
if moretrees.enable_birch then
|
||||||
plantslib:register_generate_plant(moretrees.birch_biome, moretrees.spawn_birch_object)
|
plantslib:register_generate_plant(moretrees.birch_biome, moretrees.spawn_birch_object)
|
||||||
end
|
end
|
||||||
|
@ -19,6 +19,7 @@ moretrees.treelist = {
|
|||||||
{"spruce", "Spruce Tree", "spruce_cone", "Spruce Cone", {-0.2, -0.5, -0.2, 0.2, 0, 0.2}, 0.8 },
|
{"spruce", "Spruce Tree", "spruce_cone", "Spruce Cone", {-0.2, -0.5, -0.2, 0.2, 0, 0.2}, 0.8 },
|
||||||
{"pine", "Pine Tree", "pine_cone", "Pine Cone", {-0.2, -0.5, -0.2, 0.2, 0, 0.2}, 0.8 },
|
{"pine", "Pine Tree", "pine_cone", "Pine Cone", {-0.2, -0.5, -0.2, 0.2, 0, 0.2}, 0.8 },
|
||||||
{"willow", "Willow Tree"},
|
{"willow", "Willow Tree"},
|
||||||
|
{"acacia", "Acacia Tree"},
|
||||||
{"rubber_tree", "Rubber Tree"},
|
{"rubber_tree", "Rubber Tree"},
|
||||||
{"jungletree", "Jungle Tree"},
|
{"jungletree", "Jungle Tree"},
|
||||||
{"fir", "Douglas Fir", "fir_cone", "Fir Cone", {-0.2, -0.5, -0.2, 0.2, 0, 0.2}, 0.8 },
|
{"fir", "Douglas Fir", "fir_cone", "Fir Cone", {-0.2, -0.5, -0.2, 0.2, 0, 0.2}, 0.8 },
|
||||||
|
BIN
textures/moretrees_acacia_leaves.png
Normal file
BIN
textures/moretrees_acacia_leaves.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 340 B |
BIN
textures/moretrees_acacia_sapling.png
Normal file
BIN
textures/moretrees_acacia_sapling.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 359 B |
BIN
textures/moretrees_acacia_trunk.png
Normal file
BIN
textures/moretrees_acacia_trunk.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 682 B |
BIN
textures/moretrees_acacia_trunk_top.png
Normal file
BIN
textures/moretrees_acacia_trunk_top.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 731 B |
BIN
textures/moretrees_acacia_wood.png
Normal file
BIN
textures/moretrees_acacia_wood.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 364 B |
@ -9,8 +9,8 @@ moretrees.beech_model={
|
|||||||
angle=30,
|
angle=30,
|
||||||
iterations=2,
|
iterations=2,
|
||||||
random_level=0,
|
random_level=0,
|
||||||
trunk_type="single";
|
trunk_type="single",
|
||||||
thin_branches=true;
|
thin_branches=true
|
||||||
}
|
}
|
||||||
|
|
||||||
moretrees.apple_tree_model={
|
moretrees.apple_tree_model={
|
||||||
@ -23,7 +23,7 @@ moretrees.apple_tree_model={
|
|||||||
iterations=2,
|
iterations=2,
|
||||||
random_level=0,
|
random_level=0,
|
||||||
trunk_type="single",
|
trunk_type="single",
|
||||||
thin_branches=true;
|
thin_branches=true,
|
||||||
fruit="default:apple",
|
fruit="default:apple",
|
||||||
fruit_chance=15,
|
fruit_chance=15,
|
||||||
}
|
}
|
||||||
@ -37,8 +37,8 @@ moretrees.oak_model={
|
|||||||
angle=30,
|
angle=30,
|
||||||
iterations=5,
|
iterations=5,
|
||||||
random_level=2,
|
random_level=2,
|
||||||
trunk_type="crossed";
|
trunk_type="crossed",
|
||||||
thin_branches=false;
|
thin_branches=false,
|
||||||
fruit="moretrees:acorn",
|
fruit="moretrees:acorn",
|
||||||
fruit_chance=3,
|
fruit_chance=3,
|
||||||
}
|
}
|
||||||
@ -169,6 +169,37 @@ moretrees.willow_model={
|
|||||||
thin_branches=true
|
thin_branches=true
|
||||||
}
|
}
|
||||||
|
|
||||||
|
moretrees.acacia_model={
|
||||||
|
axiom="FFFFFFccccA",
|
||||||
|
rules_a = "[B]//[B]//[B]//[B]",
|
||||||
|
rules_b = "&TTTT&TT^^G&&----GGGGGG++GGG++" -- line up with the "canvas" edge
|
||||||
|
.."fffffffGG++G++" -- first layer, drawn in a zig-zag raster pattern
|
||||||
|
.."Gffffffff--G--"
|
||||||
|
.."ffffffffG++G++"
|
||||||
|
.."fffffffff--G--"
|
||||||
|
.."fffffffff++G++"
|
||||||
|
.."fffffffff--G--"
|
||||||
|
.."ffffffffG++G++"
|
||||||
|
.."Gffffffff--G--"
|
||||||
|
.."fffffffGG"
|
||||||
|
.."^^G&&----GGGGGGG++GGGGGG++" -- re-align to second layer canvas edge
|
||||||
|
.."ffffGGG++G++" -- second layer
|
||||||
|
.."GGfffff--G--"
|
||||||
|
.."ffffffG++G++"
|
||||||
|
.."fffffff--G--"
|
||||||
|
.."ffffffG++G++"
|
||||||
|
.."GGfffff--G--"
|
||||||
|
.."ffffGGG",
|
||||||
|
rules_c = "/",
|
||||||
|
trunk="moretrees:acacia_trunk",
|
||||||
|
leaves="moretrees:acacia_leaves",
|
||||||
|
angle=45,
|
||||||
|
iterations=3,
|
||||||
|
random_level=0,
|
||||||
|
trunk_type="single",
|
||||||
|
thin_branches=true,
|
||||||
|
}
|
||||||
|
|
||||||
moretrees.rubber_tree_model={
|
moretrees.rubber_tree_model={
|
||||||
axiom="FFFFA",
|
axiom="FFFFA",
|
||||||
rules_a="[&FFBFA]////[&BFFFA]////[&FBFFA]",
|
rules_a="[&FFBFA]////[&BFFFA]////[&FBFFA]",
|
||||||
|
Loading…
Reference in New Issue
Block a user