added mobs redo spider spawner
This commit is contained in:
parent
228458f568
commit
23182289ad
5
API.lua
5
API.lua
@ -132,7 +132,6 @@ end
|
|||||||
|
|
||||||
function spawners.check_around_radius(pos)
|
function spawners.check_around_radius(pos)
|
||||||
local player_near = false
|
local player_near = false
|
||||||
local found_node = false
|
|
||||||
local radius = 21
|
local radius = 21
|
||||||
local node_ore_pos = nil
|
local node_ore_pos = nil
|
||||||
|
|
||||||
@ -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
|
if not (19359 > tod and tod > 5200) or node_light < min_node_light then
|
||||||
return random_pos
|
return random_pos
|
||||||
else
|
else
|
||||||
return false, true, found_node
|
return false, true
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
return random_pos, false, found_node
|
return random_pos, false
|
||||||
else
|
else
|
||||||
return false, true
|
return false, true
|
||||||
end
|
end
|
||||||
|
10
config.lua
10
config.lua
@ -81,6 +81,16 @@ MOBS_PROPS = {
|
|||||||
dummy_texture={"mobs_kitten_ginger.png"},
|
dummy_texture={"mobs_kitten_ginger.png"},
|
||||||
night_only=false,
|
night_only=false,
|
||||||
sound_custom=""
|
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=""
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
|
2
init.lua
2
init.lua
@ -7,4 +7,4 @@ dofile(minetest.get_modpath("spawners").."/spawners_mobs.lua")
|
|||||||
-- Spawners for ores
|
-- Spawners for ores
|
||||||
dofile(minetest.get_modpath("spawners").."/spawners_ores.lua")
|
dofile(minetest.get_modpath("spawners").."/spawners_ores.lua")
|
||||||
|
|
||||||
print ("[MOD] Spawners 0.4 Loaded.")
|
print ("[Mod] Spawners 0.4 Loaded.")
|
Loading…
Reference in New Issue
Block a user