certain fish can only be found in specific biomes
This commit is contained in:
parent
e2f04c7a59
commit
29672874ea
@ -19,7 +19,8 @@ Ethereal Mapgen mod for Minetest (works on all except v6)
|
||||
- Added smaller redwood trees, to grow large variety 2 saplings required
|
||||
- Added Flight Potion (etherium dust arch, fire dust middle, empty bottle bottom)
|
||||
- Added new Fishing mechanics (inspired by Rootyjr's on mineclone2)
|
||||
- Added fishing api to add new items- ethereal.add_item(fish, junk, bonus)
|
||||
- Added fishing api to add new items (read API.txt file)
|
||||
- Certain fish can only be found in specific biomes
|
||||
|
||||
### 1.27
|
||||
|
||||
|
12
fishing.lua
12
fishing.lua
@ -10,13 +10,13 @@ local fish_items = {
|
||||
"ethereal:fish_bluefin",
|
||||
"ethereal:fish_blueram",
|
||||
"ethereal:fish_catfish",
|
||||
"ethereal:fish_clownfish",
|
||||
"ethereal:fish_pike",
|
||||
"ethereal:fish_flathead",
|
||||
{"ethereal:fish_clownfish", "savanna"},
|
||||
{"ethereal:fish_pike", "grassy"},
|
||||
{"ethereal:fish_flathead", "junglee"},
|
||||
"ethereal:fish_plaice",
|
||||
"ethereal:fish_pufferfish",
|
||||
{"ethereal:fish_pufferfish", "desert_ocean"},
|
||||
"ethereal:fish_salmon",
|
||||
"ethereal:fish_chichlid",
|
||||
{"ethereal:fish_chichlid", "junglee_ocean"},
|
||||
{"ethereal:fish_coy", "sakura"}
|
||||
}
|
||||
|
||||
@ -290,7 +290,7 @@ local find_item = function(list, pos)
|
||||
|
||||
elseif type(item) == "table" then
|
||||
|
||||
if biome == "" or item[2] == "" or item[2]:find(biome) then
|
||||
if item[2] == "" or item[2]:find(biome) then
|
||||
table.insert(items, item[1])
|
||||
end
|
||||
end
|
||||
|
Loading…
x
Reference in New Issue
Block a user