summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTenPlus1 <kinsellaja@yahoo.com>2017-07-24 20:17:20 +0100
committerTenPlus1 <kinsellaja@yahoo.com>2017-07-24 20:17:20 +0100
commit2fd74073666d924513b0e474bb7ede7121c804c3 (patch)
tree9f105dfbfcd4b1197d3f6067af73eaf7c24ba416
parent3a7478567582515c7926962949d2465cc55fb0ab (diff)
added lucky blocks
-rw-r--r--README.md2
-rw-r--r--depends.txt1
-rw-r--r--init.lua4
-rw-r--r--lucky_block.lua11
4 files changed, 17 insertions, 1 deletions
diff --git a/README.md b/README.md
index efa29d1..18241c0 100644
--- a/README.md
+++ b/README.md
@@ -25,3 +25,5 @@ Changelog:
- 0.3 - Added strength to on_use global for new items (mulch and fertiliser).
- 0.4 - Added Intllib support and fr.txt file
- 0.5 - Added support for default bush and acacia bush saplings
+
+Lucky Blocks: 2
diff --git a/depends.txt b/depends.txt
index 4d286ca..d9ae766 100644
--- a/depends.txt
+++ b/depends.txt
@@ -4,3 +4,4 @@ farming?
ethereal?
moretrees?
technic_worldgen?
+lucky_block?
diff --git a/init.lua b/init.lua
index 31662c8..6552f0d 100644
--- a/init.lua
+++ b/init.lua
@@ -479,6 +479,8 @@ minetest.override_item("default:dirt", {
-- add support for other mods
-dofile(minetest.get_modpath("bonemeal") .. "/mods.lua")
+local path = minetest.get_modpath("bonemeal")
+dofile(path .. "/mods.lua")
+dofile(path .. "/lucky_block.lua")
print (S("[bonemeal] loaded"))
diff --git a/lucky_block.lua b/lucky_block.lua
new file mode 100644
index 0000000..da96949
--- /dev/null
+++ b/lucky_block.lua
@@ -0,0 +1,11 @@
+
+-- add lucky blocks
+
+if minetest.get_modpath("lucky_block") then
+
+lucky_block:add_blocks({
+ {"lig"},
+ {"dro", {"bonemeal:mulch", "bonemeal:bonemeal", "bonemeal:fertiliser"}, 10},
+})
+
+end -- END IF