forked from mtcontrib/bonemeal
can grow cactus and papyrus
This commit is contained in:
parent
807388d632
commit
05e211a037
15
init.lua
15
init.lua
@ -37,6 +37,17 @@ local function pine_grow(pos)
|
|||||||
end
|
end
|
||||||
|
|
||||||
|
|
||||||
|
-- special function for cactus growth
|
||||||
|
local function cactus_grow(pos)
|
||||||
|
default.grow_cactus(pos, minetest.get_node(pos))
|
||||||
|
end
|
||||||
|
|
||||||
|
-- special function for papyrus growth
|
||||||
|
local function papyrus_grow(pos)
|
||||||
|
default.grow_papyrus(pos, minetest.get_node(pos))
|
||||||
|
end
|
||||||
|
|
||||||
|
|
||||||
-- default saplings
|
-- default saplings
|
||||||
local saplings = {
|
local saplings = {
|
||||||
{"default:sapling", default.grow_new_apple_tree, "soil"},
|
{"default:sapling", default.grow_new_apple_tree, "soil"},
|
||||||
@ -49,7 +60,9 @@ local saplings = {
|
|||||||
{"default:acacia_bush_sapling", default.grow_acacia_bush, "soil"},
|
{"default:acacia_bush_sapling", default.grow_acacia_bush, "soil"},
|
||||||
{"default:large_cactus_seedling", default.grow_large_cactus, "sand"},
|
{"default:large_cactus_seedling", default.grow_large_cactus, "sand"},
|
||||||
{"default:blueberry_bush_sapling", default.grow_blueberry_bush, "soil"},
|
{"default:blueberry_bush_sapling", default.grow_blueberry_bush, "soil"},
|
||||||
{"default:pine_bush_sapling", default.grow_pine_bush, "soil"}
|
{"default:pine_bush_sapling", default.grow_pine_bush, "soil"},
|
||||||
|
{"default:cactus", cactus_grow, "sand"},
|
||||||
|
{"default:papyrus", papyrus_grow, "soil"},
|
||||||
}
|
}
|
||||||
|
|
||||||
-- helper tables ( "" denotes a blank item )
|
-- helper tables ( "" denotes a blank item )
|
||||||
|
Loading…
Reference in New Issue
Block a user