mirror of
https://github.com/mt-mods/moretrees.git
synced 2024-12-25 18:20:22 +01:00
Added fir cones, more tweaks to weed out old conifer/jungletree refs.
Changed fir models so that they include the new cones.
This commit is contained in:
parent
466fb89ec1
commit
71e0fce57a
@ -156,7 +156,7 @@ moretrees.jungletree_biome = {
|
|||||||
rarity = 50,
|
rarity = 50,
|
||||||
}
|
}
|
||||||
|
|
||||||
moretrees.conifer_biome = {
|
moretrees.fir_biome = {
|
||||||
surface = "default:dirt_with_grass",
|
surface = "default:dirt_with_grass",
|
||||||
avoid_nodes = moretrees.avoidnodes,
|
avoid_nodes = moretrees.avoidnodes,
|
||||||
avoid_radius = 10,
|
avoid_radius = 10,
|
||||||
|
20
init.lua
20
init.lua
@ -47,7 +47,7 @@ plantslib:register_generate_plant(moretrees.willow_biome, moretrees.willow_model
|
|||||||
plantslib:register_generate_plant(moretrees.birch_biome, "moretrees:grow_birch")
|
plantslib:register_generate_plant(moretrees.birch_biome, "moretrees:grow_birch")
|
||||||
plantslib:register_generate_plant(moretrees.spruce_biome, "moretrees:grow_spruce")
|
plantslib:register_generate_plant(moretrees.spruce_biome, "moretrees:grow_spruce")
|
||||||
plantslib:register_generate_plant(moretrees.jungletree_biome, "moretrees:grow_jungletree")
|
plantslib:register_generate_plant(moretrees.jungletree_biome, "moretrees:grow_jungletree")
|
||||||
plantslib:register_generate_plant(moretrees.conifer_biome, "moretrees:grow_fir")
|
plantslib:register_generate_plant(moretrees.fir_biome, "moretrees:grow_fir")
|
||||||
|
|
||||||
-- These three lines replace default trees with beech
|
-- These three lines replace default trees with beech
|
||||||
-- Enable them if you want but be warned - due to serious bugs in the speed
|
-- Enable them if you want but be warned - due to serious bugs in the speed
|
||||||
@ -90,7 +90,7 @@ end
|
|||||||
|
|
||||||
plantslib:grow_plants(sapling_interval,sapling_chance,"moretrees:birch_sapling",nil,nil,nil,nil,nil,nil,nil,nil,"moretrees:grow_birch",nil)
|
plantslib:grow_plants(sapling_interval,sapling_chance,"moretrees:birch_sapling",nil,nil,nil,nil,nil,nil,nil,nil,"moretrees:grow_birch",nil)
|
||||||
plantslib:grow_plants(sapling_interval,sapling_chance,"moretrees:spruce_sapling",nil,nil,nil,nil,nil,nil,nil,nil,"moretrees:grow_spruce",nil)
|
plantslib:grow_plants(sapling_interval,sapling_chance,"moretrees:spruce_sapling",nil,nil,nil,nil,nil,nil,nil,nil,"moretrees:grow_spruce",nil)
|
||||||
plantslib:grow_plants(sapling_interval,sapling_chance,"moretrees:conifer_sapling",nil,nil,nil,nil,nil,nil,nil,nil,"moretrees:grow_fir",nil)
|
plantslib:grow_plants(sapling_interval,sapling_chance,"moretrees:fir_sapling",nil,nil,nil,nil,nil,nil,nil,nil,"moretrees:grow_fir",nil)
|
||||||
plantslib:grow_plants(sapling_interval,sapling_chance,"moretrees:jungletree_sapling",nil,nil,nil,nil,nil,nil,nil,nil,"moretrees:grow_jungletree",nil)
|
plantslib:grow_plants(sapling_interval,sapling_chance,"moretrees:jungletree_sapling",nil,nil,nil,nil,nil,nil,nil,nil,"moretrees:grow_jungletree",nil)
|
||||||
|
|
||||||
-- Code to spawn a birch tree
|
-- Code to spawn a birch tree
|
||||||
@ -115,7 +115,7 @@ function moretrees:grow_spruce(pos)
|
|||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
-- Code that spawns jungle trees and firs ("conifer")
|
-- Code that spawns jungle trees and firs
|
||||||
|
|
||||||
moretrees.jt_axiom1 = "FFFA"
|
moretrees.jt_axiom1 = "FFFA"
|
||||||
moretrees.jt_rules_a1 = "FFF[&&-FBf[&&&Ff]^^^Ff][&&+FBFf[&&&FFf]^^^Ff][&&---FBFf[&&&Ff]^^^Ff][&&+++FBFf[&&&Ff]^^^Ff]F/A"
|
moretrees.jt_rules_a1 = "FFF[&&-FBf[&&&Ff]^^^Ff][&&+FBFf[&&&FFf]^^^Ff][&&---FBFf[&&&Ff]^^^Ff][&&+++FBFf[&&&Ff]^^^Ff]F/A"
|
||||||
@ -171,16 +171,16 @@ end
|
|||||||
|
|
||||||
function moretrees:grow_fir(pos)
|
function moretrees:grow_fir(pos)
|
||||||
if math.random(2) == 1 then
|
if math.random(2) == 1 then
|
||||||
moretrees.conifer_model.leaves="moretrees:fir_leaves"
|
moretrees.fir_model.leaves="moretrees:fir_leaves"
|
||||||
else
|
else
|
||||||
moretrees.conifer_model.leaves="moretrees:fir_leaves_special"
|
moretrees.fir_model.leaves="moretrees:fir_leaves_special"
|
||||||
end
|
end
|
||||||
if math.random(2) == 1 then
|
if math.random(2) == 1 then
|
||||||
moretrees.conifer_model.rules_a = moretrees.ct_rules_a1
|
moretrees.fir_model.rules_a = moretrees.ct_rules_a1
|
||||||
moretrees.conifer_model.rules_b = moretrees.ct_rules_b1
|
moretrees.fir_model.rules_b = moretrees.ct_rules_b1
|
||||||
else
|
else
|
||||||
moretrees.conifer_model.rules_a = moretrees.ct_rules_a2
|
moretrees.fir_model.rules_a = moretrees.ct_rules_a2
|
||||||
moretrees.conifer_model.rules_b = moretrees.ct_rules_b2
|
moretrees.fir_model.rules_b = moretrees.ct_rules_b2
|
||||||
end
|
end
|
||||||
|
|
||||||
minetest.env:remove_node(pos)
|
minetest.env:remove_node(pos)
|
||||||
@ -188,7 +188,7 @@ function moretrees:grow_fir(pos)
|
|||||||
for leaf in ipairs(leaves) do
|
for leaf in ipairs(leaves) do
|
||||||
minetest.env:remove_node(leaves[leaf])
|
minetest.env:remove_node(leaves[leaf])
|
||||||
end
|
end
|
||||||
minetest.env:spawn_tree(pos,moretrees.conifer_model)
|
minetest.env:spawn_tree(pos,moretrees.fir_model)
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
||||||
|
@ -324,7 +324,21 @@ minetest.register_node("moretrees:fir_sapling", {
|
|||||||
sounds = default.node_sound_defaults(),
|
sounds = default.node_sound_defaults(),
|
||||||
})
|
})
|
||||||
|
|
||||||
|
minetest.register_node("moretrees:fir_cone", {
|
||||||
|
description = "Fir cone",
|
||||||
|
drawtype = "plantlike",
|
||||||
|
visual_scale = 0.8,
|
||||||
|
tiles = {"moretrees_fir_cone.png"},
|
||||||
|
paramtype = "light",
|
||||||
|
sunlight_propagates = true,
|
||||||
|
walkable = false,
|
||||||
|
groups = {fleshy=3,dig_immediate=3,flammable=2},
|
||||||
|
sounds = default.node_sound_defaults(),
|
||||||
|
selection_box = {
|
||||||
|
type = "fixed",
|
||||||
|
fixed = {-0.2, -0.5, -0.2, 0.2, 0, 0.2}
|
||||||
|
},
|
||||||
|
})
|
||||||
|
|
||||||
-- Backward compatbility with old mods/nodes:
|
-- Backward compatbility with old mods/nodes:
|
||||||
|
|
||||||
|
BIN
textures/moretrees_fir_cone.png
Normal file
BIN
textures/moretrees_fir_cone.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 848 B |
@ -3,7 +3,7 @@
|
|||||||
Tree type (m) (approx., °C) some node water to spawn on seed diff radius
|
Tree type (m) (approx., °C) some node water to spawn on seed diff radius
|
||||||
-----------------------------------------------------------------------------------------------------------------------
|
-----------------------------------------------------------------------------------------------------------------------
|
||||||
jungle tree - 5 to +10 above +26 water, 15 10 dirt_with_grass 329 7
|
jungle tree - 5 to +10 above +26 water, 15 10 dirt_with_grass 329 7
|
||||||
fir (conifers) above +25 -20 to +10 n/a n/a dirt_with_grass 359 8
|
fir above +25 -20 to +10 n/a n/a dirt_with_grass 359 8
|
||||||
palm - 1 to + 1 +18 to +32 water, 15 10 sand 330 5
|
palm - 1 to + 1 +18 to +32 water, 15 10 sand 330 5
|
||||||
apple + 1 to +10 +23 to +32 n/a n/a dirt_with grass 331 15
|
apple + 1 to +10 +23 to +32 n/a n/a dirt_with grass 331 15
|
||||||
oak 0 to +10 + 4 to +16 n/a n/a dirt_with grass 332 15
|
oak 0 to +10 + 4 to +16 n/a n/a dirt_with grass 332 15
|
||||||
|
@ -194,12 +194,12 @@ moretrees.jungletree_model={
|
|||||||
iterations=nil,
|
iterations=nil,
|
||||||
random_level=2,
|
random_level=2,
|
||||||
trunk_type=nil,
|
trunk_type=nil,
|
||||||
thin_branches=true;
|
thin_branches=true,
|
||||||
fruit_chance=15,
|
fruit_chance=15,
|
||||||
fruit="vines:vine"
|
fruit="vines:vine"
|
||||||
}
|
}
|
||||||
|
|
||||||
moretrees.conifer_model={
|
moretrees.fir_model={
|
||||||
axiom="FFFAF[&&-F][&&+F][&&---F][&&+++F]Fff",
|
axiom="FFFAF[&&-F][&&+F][&&---F][&&+++F]Fff",
|
||||||
rules_a=nil,
|
rules_a=nil,
|
||||||
rules_b=nil,
|
rules_b=nil,
|
||||||
@ -209,5 +209,7 @@ moretrees.conifer_model={
|
|||||||
iterations=7,
|
iterations=7,
|
||||||
random_level=5,
|
random_level=5,
|
||||||
trunk_type="single",
|
trunk_type="single",
|
||||||
thin_branches=true
|
thin_branches=true,
|
||||||
|
fruit="moretrees:fir_cone",
|
||||||
|
fruit_chance=8
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user