added mobs redo spider spawner

master
juraj 2016-02-16 00:52:02 +01:00
parent 228458f568
commit 23182289ad
3 changed files with 14 additions and 5 deletions

View File

@ -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

View File

@ -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=""
}
},

View File

@ -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.")
print ("[Mod] Spawners 0.4 Loaded.")