diff options
author | TenPlus1 <kinsellaja@yahoo.com> | 2016-11-12 10:52:47 +0000 |
---|---|---|
committer | TenPlus1 <kinsellaja@yahoo.com> | 2016-11-12 10:52:47 +0000 |
commit | 3530d06c435564b7dd8690606075e98c0e92dcb7 (patch) | |
tree | f1b0d1ad4b3a08b6765527db2f7d33d203cb724e | |
parent | d21c7bdbc92a86673608449591e06992cab7d59a (diff) |
added 6x lucky blocks
-rw-r--r-- | depends.txt | 1 | ||||
-rw-r--r-- | init.lua | 9 | ||||
-rw-r--r-- | lucky_block.lua | 14 |
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 @@ -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 |