diff --git a/README.md b/README.md index 99cdefa..82e14e3 100644 --- a/README.md +++ b/README.md @@ -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 diff --git a/fishing.lua b/fishing.lua index 50bca77..2e3a78b 100644 --- a/fishing.lua +++ b/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