forked from mtcontrib/bonemeal
		
	add initial support for dfcavern saplings
This commit is contained in:
		| @@ -9,3 +9,4 @@ flowers? | ||||
| dye? | ||||
| ferns? | ||||
| dryplants? | ||||
| df_trees? | ||||
|   | ||||
							
								
								
									
										2
									
								
								mod.conf
									
									
									
									
									
								
							
							
						
						
									
										2
									
								
								mod.conf
									
									
									
									
									
								
							| @@ -1,4 +1,4 @@ | ||||
| name = bonemeal | ||||
| depends = default | ||||
| optional_depends = intllib, lucky_block, farming, ethereal, moretrees, technic_worldgen, flowers, dye, ferns, dryplants | ||||
| optional_depends = intllib, lucky_block, farming, ethereal, moretrees, technic_worldgen, flowers, dye, ferns, dryplants, df_trees | ||||
| description = Adds bone and bonemeal giving the ability to quickly grow plants and saplings. | ||||
|   | ||||
							
								
								
									
										18
									
								
								mods.lua
									
									
									
									
									
								
							
							
						
						
									
										18
									
								
								mods.lua
									
									
									
									
									
								
							| @@ -190,3 +190,21 @@ if minetest.get_modpath("dye") then | ||||
| 		}) | ||||
| 	end | ||||
| end | ||||
|  | ||||
|  | ||||
| if minetest.get_modpath("df_trees") then | ||||
|  | ||||
| 	local function spore_tree_fix(pos) | ||||
| 		minetest.set_node(pos, {name = "air"}) | ||||
| 		df_trees.spawn_spore_tree(pos) | ||||
| 	end | ||||
|  | ||||
| 	bonemeal:add_sapling({ | ||||
| 		{"df_trees:black_cap_sapling", df_trees.spawn_black_cap, "soil"}, | ||||
| 		{"df_trees:fungiwood_sapling", df_trees.spawn_fungiwood, "soil"}, | ||||
| 		{"df_trees:goblin_cap_sapling", df_trees.spawn_goblin_cap, "soil"}, | ||||
| 		{"df_trees:spore_tree_sapling", spore_tree_fix, "soil"}, | ||||
| 		{"df_trees:tower_cap_sapling", df_trees.spawn_tower_cap, "soil"}, | ||||
| 		{"df_trees:tunnel_tube_sapling", df_trees.spawn_tunnel_tube, "soil"} | ||||
| 	}) | ||||
| end | ||||
|   | ||||
		Reference in New Issue
	
	Block a user