diff --git a/API.lua b/API.lua index 1ac8d2f..ea9a6f8 100644 --- a/API.lua +++ b/API.lua @@ -132,7 +132,6 @@ end function spawners.check_around_radius(pos) local player_near = false - local found_node = false local radius = 21 local node_ore_pos = nil @@ -162,7 +161,7 @@ function spawners.check_around_radius_ores(pos, check_node) end function spawners.check_node_status(pos, mob, night_only) - local player_near = spawners.check_around_radius(pos) + local player_near = spawners.check_around_radius(pos) if player_near then local random_pos = false @@ -240,11 +239,11 @@ function spawners.check_node_status(pos, mob, night_only) if not (19359 > tod and tod > 5200) or node_light < min_node_light then return random_pos else - return false, true, found_node + return false, true end end - return random_pos, false, found_node + return random_pos, false else return false, true end diff --git a/config.lua b/config.lua index 5782e57..dac0225 100644 --- a/config.lua +++ b/config.lua @@ -81,6 +81,16 @@ MOBS_PROPS = { dummy_texture={"mobs_kitten_ginger.png"}, night_only=false, sound_custom="" + }, + { + name="spider", + egg_name_custom="", + dummy_size={x=2,y=2}, + dummy_offset=-0.2, + dummy_mesh="mobs_spider.x", + dummy_texture={"mobs_spider.png"}, + night_only=false, + sound_custom="" } }, diff --git a/init.lua b/init.lua index 8d88bcc..9e8e7de 100644 --- a/init.lua +++ b/init.lua @@ -7,4 +7,4 @@ dofile(minetest.get_modpath("spawners").."/spawners_mobs.lua") -- Spawners for ores dofile(minetest.get_modpath("spawners").."/spawners_ores.lua") -print ("[MOD] Spawners 0.4 Loaded.") \ No newline at end of file +print ("[Mod] Spawners 0.4 Loaded.") \ No newline at end of file