]> git.lizzy.rs Git - skycraft.git/blob - src/onload/sapling_mutation.lua
Sapling Mutation at Smaller Chance
[skycraft.git] / src / onload / sapling_mutation.lua
1 local trees = {"", "dark", "jungle", "acacia", "spruce", "birch"}
2 for _, tree in pairs(trees) do
3         local item = "mcl_core:" .. tree .. "leaves"
4         local drop = minetest.registered_nodes[item].drop
5         for _, mutant_tree in pairs(trees) do
6                 drop.items[#drop.items + 1] = {
7                         items = {"mcl_core:" .. mutant_tree .. "sapling"},
8                         rarity = 5000,
9                 }
10         end
11 end
12