Added new fish (angler, jelly, trout, seahorse, piranha)

master
tenplus1 2021-03-20 10:44:13 +00:00
parent a1e9b727a9
commit 9503163eb3
7 changed files with 29 additions and 6 deletions

View File

@ -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

View File

@ -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 :)

Binary file not shown.

After

Width:  |  Height:  |  Size: 387 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 209 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 248 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 184 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 279 B