comments, readme, depends and abm tweaks

This commit is contained in:
Juraj Vajda 2016-01-14 20:21:04 +01:00
parent 14037de2f6
commit e5b51a69c9
3 changed files with 7 additions and 5 deletions

View File

@ -1,7 +1,7 @@
# Spawners #
This MOD for Minetest let the player craft mob Spawner blocks.
This MOD for Minetest let the player craft mob Spawner blocks. Mobs are spawning randomly in a short intervals.
Easy to implement new mob mods, but you must make sure that those mods following the right naming convention and have sounds, textures, models with the right name.
Easy to implement new mob mods just look in to config.lua.
Currently it works with [Pyramids Mummy](https://forum.minetest.net/viewtopic.php?id=7063), [Mobs Redo](https://forum.minetest.net/viewtopic.php?f=11&t=9917) and [Creatures](https://forum.minetest.net/viewtopic.php?f=11&t=8638).
@ -17,6 +17,7 @@ Currently it works with [Pyramids Mummy](https://forum.minetest.net/viewtopic.ph
* fake_fire?
* xpanes?
* creatures?
* pyramids?
mobs redo, creatures are supported mods
@ -38,10 +39,11 @@ WTFPL
* more convenient disable/enable, add/remove new MODs in config.lua file - added property for custom sounds
* added sound for bunny
* fixed sound for pyramids:mummy
* added footsteps and digging sounds for the spawners
* added footsteps and dug sounds for the spawners
* shorter and more effective code, easier to read, fixed variable namings
* ABM tweak - longer delay to trigger but bigger chance for spawn entity
* disabled ABM catch_up
* added normal map texture for default spawner
### 0.2 ###
* support pyramids mod - mummy

View File

@ -16,7 +16,7 @@
-- [*] -> MANDATORY - has to be filled in!
-- mods what should be enabled and loded
-- mods what should be enabled and loded, remove/add the one you want to load
ENABLED_MODS = {"mobs", "pyramids", "creatures"}
-- mobs properties - setup all you mobs here

View File

@ -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 = 5.0,
chance = 8,
chance = 7,
action = function(pos, node, active_object_count, active_object_count_wider)
local random_pos, waiting = spawners.check_node_status(pos, mob_name, night_only)