Added new fish (angler, jelly, trout, seahorse, piranha)
This commit is contained in:
parent
a1e9b727a9
commit
9503163eb3
30
fishing.lua
30
fishing.lua
@ -10,14 +10,19 @@ local fish_items = {
|
|||||||
"ethereal:fish_bluefin",
|
"ethereal:fish_bluefin",
|
||||||
"ethereal:fish_blueram",
|
"ethereal:fish_blueram",
|
||||||
"ethereal:fish_catfish",
|
"ethereal:fish_catfish",
|
||||||
|
"ethereal:fish_plaice",
|
||||||
|
"ethereal:fish_salmon",
|
||||||
{"ethereal:fish_clownfish", "savanna"},
|
{"ethereal:fish_clownfish", "savanna"},
|
||||||
{"ethereal:fish_pike", "grassy"},
|
{"ethereal:fish_pike", "grassy"},
|
||||||
{"ethereal:fish_flathead", "jungle"},
|
{"ethereal:fish_flathead", "jungle"},
|
||||||
"ethereal:fish_plaice",
|
|
||||||
{"ethereal:fish_pufferfish", "desert_ocean"},
|
{"ethereal:fish_pufferfish", "desert_ocean"},
|
||||||
"ethereal:fish_salmon",
|
|
||||||
{"ethereal:fish_chichlid", "junglee_ocean"},
|
{"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 = {
|
local junk_items = {
|
||||||
@ -479,16 +484,29 @@ local fish = {
|
|||||||
{"Pufferfish", "pufferfish", -2},
|
{"Pufferfish", "pufferfish", -2},
|
||||||
{"Coy", "coy", 2},
|
{"Coy", "coy", 2},
|
||||||
{"Salmon", "salmon", 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
|
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], {
|
minetest.register_craftitem("ethereal:fish_" .. fish[n][2], {
|
||||||
description = S(fish[n][1]),
|
description = S(fish[n][1]),
|
||||||
inventory_image = "ethereal_fish_" .. fish[n][2] .. ".png",
|
inventory_image = "ethereal_fish_" .. fish[n][2] .. ".png",
|
||||||
on_use = minetest.item_eat(fish[n][3]),
|
on_use = usage,
|
||||||
groups = {food_fish_raw = 1, ethereal_fish = 1}
|
groups = groups
|
||||||
})
|
})
|
||||||
end
|
end
|
||||||
|
|
||||||
|
@ -43,6 +43,11 @@ Free textures from epicwannehz on DeviantArt
|
|||||||
ethereal_fish_pufferfish.png
|
ethereal_fish_pufferfish.png
|
||||||
ethereal_fish_redsnapper.png
|
ethereal_fish_redsnapper.png
|
||||||
ethereal_fish_salmon.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
|
Notice: Most texture authors are written inside code as comments, anything with no name
|
||||||
I have more than likely created myself :)
|
I have more than likely created myself :)
|
||||||
|
BIN
textures/ethereal_fish_angler.png
Normal file
BIN
textures/ethereal_fish_angler.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 387 B |
BIN
textures/ethereal_fish_jellyfish.png
Normal file
BIN
textures/ethereal_fish_jellyfish.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 209 B |
BIN
textures/ethereal_fish_piranha.png
Normal file
BIN
textures/ethereal_fish_piranha.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 248 B |
BIN
textures/ethereal_fish_seahorse.png
Normal file
BIN
textures/ethereal_fish_seahorse.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 184 B |
BIN
textures/ethereal_fish_trout.png
Normal file
BIN
textures/ethereal_fish_trout.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 279 B |
Loading…
x
Reference in New Issue
Block a user