aboutsummaryrefslogtreecommitdiff
path: root/src/onload/sapling_mutation.lua
blob: 4ee0e7b984dd39645da36b264d439a6040a57927 (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 = 5000,
		}
	end
end