1
0
Fork 0

Add clownfish, pufferfish, salmon

objects
Wuzzy 2017-02-01 15:29:43 +01:00
parent e3a3f97974
commit 989f29fae6
5 changed files with 47 additions and 8 deletions

View File

@ -18,20 +18,17 @@ minetest.register_tool("mcl_fishing:fishing_rod", {
if r <= 60 then if r <= 60 then
itemname = "mcl_fishing:fish_raw" itemname = "mcl_fishing:fish_raw"
elseif r <= 85 then elseif r <= 85 then
itemname = "mcl_fishing:fish_raw" itemname = "mcl_fishing:salmon_raw"
--itemname = "mcl_core:salmon"
elseif r <= 87 then elseif r <= 87 then
itemname = "mcl_fishing:fish_raw" itemname = "mcl_fishing:clownfish_raw"
--itemname = "mcl_core:clownfish"
else else
itemname = "mcl_fishing:fish_raw" itemname = "mcl_fishing:pufferfish_raw"
--itemname = "mcl_core:pufferfish"
end end
elseif r <= 95 then elseif r <= 95 then
-- Junk -- Junk
r = math.random(1, 83) r = math.random(1, 83)
if r <= 10 then if r <= 10 then
itemname = "mcl_fishing:bowl" itemname = "mcl_core:bowl"
elseif r <= 12 then elseif r <= 12 then
-- TODO: Damaged -- TODO: Damaged
itemname = "mcl_fishing:fishing_rod" itemname = "mcl_fishing:fishing_rod"
@ -62,7 +59,7 @@ minetest.register_tool("mcl_fishing:fishing_rod", {
r = math.random(1, 6) r = math.random(1, 6)
if r == 1 then if r == 1 then
-- TODO: Enchanted and damaged -- TODO: Enchanted and damaged
itemname = "throwing:bow" itemname = "mcl_throwing:bow"
elseif r == 2 then elseif r == 2 then
-- TODO: Enchanted book -- TODO: Enchanted book
itemname = "mcl_core:book" itemname = "mcl_core:book"
@ -137,3 +134,45 @@ minetest.register_craft({
cooktime = 10, 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 },
})

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 598 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 588 B