From dfdbedadc71fe5715ab9e09fb262efba241458ea Mon Sep 17 00:00:00 2001 From: Juraj Vajda Date: Thu, 14 Jan 2016 20:02:30 +0000 Subject: [PATCH 1/3] README.md edited online with Bitbucket --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 671cb3c..1056691 100644 --- a/README.md +++ b/README.md @@ -9,7 +9,7 @@ Currently it works with [Pyramids Mummy](https://forum.minetest.net/viewtopic.ph ![spawner_waiting_medium.gif](https://bitbucket.org/repo/y69Me7/images/246761582-spawner_waiting_medium.gif) ![spawner_animated_medium.gif](https://bitbucket.org/repo/y69Me7/images/1359872529-spawner_animated_medium.gif) ## YouTube video ## -[Minetest - spawners MOD](https://youtu.be/TlaMVl0ZDtw) +[Minetest - spawners MOD v0.1](https://youtu.be/TlaMVl0ZDtw) ## Mod dependencies ## * default From 53b4a80c7088649756419866cdd0c025aae29070 Mon Sep 17 00:00:00 2001 From: Juraj Vajda Date: Sun, 24 Jan 2016 01:18:24 +0100 Subject: [PATCH 2/3] changing warthog to pumba --- config.lua | 6 +++--- spawners_mobs.lua | 4 ++-- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/config.lua b/config.lua index 62410e6..7a20067 100644 --- a/config.lua +++ b/config.lua @@ -53,12 +53,12 @@ MOBS_PROPS = { sound_custom="" }, { - name="warthog", + name="pumba", egg_name_custom="", dummy_size={x=0.62,y=0.62}, dummy_offset=-0.3, - dummy_mesh="mobs_warthog.x", - dummy_texture={"mobs_warthog.png"}, + dummy_mesh="mobs_pumba.x", + dummy_texture={"mobs_pumba.png"}, night_only=false, sound_custom="mobs_pig" }, diff --git a/spawners_mobs.lua b/spawners_mobs.lua index 34d1361..d46f143 100644 --- a/spawners_mobs.lua +++ b/spawners_mobs.lua @@ -140,8 +140,8 @@ function spawners.create(mob_name, mod_prefix, size, offset, mesh, texture, nigh minetest.register_abm({ nodenames = {"spawners:"..mod_prefix.."_"..mob_name.."_spawner", "spawners:"..mod_prefix.."_"..mob_name.."_spawner_active", "spawners:"..mod_prefix.."_"..mob_name.."_spawner_overheat", "spawners:"..mod_prefix.."_"..mob_name.."_spawner_waiting"}, neighbors = {"air"}, - interval = 5.0, - chance = 7, + interval = 10, + chance = 2, action = function(pos, node, active_object_count, active_object_count_wider) local random_pos, waiting = spawners.check_node_status(pos, mob_name, night_only) From d9737302c967583aa3723f063ee3981745b3ce27 Mon Sep 17 00:00:00 2001 From: Juraj Vajda Date: Fri, 29 Jan 2016 23:28:06 +0100 Subject: [PATCH 3/3] spawning abm more rare --- spawners_mobs.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spawners_mobs.lua b/spawners_mobs.lua index d46f143..dd0bbec 100644 --- a/spawners_mobs.lua +++ b/spawners_mobs.lua @@ -141,7 +141,7 @@ function spawners.create(mob_name, mod_prefix, size, offset, mesh, texture, nigh nodenames = {"spawners:"..mod_prefix.."_"..mob_name.."_spawner", "spawners:"..mod_prefix.."_"..mob_name.."_spawner_active", "spawners:"..mod_prefix.."_"..mob_name.."_spawner_overheat", "spawners:"..mod_prefix.."_"..mob_name.."_spawner_waiting"}, neighbors = {"air"}, interval = 10, - chance = 2, + chance = 4, action = function(pos, node, active_object_count, active_object_count_wider) local random_pos, waiting = spawners.check_node_status(pos, mob_name, night_only)