From e5f4c2a7746fe1247de940482e05d0b1f979de96 Mon Sep 17 00:00:00 2001 From: TenPlus1 Date: Thu, 1 Dec 2016 18:39:16 +0000 Subject: [PATCH] Added 11 lucky blocks --- depends.txt | 1 + init.lua | 2 ++ lucky_block.lua | 19 +++++++++++++++++++ readme.md | 2 ++ spider.lua | 2 +- 5 files changed, 25 insertions(+), 1 deletion(-) create mode 100644 lucky_block.lua diff --git a/depends.txt b/depends.txt index a3172c8..58b4e62 100644 --- a/depends.txt +++ b/depends.txt @@ -1,3 +1,4 @@ default mobs intllib? +lucky_block? diff --git a/init.lua b/init.lua index 437a214..e39198e 100644 --- a/init.lua +++ b/init.lua @@ -22,4 +22,6 @@ dofile(path .. "/lava_flan.lua") -- Zeg9 dofile(path .. "/mese_monster.lua") dofile(path .. "/spider.lua") -- AspireMint +dofile(path .. "/lucky_block.lua") + print ("[MOD] Mobs Redo 'Monsters' loaded") diff --git a/lucky_block.lua b/lucky_block.lua new file mode 100644 index 0000000..38065b6 --- /dev/null +++ b/lucky_block.lua @@ -0,0 +1,19 @@ + +if minetest.get_modpath("lucky_block") then + + lucky_block:add_blocks({ + {"spw", "mobs:dungeon_master", 1, nil, nil, 3, "Billy"}, + {"spw", "mobs:sand_monster", 3}, + {"spw", "mobs:stone_monster", 3, nil, nil, 3, "Bob"}, + {"spw", "mobs:dirt_monster", 3}, + {"spw", "mobs:tree_monster", 3}, + {"spw", "mobs:oerkki", 3}, + {"exp"}, + {"spw", "mobs:spider", 5}, + {"spw", "mobs:mese_monster", 2}, + {"spw", "mobs:lava_flan", 3}, + {"nod", "default:chest", 0, { + {name = "mobs:lava_orb", max = 1}}}, + }) + +end diff --git a/readme.md b/readme.md index fd18d2d..eb79726 100644 --- a/readme.md +++ b/readme.md @@ -36,3 +36,5 @@ Stone Monster Tree Monster - Found atop tree's at night time they drop down and look for food in the form of players and animals. Can drop saplings and sometimes an apple or three. + +Lucky Blocks: 11 diff --git a/spider.lua b/spider.lua index 21f3919..74bbe13 100644 --- a/spider.lua +++ b/spider.lua @@ -89,7 +89,7 @@ minetest.register_node(":mobs:cobweb", { liquid_renewable = false, liquid_range = 0, walkable = false, - groups = {snappy = 1}, + groups = {snappy = 1, disable_jump = 1}, drop = "farming:cotton", sounds = default.node_sound_leaves_defaults(), })