From 38d8c555a73995b9fdb843a51f8fd891b321ac4a Mon Sep 17 00:00:00 2001 From: TenPlus1 Date: Mon, 24 Oct 2016 18:26:13 +0100 Subject: [PATCH 1/8] changed spawn numbers --- dirt_monster.lua | 4 ++-- dungeon_master.lua | 2 +- lava_flan.lua | 2 +- mese_monster.lua | 2 +- oerkki.lua | 2 +- sand_monster.lua | 2 +- spider.lua | 2 +- stone_monster.lua | 2 +- tree_monster.lua | 2 +- 9 files changed, 10 insertions(+), 10 deletions(-) diff --git a/dirt_monster.lua b/dirt_monster.lua index 675da01..4dafdc4 100644 --- a/dirt_monster.lua +++ b/dirt_monster.lua @@ -33,7 +33,7 @@ mobs:register_mob("mobs_monster:dirt_monster", { }, water_damage = 1, lava_damage = 5, - light_damage = 2, + light_damage = 3, fear_height = 4, animation = { speed_normal = 15, @@ -50,7 +50,7 @@ mobs:register_mob("mobs_monster:dirt_monster", { }) mobs:register_spawn("mobs_monster:dirt_monster", - {"default:dirt_with_grass", "ethereal:gray_dirt"}, 7, 0, 7000, 3, 31000, false) + {"default:dirt_with_grass", "ethereal:gray_dirt"}, 7, 0, 7000, 2, 31000, false) mobs:register_egg("mobs_monster:dirt_monster", S("Dirt Monster"), "default_dirt.png", 1) diff --git a/dungeon_master.lua b/dungeon_master.lua index aa6ca6f..fe2ab07 100644 --- a/dungeon_master.lua +++ b/dungeon_master.lua @@ -58,7 +58,7 @@ mobs:register_mob("mobs_monster:dungeon_master", { }, }) -mobs:register_spawn("mobs_monster:dungeon_master", {"default:stone"}, 7, 0, 7000, 2, -70) +mobs:register_spawn("mobs_monster:dungeon_master", {"default:stone"}, 7, 0, 7000, 1, -70) mobs:register_egg("mobs_monster:dungeon_master", S("Dungeon Master"), "fire_basic_flame.png", 1, true) diff --git a/lava_flan.lua b/lava_flan.lua index 964db14..c6ab06a 100644 --- a/lava_flan.lua +++ b/lava_flan.lua @@ -56,7 +56,7 @@ mobs:register_mob("mobs_monster:lava_flan", { end, }) -mobs:register_spawn("mobs_monster:lava_flan", {"default:lava_source"}, 15, 0, 1000, 3, 0) +mobs:register_spawn("mobs_monster:lava_flan", {"default:lava_source"}, 15, 0, 1000, 2, 0) mobs:register_egg("mobs_monster:lava_flan", S("Lava Flan"), "default_lava.png", 1) diff --git a/mese_monster.lua b/mese_monster.lua index dbcf209..bf5eefd 100644 --- a/mese_monster.lua +++ b/mese_monster.lua @@ -54,7 +54,7 @@ mobs:register_mob("mobs_monster:mese_monster", { }, }) -mobs:register_spawn("mobs_monster:mese_monster", {"default:stone"}, 7, 0, 5000, 2, -20) +mobs:register_spawn("mobs_monster:mese_monster", {"default:stone"}, 7, 0, 5000, 1, -20) mobs:register_egg("mobs_monster:mese_monster", S("Mese Monster"), "default_mese_block.png", 1) diff --git a/oerkki.lua b/oerkki.lua index c869531..beeb5dc 100644 --- a/oerkki.lua +++ b/oerkki.lua @@ -57,7 +57,7 @@ mobs:register_mob("mobs_monster:oerkki", { }, }) -mobs:register_spawn("mobs_monster:oerkki", {"default:stone"}, 7, 0, 7000, 3, -10) +mobs:register_spawn("mobs_monster:oerkki", {"default:stone"}, 7, 0, 7000, 1, -10) mobs:register_egg("mobs_monster:oerkki", S("Oerkki"), "default_obsidian.png", 1) diff --git a/sand_monster.lua b/sand_monster.lua index d378b99..c46830e 100644 --- a/sand_monster.lua +++ b/sand_monster.lua @@ -55,7 +55,7 @@ mobs:register_mob("mobs_monster:sand_monster", { ]] }) -mobs:register_spawn("mobs_monster:sand_monster", {"default:desert_sand"}, 20, 0, 7000, 4, 31000) +mobs:register_spawn("mobs_monster:sand_monster", {"default:desert_sand"}, 20, 0, 7000, 2, 31000) mobs:register_egg("mobs_monster:sand_monster", S("Sand Monster"), "default_desert_sand.png", 1) diff --git a/spider.lua b/spider.lua index aad2b11..0a0a410 100644 --- a/spider.lua +++ b/spider.lua @@ -53,7 +53,7 @@ mobs:register_mob("mobs_monster:spider", { }) mobs:register_spawn("mobs_monster:spider", - {"default:desert_stone", "ethereal:crystal_dirt"}, 13, 0, 7000, 3, 71) + {"default:desert_stone", "ethereal:crystal_dirt"}, 13, 0, 7000, 1, 71) mobs:register_egg("mobs_monster:spider", S("Spider"), "mobs_cobweb.png", 1) diff --git a/stone_monster.lua b/stone_monster.lua index 124b730..f4ea6f2 100644 --- a/stone_monster.lua +++ b/stone_monster.lua @@ -51,7 +51,7 @@ mobs:register_mob("mobs_monster:stone_monster", { }, }) -mobs:register_spawn("mobs_monster:stone_monster", {"default:stone", "default:desert_stone"}, 7, 0, 7000, 3, 0) +mobs:register_spawn("mobs_monster:stone_monster", {"default:stone", "default:desert_stone"}, 7, 0, 7000, 1, 0) mobs:register_egg("mobs_monster:stone_monster", S("Stone Monster"), "default_stone.png", 1) diff --git a/tree_monster.lua b/tree_monster.lua index 0856955..771c4f1 100644 --- a/tree_monster.lua +++ b/tree_monster.lua @@ -54,7 +54,7 @@ mobs:register_mob("mobs_monster:tree_monster", { }) mobs:register_spawn("mobs_monster:tree_monster", - {"default:leaves", "default:jungleleaves"}, 7, 0, 7000, 3, 31000, false) + {"default:leaves", "default:jungleleaves"}, 7, 0, 7000, 1, 31000, false) mobs:register_egg("mobs_monster:tree_monster", S("Tree Monster"), "default_tree_top.png", 1) From 17c6e27e44895f4d3e2cd48f677b3472f9b331be Mon Sep 17 00:00:00 2001 From: TenPlus1 Date: Sat, 29 Oct 2016 16:48:04 +0100 Subject: [PATCH 2/8] using mobs:spawn to spawn monsters --- dirt_monster.lua | 12 ++++++++++-- dungeon_master.lua | 9 ++++++++- lava_flan.lua | 8 +++++++- mese_monster.lua | 9 ++++++++- oerkki.lua | 8 +++++++- sand_monster.lua | 8 +++++++- spider.lua | 12 ++++++++++-- stone_monster.lua | 8 +++++++- tree_monster.lua | 10 ++++++++-- 9 files changed, 72 insertions(+), 12 deletions(-) diff --git a/dirt_monster.lua b/dirt_monster.lua index 4dafdc4..3245790 100644 --- a/dirt_monster.lua +++ b/dirt_monster.lua @@ -49,8 +49,16 @@ mobs:register_mob("mobs_monster:dirt_monster", { }, }) -mobs:register_spawn("mobs_monster:dirt_monster", - {"default:dirt_with_grass", "ethereal:gray_dirt"}, 7, 0, 7000, 2, 31000, false) +mobs:spawn({ + name = "mobs_monster:dirt_monster", + nodes = {"default:dirt_with_grass", "ethereal:gray_dirt"}, + min_light = 0, + max_light = 7, + chance = 7000, + active_object_count = 2, + min_height = 0, + day_toggle = false, +}) mobs:register_egg("mobs_monster:dirt_monster", S("Dirt Monster"), "default_dirt.png", 1) diff --git a/dungeon_master.lua b/dungeon_master.lua index fe2ab07..846847d 100644 --- a/dungeon_master.lua +++ b/dungeon_master.lua @@ -58,7 +58,14 @@ mobs:register_mob("mobs_monster:dungeon_master", { }, }) -mobs:register_spawn("mobs_monster:dungeon_master", {"default:stone"}, 7, 0, 7000, 1, -70) +mobs:spawn({ + name = "mobs_monster:dungeon_master", + nodes = {"default:stone"}, + max_light = 7, + chance = 7000, + active_object_count = 1, + max_height = -70, +}) mobs:register_egg("mobs_monster:dungeon_master", S("Dungeon Master"), "fire_basic_flame.png", 1, true) diff --git a/lava_flan.lua b/lava_flan.lua index c6ab06a..84a23eb 100644 --- a/lava_flan.lua +++ b/lava_flan.lua @@ -56,7 +56,13 @@ mobs:register_mob("mobs_monster:lava_flan", { end, }) -mobs:register_spawn("mobs_monster:lava_flan", {"default:lava_source"}, 15, 0, 1000, 2, 0) +mobs:spawn({ + name = "mobs_monster:lava_flan", + nodes = {"default:lava_source"}, + chance = 1000, + active_object_count = 2, + max_height = 0, +}) mobs:register_egg("mobs_monster:lava_flan", S("Lava Flan"), "default_lava.png", 1) diff --git a/mese_monster.lua b/mese_monster.lua index bf5eefd..db5e894 100644 --- a/mese_monster.lua +++ b/mese_monster.lua @@ -54,7 +54,14 @@ mobs:register_mob("mobs_monster:mese_monster", { }, }) -mobs:register_spawn("mobs_monster:mese_monster", {"default:stone"}, 7, 0, 5000, 1, -20) +mobs:spawn({ + name = "mobs_monster:mese_monster", + nodes = {"default:stone"}, + max_light = 7, + chance = 5000, + active_object_count = 1, + max_height = -20, +}) mobs:register_egg("mobs_monster:mese_monster", S("Mese Monster"), "default_mese_block.png", 1) diff --git a/oerkki.lua b/oerkki.lua index beeb5dc..449d164 100644 --- a/oerkki.lua +++ b/oerkki.lua @@ -57,7 +57,13 @@ mobs:register_mob("mobs_monster:oerkki", { }, }) -mobs:register_spawn("mobs_monster:oerkki", {"default:stone"}, 7, 0, 7000, 1, -10) +mobs:spawn({ + name = "mobs_monster:oerkki", + nodes = {"default:stone"}, + max_light = 7, + chance = 7000, + max_height = -10, +}) mobs:register_egg("mobs_monster:oerkki", S("Oerkki"), "default_obsidian.png", 1) diff --git a/sand_monster.lua b/sand_monster.lua index c46830e..8328eca 100644 --- a/sand_monster.lua +++ b/sand_monster.lua @@ -55,7 +55,13 @@ mobs:register_mob("mobs_monster:sand_monster", { ]] }) -mobs:register_spawn("mobs_monster:sand_monster", {"default:desert_sand"}, 20, 0, 7000, 2, 31000) +mobs:spawn({ + name = "mobs_monster:sand_monster", + nodes = {"default:desert_sand"}, + chance = 7000, + active_object_count = 2, + min_height = 0, +}) mobs:register_egg("mobs_monster:sand_monster", S("Sand Monster"), "default_desert_sand.png", 1) diff --git a/spider.lua b/spider.lua index 0a0a410..21f3919 100644 --- a/spider.lua +++ b/spider.lua @@ -52,8 +52,16 @@ mobs:register_mob("mobs_monster:spider", { }, }) -mobs:register_spawn("mobs_monster:spider", - {"default:desert_stone", "ethereal:crystal_dirt"}, 13, 0, 7000, 1, 71) +mobs:spawn({ + name = "mobs_monster:spider", + nodes = {"default:desert_stone", "ethereal:crystal_dirt"}, + min_light = 0, + max_light = 12, + chance = 7000, + active_object_count = 1, + min_height = -50, + max_height = 31000, +}) mobs:register_egg("mobs_monster:spider", S("Spider"), "mobs_cobweb.png", 1) diff --git a/stone_monster.lua b/stone_monster.lua index f4ea6f2..e7ba7c1 100644 --- a/stone_monster.lua +++ b/stone_monster.lua @@ -51,7 +51,13 @@ mobs:register_mob("mobs_monster:stone_monster", { }, }) -mobs:register_spawn("mobs_monster:stone_monster", {"default:stone", "default:desert_stone"}, 7, 0, 7000, 1, 0) +mobs:spawn({ + name = "mobs_monster:stone_monster", + nodes = {"default:stone", "default:desert_stone"}, + max_light = 7, + chance = 7000, + max_height = 0, +}) mobs:register_egg("mobs_monster:stone_monster", S("Stone Monster"), "default_stone.png", 1) diff --git a/tree_monster.lua b/tree_monster.lua index 771c4f1..68fc3f4 100644 --- a/tree_monster.lua +++ b/tree_monster.lua @@ -53,8 +53,14 @@ mobs:register_mob("mobs_monster:tree_monster", { }, }) -mobs:register_spawn("mobs_monster:tree_monster", - {"default:leaves", "default:jungleleaves"}, 7, 0, 7000, 1, 31000, false) +mobs:spawn({ + name = "mobs_monster:tree_monster", + nodes = {"default:leaves", "default:jungleleaves"}, + max_light = 7, + chance = 7000, + min_height = 0, + day_toggle = false, +}) mobs:register_egg("mobs_monster:tree_monster", S("Tree Monster"), "default_tree_top.png", 1) From e5f4c2a7746fe1247de940482e05d0b1f979de96 Mon Sep 17 00:00:00 2001 From: TenPlus1 Date: Thu, 1 Dec 2016 18:39:16 +0000 Subject: [PATCH 3/8] 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(), }) From dbc5cafc5bc718fa46043a18d182f6f58df10abc Mon Sep 17 00:00:00 2001 From: TenPlus1 Date: Fri, 20 Jan 2017 09:29:41 +0000 Subject: [PATCH 4/8] glowing dm fireball for latest dev --- dungeon_master.lua | 8 +++++--- sand_monster.lua | 1 + 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/dungeon_master.lua b/dungeon_master.lua index 846847d..1a85611 100644 --- a/dungeon_master.lua +++ b/dungeon_master.lua @@ -78,9 +78,11 @@ mobs:register_arrow("mobs_monster:fireball", { visual_size = {x = 1, y = 1}, textures = {"mobs_fireball.png"}, velocity = 6, --- tail = 1, --- tail_texture = "mobs_fireball.png", --- tail_size = 10, + tail = 1, + tail_texture = "mobs_fireball.png", + tail_size = 10, + glow = 5, + expire = 0.1, -- direct hit, no fire... just plenty of pain hit_player = function(self, player) diff --git a/sand_monster.lua b/sand_monster.lua index 8328eca..2c92ff8 100644 --- a/sand_monster.lua +++ b/sand_monster.lua @@ -8,6 +8,7 @@ mobs:register_mob("mobs_monster:sand_monster", { passive = false, attack_type = "dogfight", pathfinding = true, + --specific_attack = {"player", "mobs_npc:npc"}, reach = 2, damage = 1, hp_min = 4, From d8b5b15c82f4cf9948d2977fdeb07d16d6c8d7fe Mon Sep 17 00:00:00 2001 From: TenPlus1 Date: Sat, 21 Jan 2017 19:20:25 +0000 Subject: [PATCH 5/8] updated mese monster example settings --- mese_monster.lua | 3 +++ 1 file changed, 3 insertions(+) diff --git a/mese_monster.lua b/mese_monster.lua index db5e894..fe5d5f5 100644 --- a/mese_monster.lua +++ b/mese_monster.lua @@ -71,9 +71,12 @@ mobs:alias_mob("mobs:mese_monster", "mobs_monster:mese_monster") -- mese arrow (weapon) mobs:register_arrow("mobs_monster:mese_arrow", { visual = "sprite", +-- visual = "wielditem", visual_size = {x = 0.5, y = 0.5}, textures = {"default_mese_crystal_fragment.png"}, + --textures = {"default:mese_crystal_fragment"}, velocity = 6, +-- rotate = 180, hit_player = function(self, player) player:punch(self.object, 1.0, { From 8edcad52013afaa63f553f44459e27782387b36a Mon Sep 17 00:00:00 2001 From: TenPlus1 Date: Sun, 12 Feb 2017 11:47:38 +0000 Subject: [PATCH 6/8] Amend visual_scale for plantlike nodes --- spider.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spider.lua b/spider.lua index 74bbe13..f097ffd 100644 --- a/spider.lua +++ b/spider.lua @@ -77,7 +77,7 @@ end minetest.register_node(":mobs:cobweb", { description = S("Cobweb"), drawtype = "plantlike", - visual_scale = 1.1, + visual_scale = 1.2, tiles = {"mobs_cobweb.png"}, inventory_image = "mobs_cobweb.png", paramtype = "light", From 386c2cb77af3db7fd4c695e187db8ed29b812500 Mon Sep 17 00:00:00 2001 From: TenPlus1 Date: Tue, 21 Feb 2017 15:32:50 +0000 Subject: [PATCH 7/8] monsters spawn in different areas if ethereal detected --- dirt_monster.lua | 15 ++++++++++++--- dungeon_master.lua | 8 ++++++-- lava_flan.lua | 9 +++++++-- mese_monster.lua | 8 ++++++-- oerkki.lua | 7 +++++-- sand_monster.lua | 7 +++++-- spider.lua | 21 ++++++++++++++------- stone_monster.lua | 7 +++++-- tree_monster.lua | 15 ++++++--------- 9 files changed, 66 insertions(+), 31 deletions(-) diff --git a/dirt_monster.lua b/dirt_monster.lua index 3245790..3206e21 100644 --- a/dirt_monster.lua +++ b/dirt_monster.lua @@ -1,6 +1,7 @@ local S = mobs.intllib + -- Dirt Monster by PilzAdam mobs:register_mob("mobs_monster:dirt_monster", { @@ -49,9 +50,16 @@ mobs:register_mob("mobs_monster:dirt_monster", { }, }) + +local spawn_on = "default:dirt_with_grass" + +if minetest.get_modpath("ethereal") then + spawn_on = "ethereal:gray_dirt" +end + mobs:spawn({ name = "mobs_monster:dirt_monster", - nodes = {"default:dirt_with_grass", "ethereal:gray_dirt"}, + nodes = {spawn_on}, min_light = 0, max_light = 7, chance = 7000, @@ -60,7 +68,8 @@ mobs:spawn({ day_toggle = false, }) + mobs:register_egg("mobs_monster:dirt_monster", S("Dirt Monster"), "default_dirt.png", 1) --- compatibility -mobs:alias_mob("mobs:dirt_monster", "mobs_monster:dirt_monster") + +mobs:alias_mob("mobs:dirt_monster", "mobs_monster:dirt_monster") -- compatibility diff --git a/dungeon_master.lua b/dungeon_master.lua index 1a85611..d4b55bd 100644 --- a/dungeon_master.lua +++ b/dungeon_master.lua @@ -1,6 +1,7 @@ local S = mobs.intllib + -- Dungeon Master by PilzAdam mobs:register_mob("mobs_monster:dungeon_master", { @@ -58,6 +59,7 @@ mobs:register_mob("mobs_monster:dungeon_master", { }, }) + mobs:spawn({ name = "mobs_monster:dungeon_master", nodes = {"default:stone"}, @@ -67,10 +69,12 @@ mobs:spawn({ max_height = -70, }) + mobs:register_egg("mobs_monster:dungeon_master", S("Dungeon Master"), "fire_basic_flame.png", 1, true) --- compatibility -mobs:alias_mob("mobs:dungeon_master", "mobs_monster:dungeon_master") + +mobs:alias_mob("mobs:dungeon_master", "mobs_monster:dungeon_master") -- compatibility + -- fireball (weapon) mobs:register_arrow("mobs_monster:fireball", { diff --git a/lava_flan.lua b/lava_flan.lua index 84a23eb..e98ed82 100644 --- a/lava_flan.lua +++ b/lava_flan.lua @@ -1,6 +1,7 @@ local S = mobs.intllib + -- Lava Flan by Zeg9 (additional textures by JurajVajda) mobs:register_mob("mobs_monster:lava_flan", { @@ -56,6 +57,7 @@ mobs:register_mob("mobs_monster:lava_flan", { end, }) + mobs:spawn({ name = "mobs_monster:lava_flan", nodes = {"default:lava_source"}, @@ -64,10 +66,12 @@ mobs:spawn({ max_height = 0, }) + mobs:register_egg("mobs_monster:lava_flan", S("Lava Flan"), "default_lava.png", 1) --- compatibility -mobs:alias_mob("mobs:lava_flan", "mobs_monster:lava_flan") + +mobs:alias_mob("mobs:lava_flan", "mobs_monster:lava_flan") -- compatibility + -- lava orb minetest.register_craftitem(":mobs:lava_orb", { @@ -83,6 +87,7 @@ minetest.register_craft({ burntime = 80, }) + -- Lava Pick (digs and smelts at same time) local old_handle_node_drops = minetest.handle_node_drops diff --git a/mese_monster.lua b/mese_monster.lua index fe5d5f5..4fb6d14 100644 --- a/mese_monster.lua +++ b/mese_monster.lua @@ -1,6 +1,7 @@ local S = mobs.intllib + -- Mese Monster by Zeg9 mobs:register_mob("mobs_monster:mese_monster", { @@ -54,6 +55,7 @@ mobs:register_mob("mobs_monster:mese_monster", { }, }) + mobs:spawn({ name = "mobs_monster:mese_monster", nodes = {"default:stone"}, @@ -63,10 +65,12 @@ mobs:spawn({ max_height = -20, }) + mobs:register_egg("mobs_monster:mese_monster", S("Mese Monster"), "default_mese_block.png", 1) --- compatibility -mobs:alias_mob("mobs:mese_monster", "mobs_monster:mese_monster") + +mobs:alias_mob("mobs:mese_monster", "mobs_monster:mese_monster") -- compatiblity + -- mese arrow (weapon) mobs:register_arrow("mobs_monster:mese_arrow", { diff --git a/oerkki.lua b/oerkki.lua index 449d164..26aa298 100644 --- a/oerkki.lua +++ b/oerkki.lua @@ -1,6 +1,7 @@ local S = mobs.intllib + -- Oerkki by PilzAdam mobs:register_mob("mobs_monster:oerkki", { @@ -57,6 +58,7 @@ mobs:register_mob("mobs_monster:oerkki", { }, }) + mobs:spawn({ name = "mobs_monster:oerkki", nodes = {"default:stone"}, @@ -65,7 +67,8 @@ mobs:spawn({ max_height = -10, }) + mobs:register_egg("mobs_monster:oerkki", S("Oerkki"), "default_obsidian.png", 1) --- compatibility -mobs:alias_mob("mobs:oerkki", "mobs_monster:oerkki") + +mobs:alias_mob("mobs:oerkki", "mobs_monster:oerkki") -- compatiblity diff --git a/sand_monster.lua b/sand_monster.lua index 2c92ff8..5c9ac62 100644 --- a/sand_monster.lua +++ b/sand_monster.lua @@ -1,6 +1,7 @@ local S = mobs.intllib + -- Sand Monster by PilzAdam mobs:register_mob("mobs_monster:sand_monster", { @@ -56,6 +57,7 @@ mobs:register_mob("mobs_monster:sand_monster", { ]] }) + mobs:spawn({ name = "mobs_monster:sand_monster", nodes = {"default:desert_sand"}, @@ -64,7 +66,8 @@ mobs:spawn({ min_height = 0, }) + mobs:register_egg("mobs_monster:sand_monster", S("Sand Monster"), "default_desert_sand.png", 1) --- compatibility -mobs:alias_mob("mobs:sand_monster", "mobs_monster:sand_monster") + +mobs:alias_mob("mobs:sand_monster", "mobs_monster:sand_monster") -- compatibility diff --git a/spider.lua b/spider.lua index f097ffd..9fdcfd0 100644 --- a/spider.lua +++ b/spider.lua @@ -1,6 +1,7 @@ local S = mobs.intllib + -- Spider by AspireMint (fishyWET (CC-BY-SA 3.0 license for texture) mobs:register_mob("mobs_monster:spider", { @@ -52,9 +53,18 @@ mobs:register_mob("mobs_monster:spider", { }, }) + +local spawn_on = "default:desert_stone" + +if minetest.get_modpath("ethereal") then + spawn_on = "ethereal:crystal_dirt" +else + minetest.register_alias("ethereal:crystal_spike", "default:sandstone") +end + mobs:spawn({ name = "mobs_monster:spider", - nodes = {"default:desert_stone", "ethereal:crystal_dirt"}, + nodes = {spawn_on}, min_light = 0, max_light = 12, chance = 7000, @@ -63,15 +73,12 @@ mobs:spawn({ max_height = 31000, }) + mobs:register_egg("mobs_monster:spider", S("Spider"), "mobs_cobweb.png", 1) --- compatibility -mobs:alias_mob("mobs:spider", "mobs_monster:spider") --- ethereal crystal spike compatibility -if not minetest.get_modpath("ethereal") then - minetest.register_alias("ethereal:crystal_spike", "default:sandstone") -end +mobs:alias_mob("mobs:spider", "mobs_monster:spider") -- compatibility + -- cobweb minetest.register_node(":mobs:cobweb", { diff --git a/stone_monster.lua b/stone_monster.lua index e7ba7c1..07f8a01 100644 --- a/stone_monster.lua +++ b/stone_monster.lua @@ -1,6 +1,7 @@ local S = mobs.intllib + -- Stone Monster by PilzAdam mobs:register_mob("mobs_monster:stone_monster", { @@ -51,6 +52,7 @@ mobs:register_mob("mobs_monster:stone_monster", { }, }) + mobs:spawn({ name = "mobs_monster:stone_monster", nodes = {"default:stone", "default:desert_stone"}, @@ -59,7 +61,8 @@ mobs:spawn({ max_height = 0, }) + mobs:register_egg("mobs_monster:stone_monster", S("Stone Monster"), "default_stone.png", 1) --- compatibility -mobs:alias_mob("mobs:stone_monster", "mobs_monster:stone_monster") + +mobs:alias_mob("mobs:stone_monster", "mobs_monster:stone_monster") -- compatibility diff --git a/tree_monster.lua b/tree_monster.lua index 68fc3f4..239cf27 100644 --- a/tree_monster.lua +++ b/tree_monster.lua @@ -1,6 +1,7 @@ local S = mobs.intllib + -- Tree Monster (or Tree Gollum) by PilzAdam mobs:register_mob("mobs_monster:tree_monster", { @@ -31,8 +32,8 @@ mobs:register_mob("mobs_monster:tree_monster", { jump = true, view_range = 15, drops = { - {name = "ethereal:tree_sapling", chance = 3, min = 1, max = 2}, - {name = "ethereal:jungle_tree_sapling", chance = 3, min = 1, max = 2}, + {name = "default:sapling", chance = 3, min = 1, max = 2}, + {name = "default:junglesapling", chance = 3, min = 1, max = 2}, {name = "default:apple", chance = 2, min = 1, max=3}, }, water_damage = 0, @@ -53,6 +54,7 @@ mobs:register_mob("mobs_monster:tree_monster", { }, }) + mobs:spawn({ name = "mobs_monster:tree_monster", nodes = {"default:leaves", "default:jungleleaves"}, @@ -62,13 +64,8 @@ mobs:spawn({ day_toggle = false, }) + mobs:register_egg("mobs_monster:tree_monster", S("Tree Monster"), "default_tree_top.png", 1) --- compatibility -mobs:alias_mob("mobs:tree_monster", "mobs_monster:tree_monster") --- ethereal sapling compatibility -if not minetest.get_modpath("ethereal") then - minetest.register_alias("ethereal:tree_sapling", "default:sapling") - minetest.register_alias("ethereal:jungle_tree_sapling", "default:junglesapling") -end +mobs:alias_mob("mobs:tree_monster", "mobs_monster:tree_monster") -- compatibility From 5cabfdfff34864b3b83b2aaefdd60a807b3ca5ef Mon Sep 17 00:00:00 2001 From: TenPlus1 Date: Fri, 10 Mar 2017 16:06:42 +0000 Subject: [PATCH 8/8] stone monster's cannot jump :) --- stone_monster.lua | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/stone_monster.lua b/stone_monster.lua index 07f8a01..2351448 100644 --- a/stone_monster.lua +++ b/stone_monster.lua @@ -27,7 +27,8 @@ mobs:register_mob("mobs_monster:stone_monster", { }, walk_velocity = 1, run_velocity = 2, - jump = true, + jump_height = 0, + stepheight = 1.1, floats = 0, view_range = 10, drops = {