From 91cbcf7222043820f7b82d6dd5b218f343f0a732 Mon Sep 17 00:00:00 2001 From: TenPlus1 Date: Fri, 19 Aug 2016 19:10:27 +0100 Subject: [PATCH 1/8] Added license --- license.txt | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 license.txt diff --git a/license.txt b/license.txt new file mode 100644 index 0000000..fec6f6a --- /dev/null +++ b/license.txt @@ -0,0 +1,21 @@ +The MIT License (MIT) + +Copyright (c) 2016 TenPlus1 + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in +all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN +THE SOFTWARE. From 95038f6fb8d5fcedbbf7df6bcb5d56760e8ea151 Mon Sep 17 00:00:00 2001 From: TenPlus1 Date: Mon, 5 Sep 2016 18:40:12 +0100 Subject: [PATCH 2/8] Tree Monsters attack animals --- readme.md | 2 +- tree_monster.lua | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/readme.md b/readme.md index 043b25a..fd18d2d 100644 --- a/readme.md +++ b/readme.md @@ -35,4 +35,4 @@ Stone Monster Tree Monster -- Found atop tree's at night time they drop down and look for food in the form of players. Can drop saplings and sometimes an apple or three. +- 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. diff --git a/tree_monster.lua b/tree_monster.lua index 29df76c..a3b9d2f 100644 --- a/tree_monster.lua +++ b/tree_monster.lua @@ -7,6 +7,7 @@ mobs:register_mob("mobs_monster:tree_monster", { type = "monster", passive = false, attack_type = "dogfight", + attack_animals = true, reach = 2, damage = 2, hp_min = 7, From 8a8a4e80d193b8634a9b9d8702569dddcf069e11 Mon Sep 17 00:00:00 2001 From: TenPlus1 Date: Mon, 5 Sep 2016 19:48:13 +0100 Subject: [PATCH 3/8] specific_attack table added as example only --- tree_monster.lua | 1 + 1 file changed, 1 insertion(+) diff --git a/tree_monster.lua b/tree_monster.lua index a3b9d2f..771c4f1 100644 --- a/tree_monster.lua +++ b/tree_monster.lua @@ -8,6 +8,7 @@ mobs:register_mob("mobs_monster:tree_monster", { passive = false, attack_type = "dogfight", attack_animals = true, + --specific_attack = {"player", "mobs_animal:chicken"}, reach = 2, damage = 2, hp_min = 7, From c4e4986f55c073941a8dbc18e1086f55c843403e Mon Sep 17 00:00:00 2001 From: TenPlus1 Date: Tue, 6 Sep 2016 10:06:40 +0100 Subject: [PATCH 4/8] Removed lava flan when dead (custom on_die) --- lava_flan.lua | 1 + 1 file changed, 1 insertion(+) diff --git a/lava_flan.lua b/lava_flan.lua index 816a703..c43a0aa 100644 --- a/lava_flan.lua +++ b/lava_flan.lua @@ -51,6 +51,7 @@ mobs:register_mob("mobs_monster:lava_flan", { }, on_die = function(self, pos) minetest.set_node(pos, {name = "fire:basic_flame"}) + self.object:remove() end, }) From 1dc88486723a2c6234dc4aedfb7a37084c02f349 Mon Sep 17 00:00:00 2001 From: TenPlus1 Date: Tue, 6 Sep 2016 10:13:06 +0100 Subject: [PATCH 5/8] added flan on_die particles --- lava_flan.lua | 1 + 1 file changed, 1 insertion(+) diff --git a/lava_flan.lua b/lava_flan.lua index c43a0aa..c6ab06a 100644 --- a/lava_flan.lua +++ b/lava_flan.lua @@ -52,6 +52,7 @@ mobs:register_mob("mobs_monster:lava_flan", { on_die = function(self, pos) minetest.set_node(pos, {name = "fire:basic_flame"}) self.object:remove() + effect(pos, 20, "fire_basic_flame.png") end, }) From 9178eb72074ae110d928ac864c6d9fbb18063180 Mon Sep 17 00:00:00 2001 From: TenPlus1 Date: Tue, 4 Oct 2016 19:40:46 +0100 Subject: [PATCH 6/8] Increase number of monsters in one area --- dirt_monster.lua | 2 +- dungeon_master.lua | 2 +- mese_monster.lua | 2 +- oerkki.lua | 2 +- sand_monster.lua | 2 +- spider.lua | 2 +- stone_monster.lua | 2 +- tree_monster.lua | 2 +- 8 files changed, 8 insertions(+), 8 deletions(-) diff --git a/dirt_monster.lua b/dirt_monster.lua index 2753320..c19e201 100644 --- a/dirt_monster.lua +++ b/dirt_monster.lua @@ -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, 1, 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 7ace6a6..9a35d55 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, 1, -70) +mobs:register_spawn("mobs_monster:dungeon_master", {"default:stone"}, 7, 0, 7000, 2, -70) mobs:register_egg("mobs_monster:dungeon_master", S("Dungeon Master"), "fire_basic_flame.png", 1, true) diff --git a/mese_monster.lua b/mese_monster.lua index bf5eefd..dbcf209 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, 1, -20) +mobs:register_spawn("mobs_monster:mese_monster", {"default:stone"}, 7, 0, 5000, 2, -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..a12eea1 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, 1, -10) +mobs:register_spawn("mobs_monster:oerkki", {"default:stone"}, 7, 0, 7000, 2, -10) mobs:register_egg("mobs_monster:oerkki", S("Oerkki"), "default_obsidian.png", 1) diff --git a/sand_monster.lua b/sand_monster.lua index ea87814..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, 1, 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 0a0a410..7db6a33 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, 1, 71) + {"default:desert_stone", "ethereal:crystal_dirt"}, 13, 0, 7000, 2, 71) mobs:register_egg("mobs_monster:spider", S("Spider"), "mobs_cobweb.png", 1) diff --git a/stone_monster.lua b/stone_monster.lua index f4ea6f2..ca52f08 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, 1, 0) +mobs:register_spawn("mobs_monster:stone_monster", {"default:stone", "default:desert_stone"}, 7, 0, 7000, 2, 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..b936800 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, 1, 31000, false) + {"default:leaves", "default:jungleleaves"}, 7, 0, 7000, 2, 31000, false) mobs:register_egg("mobs_monster:tree_monster", S("Tree Monster"), "default_tree_top.png", 1) From 7f9ace3d6f4da74e894d2105861720f7ec52431f Mon Sep 17 00:00:00 2001 From: TenPlus1 Date: Tue, 4 Oct 2016 20:08:17 +0100 Subject: [PATCH 7/8] Increase number of monsters in area --- dirt_monster.lua | 2 +- lava_flan.lua | 2 +- oerkki.lua | 2 +- sand_monster.lua | 2 +- spider.lua | 2 +- stone_monster.lua | 2 +- tree_monster.lua | 2 +- 7 files changed, 7 insertions(+), 7 deletions(-) diff --git a/dirt_monster.lua b/dirt_monster.lua index c19e201..675da01 100644 --- a/dirt_monster.lua +++ b/dirt_monster.lua @@ -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, 2, 31000, false) + {"default:dirt_with_grass", "ethereal:gray_dirt"}, 7, 0, 7000, 3, 31000, false) mobs:register_egg("mobs_monster:dirt_monster", S("Dirt Monster"), "default_dirt.png", 1) diff --git a/lava_flan.lua b/lava_flan.lua index c6ab06a..964db14 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, 2, 0) +mobs:register_spawn("mobs_monster:lava_flan", {"default:lava_source"}, 15, 0, 1000, 3, 0) mobs:register_egg("mobs_monster:lava_flan", S("Lava Flan"), "default_lava.png", 1) diff --git a/oerkki.lua b/oerkki.lua index a12eea1..c869531 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, 2, -10) +mobs:register_spawn("mobs_monster:oerkki", {"default:stone"}, 7, 0, 7000, 3, -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..d378b99 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, 2, 31000) +mobs:register_spawn("mobs_monster:sand_monster", {"default:desert_sand"}, 20, 0, 7000, 4, 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 7db6a33..aad2b11 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, 2, 71) + {"default:desert_stone", "ethereal:crystal_dirt"}, 13, 0, 7000, 3, 71) mobs:register_egg("mobs_monster:spider", S("Spider"), "mobs_cobweb.png", 1) diff --git a/stone_monster.lua b/stone_monster.lua index ca52f08..124b730 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, 2, 0) +mobs:register_spawn("mobs_monster:stone_monster", {"default:stone", "default:desert_stone"}, 7, 0, 7000, 3, 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 b936800..0856955 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, 2, 31000, false) + {"default:leaves", "default:jungleleaves"}, 7, 0, 7000, 3, 31000, false) mobs:register_egg("mobs_monster:tree_monster", S("Tree Monster"), "default_tree_top.png", 1) From 28e7af4804e21163164d1696ba92f2e49cdd4d59 Mon Sep 17 00:00:00 2001 From: TenPlus1 Date: Sat, 8 Oct 2016 10:27:02 +0100 Subject: [PATCH 8/8] added arror tail example to dungeon master's fireball --- dungeon_master.lua | 3 +++ 1 file changed, 3 insertions(+) diff --git a/dungeon_master.lua b/dungeon_master.lua index 9a35d55..aa6ca6f 100644 --- a/dungeon_master.lua +++ b/dungeon_master.lua @@ -71,6 +71,9 @@ 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, -- direct hit, no fire... just plenty of pain hit_player = function(self, player)