summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTenPlus1 <kinsellaja@yahoo.com>2016-11-12 10:52:47 +0000
committerTenPlus1 <kinsellaja@yahoo.com>2016-11-12 10:52:47 +0000
commit3530d06c435564b7dd8690606075e98c0e92dcb7 (patch)
treef1b0d1ad4b3a08b6765527db2f7d33d203cb724e
parentd21c7bdbc92a86673608449591e06992cab7d59a (diff)
added 6x lucky blocks
-rw-r--r--depends.txt1
-rw-r--r--init.lua9
-rw-r--r--lucky_block.lua14
3 files changed, 21 insertions, 3 deletions
diff --git a/depends.txt b/depends.txt
index d7dd9ef..9023044 100644
--- a/depends.txt
+++ b/depends.txt
@@ -2,3 +2,4 @@ default
doors?
mobs?
intllib?
+lucky_block? \ No newline at end of file
diff --git a/init.lua b/init.lua
index 3d66fec..bc8e7ab 100644
--- a/init.lua
+++ b/init.lua
@@ -639,8 +639,11 @@ minetest.register_node("protector:display_node", {
drop = "",
})
-dofile(minetest.get_modpath("protector") .. "/doors_chest.lua")
-dofile(minetest.get_modpath("protector") .. "/pvp.lua")
-dofile(minetest.get_modpath("protector") .. "/admin.lua")
+local path = minetest.get_modpath("protector")
+
+dofile(path .. "/doors_chest.lua")
+dofile(path .. "/pvp.lua")
+dofile(path .. "/admin.lua")
+dofile(path .. "/lucky_block.lua")
print (S("[MOD] Protector Redo loaded"))
diff --git a/lucky_block.lua b/lucky_block.lua
new file mode 100644
index 0000000..9484e35
--- /dev/null
+++ b/lucky_block.lua
@@ -0,0 +1,14 @@
+
+-- add lucky blocks
+
+if minetest.get_modpath("lucky_block") then
+
+ lucky_block:add_blocks({
+ {"dro", {"protector:protect"}, 3},
+ {"dro", {"protector:protect2"}, 3},
+ {"dro", {"protector:door_wood"}, 1},
+ {"dro", {"protector:door_steel"}, 1},
+ {"dro", {"protector:chest"}, 1},
+ {"exp"},
+ })
+end