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