add giant redwood sapling and recipe
This commit is contained in:
parent
7670c1da92
commit
dcf01bcfa1
24
sapling.lua
24
sapling.lua
@ -57,7 +57,9 @@ register_sapling("ethereal:banana_tree", "Banana", "ethereal_banana_tree_sapling
|
|||||||
register_sapling("ethereal:frost_tree", "Frost", "ethereal_frost_tree_sapling", 19)
|
register_sapling("ethereal:frost_tree", "Frost", "ethereal_frost_tree_sapling", 19)
|
||||||
register_sapling("ethereal:mushroom", "Mushroom", "ethereal_mushroom_sapling", 11)
|
register_sapling("ethereal:mushroom", "Mushroom", "ethereal_mushroom_sapling", 11)
|
||||||
register_sapling("ethereal:palm", "Palm", "moretrees_palm_sapling", 9)
|
register_sapling("ethereal:palm", "Palm", "moretrees_palm_sapling", 9)
|
||||||
register_sapling("ethereal:redwood", "Redwood", "ethereal_redwood_sapling", 31)
|
register_sapling("ethereal:giant_redwood", "Giant Redwood",
|
||||||
|
"ethereal_giant_redwood_sapling", 33)
|
||||||
|
register_sapling("ethereal:redwood", "Redwood", "ethereal_redwood_sapling", 21)
|
||||||
register_sapling("ethereal:orange_tree", "Orange", "ethereal_orange_tree_sapling", 6)
|
register_sapling("ethereal:orange_tree", "Orange", "ethereal_orange_tree_sapling", 6)
|
||||||
register_sapling("ethereal:birch", "Birch", "moretrees_birch_sapling", 7)
|
register_sapling("ethereal:birch", "Birch", "moretrees_birch_sapling", 7)
|
||||||
register_sapling("ethereal:sakura", "Sakura", "ethereal_sakura_sapling", 10)
|
register_sapling("ethereal:sakura", "Sakura", "ethereal_sakura_sapling", 10)
|
||||||
@ -116,11 +118,11 @@ function ethereal.grow_willow_tree(pos)
|
|||||||
end
|
end
|
||||||
|
|
||||||
function ethereal.grow_redwood_tree(pos)
|
function ethereal.grow_redwood_tree(pos)
|
||||||
if minetest.find_node_near(pos, 1, "ethereal:redwood_sapling") then
|
add_tree(pos, 4, 0, 4, ethereal.redwood_small_tree)
|
||||||
add_tree(pos, 7, 0, 7, ethereal.redwood_tree)
|
end
|
||||||
else
|
|
||||||
add_tree(pos, 4, 0, 4, ethereal.redwood_small_tree)
|
function ethereal.grow_giant_redwood_tree(pos)
|
||||||
end
|
add_tree(pos, 7, 0, 7, ethereal.redwood_tree)
|
||||||
end
|
end
|
||||||
|
|
||||||
function ethereal.grow_orange_tree(pos)
|
function ethereal.grow_orange_tree(pos)
|
||||||
@ -218,6 +220,10 @@ local grow_sapling = function(pos, node)
|
|||||||
and under == "default:dirt_with_dry_grass" then
|
and under == "default:dirt_with_dry_grass" then
|
||||||
ethereal.grow_redwood_tree(pos)
|
ethereal.grow_redwood_tree(pos)
|
||||||
|
|
||||||
|
elseif node.name == "ethereal:giant_redwood_sapling"
|
||||||
|
and under == "default:dirt_with_dry_grass" then
|
||||||
|
ethereal.grow_giant_redwood_tree(pos)
|
||||||
|
|
||||||
elseif node.name == "ethereal:orange_tree_sapling"
|
elseif node.name == "ethereal:orange_tree_sapling"
|
||||||
and under == "ethereal:prairie_dirt" then
|
and under == "ethereal:prairie_dirt" then
|
||||||
ethereal.grow_orange_tree(pos)
|
ethereal.grow_orange_tree(pos)
|
||||||
@ -262,3 +268,9 @@ minetest.register_abm({
|
|||||||
grow_sapling(pos, node)
|
grow_sapling(pos, node)
|
||||||
end
|
end
|
||||||
})
|
})
|
||||||
|
|
||||||
|
-- 2x redwood saplings make 1x giant redwood sapling
|
||||||
|
minetest.register_craft({
|
||||||
|
output = "ethereal:giant_redwood_sapling",
|
||||||
|
recipe = {{"ethereal:redwood_sapling", "ethereal:redwood_sapling"}}
|
||||||
|
})
|
||||||
|
@ -91,9 +91,9 @@ _,_,_,T,T,T,_,_,_,
|
|||||||
_,_,_,T,T,T,_,_,_,
|
_,_,_,T,T,T,_,_,_,
|
||||||
_,_,_,T,T,T,_,_,_,
|
_,_,_,T,T,T,_,_,_,
|
||||||
_,_,_,T,T,T,_,_,_,
|
_,_,_,T,T,T,_,_,_,
|
||||||
_,_,_,T,T,T,_,_,_,
|
_,_,_,_,T,_,_,_,_,
|
||||||
_,_,_,T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T,T,_,_,_,
|
||||||
_,_,_,T,T,_,_,_,L,
|
_,_,_,T,T,_,_,_,L,
|
||||||
_,T,T,T,T,_,_,_,L,
|
_,T,T,T,T,_,_,_,L,
|
||||||
|
BIN
textures/ethereal_giant_redwood_sapling.png
Normal file
BIN
textures/ethereal_giant_redwood_sapling.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 182 B |
Binary file not shown.
Before Width: | Height: | Size: 226 B After Width: | Height: | Size: 167 B |
Loading…
Reference in New Issue
Block a user