-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
77 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,72 @@ | ||
-- Add extra areas where fish spawn | ||
|
||
local l_spawn_chance = 10000 | ||
local l_water_level = minetest.settings:get("water_level") | ||
local l_max_height_Earth = 777 -- Vacuum sometimes extends well below 1k | ||
local l_max_height_Mars = 15777 | ||
local l_min_height_Mars = 11111 | ||
|
||
-- Extend Earth | ||
mobs:spawn({ | ||
name = "mobs_fish:clownfish", | ||
nodes = { | ||
"default:water_source", "default:water_flowing", | ||
"default:river_water_source", "default:river_water_flowing" | ||
}, | ||
neighbors = {"default:sand","default:dirt","group:seaplants","group:seacoral"}, | ||
min_light = 5, | ||
interval = 30, | ||
chance = l_spawn_chance, | ||
max_height = l_max_height_Earth, | ||
min_height = l_water_level, | ||
active_object_count = 5 | ||
}) | ||
|
||
|
||
mobs:spawn({ | ||
name = "mobs_fish:tropical", | ||
nodes = { | ||
"default:water_source", "default:water_flowing", | ||
"default:river_water_source", "default:river_water_flowing" | ||
}, | ||
neighbors = {"default:sand","default:dirt","group:seaplants","group:seacoral"}, | ||
min_light = 5, | ||
interval = 30, | ||
chance = l_spawn_chance, | ||
max_height = l_max_height_Earth, | ||
min_height = l_water_level, | ||
active_object_count = 5 | ||
}) | ||
|
||
|
||
-- Extend Mars | ||
mobs:spawn({ | ||
name = "mobs_fish:clownfish", | ||
nodes = { | ||
"default:water_source", "default:water_flowing", | ||
"default:river_water_source", "default:river_water_flowing" | ||
}, | ||
neighbors = {"default:sand","default:dirt","group:seaplants","group:seacoral"}, | ||
min_light = 5, | ||
interval = 30, | ||
chance = l_spawn_chance, | ||
max_height = l_max_height_Mars, | ||
min_height = l_min_height_Mars, | ||
active_object_count = 5 | ||
}) | ||
|
||
|
||
mobs:spawn({ | ||
name = "mobs_fish:tropical", | ||
nodes = { | ||
"default:water_source", "default:water_flowing", | ||
"default:river_water_source", "default:river_water_flowing" | ||
}, | ||
neighbors = {"default:sand","default:dirt","group:seaplants","group:seacoral"}, | ||
min_light = 5, | ||
interval = 30, | ||
chance = l_spawn_chance, | ||
max_height = l_max_height_Mars, | ||
min_height = l_min_height_Mars, | ||
active_object_count = 5 | ||
}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -35,6 +35,7 @@ missions, | |
mobs, | ||
mobs_animal, | ||
mobs_monster, | ||
mobs_fish, | ||
moreblocks, | ||
multitools, | ||
mypaths, | ||
|