aboutsummaryrefslogtreecommitdiff
path: root/src/onload/sapling_mutation.lua
blob: 4b2f1d14eaee568e355268f7333aa9c287392b9c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
local trees = {"", "dark", "jungle", "acacia", "spruce", "birch"}
for _, tree in pairs(trees) do
	local item = "mcl_core:" .. tree .. "leaves"
	local drop = minetest.registered_nodes[item].drop
	for _, mutant_tree in pairs(trees) do
		drop.items[#drop.items + 1] = {
			items = {"mcl_core:" .. mutant_tree .. "sapling"},
			rarity = 1000,
		}
	end
end