mirror of
https://git.minetest.land/VoxeLibre/VoxeLibre.git
synced 2024-12-27 10:29:34 +01:00
Add clownfish, pufferfish, salmon
This commit is contained in:
parent
e3a3f97974
commit
989f29fae6
5 changed files with 47 additions and 8 deletions
|
@ -18,20 +18,17 @@ minetest.register_tool("mcl_fishing:fishing_rod", {
|
|||
if r <= 60 then
|
||||
itemname = "mcl_fishing:fish_raw"
|
||||
elseif r <= 85 then
|
||||
itemname = "mcl_fishing:fish_raw"
|
||||
--itemname = "mcl_core:salmon"
|
||||
itemname = "mcl_fishing:salmon_raw"
|
||||
elseif r <= 87 then
|
||||
itemname = "mcl_fishing:fish_raw"
|
||||
--itemname = "mcl_core:clownfish"
|
||||
itemname = "mcl_fishing:clownfish_raw"
|
||||
else
|
||||
itemname = "mcl_fishing:fish_raw"
|
||||
--itemname = "mcl_core:pufferfish"
|
||||
itemname = "mcl_fishing:pufferfish_raw"
|
||||
end
|
||||
elseif r <= 95 then
|
||||
-- Junk
|
||||
r = math.random(1, 83)
|
||||
if r <= 10 then
|
||||
itemname = "mcl_fishing:bowl"
|
||||
itemname = "mcl_core:bowl"
|
||||
elseif r <= 12 then
|
||||
-- TODO: Damaged
|
||||
itemname = "mcl_fishing:fishing_rod"
|
||||
|
@ -62,7 +59,7 @@ minetest.register_tool("mcl_fishing:fishing_rod", {
|
|||
r = math.random(1, 6)
|
||||
if r == 1 then
|
||||
-- TODO: Enchanted and damaged
|
||||
itemname = "throwing:bow"
|
||||
itemname = "mcl_throwing:bow"
|
||||
elseif r == 2 then
|
||||
-- TODO: Enchanted book
|
||||
itemname = "mcl_core:book"
|
||||
|
@ -137,3 +134,45 @@ minetest.register_craft({
|
|||
cooktime = 10,
|
||||
})
|
||||
|
||||
-- Salmon
|
||||
minetest.register_craftitem("mcl_fishing:salmon_raw", {
|
||||
description = "Raw Salmon",
|
||||
inventory_image = "mcl_fishing_salmon_raw.png",
|
||||
on_use = minetest.item_eat(2),
|
||||
stack_max = 64,
|
||||
groups = { food=2, eatable = 2 },
|
||||
})
|
||||
|
||||
minetest.register_craftitem("mcl_fishing:salmon_cooked", {
|
||||
description = "Cooked Salmon",
|
||||
inventory_image = "mcl_fishing_salmon_cooked.png",
|
||||
on_use = minetest.item_eat(6),
|
||||
stack_max = 64,
|
||||
groups = { food=2, eatable=6 },
|
||||
})
|
||||
|
||||
minetest.register_craft({
|
||||
type = "cooking",
|
||||
output = "mcl_fishing:salmon_cooked",
|
||||
recipe = "mcl_fishing:salmon_raw",
|
||||
cooktime = 10,
|
||||
})
|
||||
|
||||
-- Clownfish
|
||||
minetest.register_craftitem("mcl_fishing:clownfish_raw", {
|
||||
description = "Clownfish",
|
||||
inventory_image = "mcl_fishing_clownfish_raw.png",
|
||||
on_use = minetest.item_eat(1),
|
||||
stack_max = 64,
|
||||
groups = { food=2, eatable = 1 },
|
||||
})
|
||||
|
||||
-- Pufferfish
|
||||
minetest.register_craftitem("mcl_fishing:pufferfish_raw", {
|
||||
description = "Pufferfish",
|
||||
inventory_image = "mcl_fishing_pufferfish_raw.png",
|
||||
on_use = minetest.item_eat(1),
|
||||
stack_max = 64,
|
||||
groups = { food=2, eatable=1 },
|
||||
})
|
||||
|
||||
|
|
BIN
mods/mcl_fishing/textures/mcl_fishing_clownfish_raw.png
Normal file
BIN
mods/mcl_fishing/textures/mcl_fishing_clownfish_raw.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 3.4 KiB |
BIN
mods/mcl_fishing/textures/mcl_fishing_pufferfish_raw.png
Normal file
BIN
mods/mcl_fishing/textures/mcl_fishing_pufferfish_raw.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 1.2 KiB |
BIN
mods/mcl_fishing/textures/mcl_fishing_salmon_cooked.png
Normal file
BIN
mods/mcl_fishing/textures/mcl_fishing_salmon_cooked.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 598 B |
BIN
mods/mcl_fishing/textures/mcl_fishing_salmon_raw.png
Normal file
BIN
mods/mcl_fishing/textures/mcl_fishing_salmon_raw.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 588 B |
Loading…
Reference in a new issue