diff options
author | Elias Fleckenstein <eliasfleckenstein@web.de> | 2020-06-07 19:44:12 +0200 |
---|---|---|
committer | Elias Fleckenstein <eliasfleckenstein@web.de> | 2020-06-07 19:44:12 +0200 |
commit | 632f7d44c30f70fae00401256de7b29eab53e0e7 (patch) | |
tree | 57f282f91df36ddd610fea9be47424588e8149a9 /src/onload/sapling_mutation.lua | |
parent | 20b8961640b6c22d4149f7268d403cb4609a03fb (diff) | |
download | skycraft-632f7d44c30f70fae00401256de7b29eab53e0e7.tar.xz |
Changed Modules, New Features
Diffstat (limited to 'src/onload/sapling_mutation.lua')
-rw-r--r-- | src/onload/sapling_mutation.lua | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/onload/sapling_mutation.lua b/src/onload/sapling_mutation.lua index 8b13789..4b2f1d1 100644 --- a/src/onload/sapling_mutation.lua +++ b/src/onload/sapling_mutation.lua @@ -1 +1,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 |