added 6x lucky blocks

This commit is contained in:
TenPlus1 2016-11-12 10:52:47 +00:00
parent d21c7bdbc9
commit 3530d06c43
3 changed files with 21 additions and 3 deletions

View File

@ -2,3 +2,4 @@ default
doors?
mobs?
intllib?
lucky_block?

View 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"))

14
lucky_block.lua Normal file
View File

@ -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