diff --git a/fishing.lua b/fishing.lua index f52777a..f5e643c 100644 --- a/fishing.lua +++ b/fishing.lua @@ -10,14 +10,19 @@ local fish_items = { "ethereal:fish_bluefin", "ethereal:fish_blueram", "ethereal:fish_catfish", + "ethereal:fish_plaice", + "ethereal:fish_salmon", {"ethereal:fish_clownfish", "savanna"}, {"ethereal:fish_pike", "grassy"}, {"ethereal:fish_flathead", "jungle"}, - "ethereal:fish_plaice", {"ethereal:fish_pufferfish", "desert_ocean"}, - "ethereal:fish_salmon", {"ethereal:fish_chichlid", "junglee_ocean"}, - {"ethereal:fish_coy", "sakura"} + {"ethereal:fish_coy", "sakura"}, + {"ethereal:fish_angler", "ocean"}, + {"ethereal:fish_jellyfish", "ocean"}, + {"ethereal:fish_seahorse", "ocean"}, + {"ethereal:fish_piranha", "jungle"}, + {"ethereal:fish_trout", "ocean"} } local junk_items = { @@ -479,16 +484,29 @@ local fish = { {"Pufferfish", "pufferfish", -2}, {"Coy", "coy", 2}, {"Salmon", "salmon", 2}, - {"Chichlid", "chichlid", 2} + {"Chichlid", "chichlid", 2}, + {"Angler", "angler", 2}, + {"Jellyfish", "jellyfish", 0}, + {"Seahorse", "seahorse", 0}, + {"Piranha", "piranha", 2}, + {"Trout", "trout", 2} } for n = 1, #fish do + local usage + local groups + + if fish[n][3] > 0 then + usage = minetest.item_eat(fish[n][3]) + groups = {food_fish_raw = 1, ethereal_fish = 1} + end + minetest.register_craftitem("ethereal:fish_" .. fish[n][2], { description = S(fish[n][1]), inventory_image = "ethereal_fish_" .. fish[n][2] .. ".png", - on_use = minetest.item_eat(fish[n][3]), - groups = {food_fish_raw = 1, ethereal_fish = 1} + on_use = usage, + groups = groups }) end diff --git a/license.txt b/license.txt index a4b1f3a..2160fbd 100644 --- a/license.txt +++ b/license.txt @@ -43,6 +43,11 @@ Free textures from epicwannehz on DeviantArt ethereal_fish_pufferfish.png ethereal_fish_redsnapper.png ethereal_fish_salmon.png + ethereal_fish_trout.png + ethereal_fish_piranha.png + ethereal_fish_angler.png + ethereal_fish_jellyfish.png + ethereal_fish_seahorse.png Notice: Most texture authors are written inside code as comments, anything with no name I have more than likely created myself :) diff --git a/textures/ethereal_fish_angler.png b/textures/ethereal_fish_angler.png new file mode 100644 index 0000000..5da9e4d Binary files /dev/null and b/textures/ethereal_fish_angler.png differ diff --git a/textures/ethereal_fish_jellyfish.png b/textures/ethereal_fish_jellyfish.png new file mode 100644 index 0000000..93d5213 Binary files /dev/null and b/textures/ethereal_fish_jellyfish.png differ diff --git a/textures/ethereal_fish_piranha.png b/textures/ethereal_fish_piranha.png new file mode 100644 index 0000000..d7a34f2 Binary files /dev/null and b/textures/ethereal_fish_piranha.png differ diff --git a/textures/ethereal_fish_seahorse.png b/textures/ethereal_fish_seahorse.png new file mode 100644 index 0000000..803a26e Binary files /dev/null and b/textures/ethereal_fish_seahorse.png differ diff --git a/textures/ethereal_fish_trout.png b/textures/ethereal_fish_trout.png new file mode 100644 index 0000000..745e005 Binary files /dev/null and b/textures/ethereal_fish_trout.png differ