From 2fd74073666d924513b0e474bb7ede7121c804c3 Mon Sep 17 00:00:00 2001 From: TenPlus1 Date: Mon, 24 Jul 2017 20:17:20 +0100 Subject: [PATCH] added lucky blocks --- README.md | 2 ++ depends.txt | 1 + init.lua | 4 +++- lucky_block.lua | 11 +++++++++++ 4 files changed, 17 insertions(+), 1 deletion(-) create mode 100644 lucky_block.lua 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