aboutsummaryrefslogtreecommitdiff
path: root/src/onload/sapling_mutation.lua
diff options
context:
space:
mode:
authorElias Fleckenstein <eliasfleckenstein@web.de>2020-06-07 19:44:12 +0200
committerElias Fleckenstein <eliasfleckenstein@web.de>2020-06-07 19:44:12 +0200
commit632f7d44c30f70fae00401256de7b29eab53e0e7 (patch)
tree57f282f91df36ddd610fea9be47424588e8149a9 /src/onload/sapling_mutation.lua
parent20b8961640b6c22d4149f7268d403cb4609a03fb (diff)
downloadskycraft-632f7d44c30f70fae00401256de7b29eab53e0e7.tar.xz
Changed Modules, New Features
Diffstat (limited to 'src/onload/sapling_mutation.lua')
-rw-r--r--src/onload/sapling_mutation.lua11
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