added mobs redo spider spawner
This commit is contained in:
parent
228458f568
commit
23182289ad
7
API.lua
7
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
|
||||
|
10
config.lua
10
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=""
|
||||
}
|
||||
},
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user