mirror of
https://github.com/sys4-fr/server-nalc.git
synced 2024-12-28 03:30:36 +01:00
330d63ae96
- I found recently that MossManikin's fishing mod is outdated: its last commit has been sent on August 2013. However, there are some forks of it. The mod updated is Xanthin's one. It updates API, and a little bit of global variables. - Variables specifically modified for MFF have been changed to their last state. - The fork works perfectly fine for 0.4.11-dev - It can use intllib for translation
80 lines
2.9 KiB
Lua
80 lines
2.9 KiB
Lua
-----------------------------------------------------------------------------------------------
|
|
-- Fishing - Mossmanikin's version - Fishes 0.0.4
|
|
-- License (code & textures): WTFPL
|
|
-----------------------------------------------------------------------------------------------
|
|
|
|
-- Boilerplate to support localized strings if intllib mod is installed.
|
|
local S
|
|
if (minetest.get_modpath("intllib")) then
|
|
dofile(minetest.get_modpath("intllib").."/intllib.lua")
|
|
S = intllib.Getter(minetest.get_current_modname())
|
|
else
|
|
S = function ( s ) return s end
|
|
end
|
|
|
|
-----------------------------------------------------------------------------------------------
|
|
-- Fish
|
|
-----------------------------------------------------------------------------------------------
|
|
minetest.register_craftitem("fishing:fish_raw", {
|
|
description = S("Fish"),
|
|
groups = {},
|
|
inventory_image = "fishing_fish.png",
|
|
on_use = minetest.item_eat(2),
|
|
})
|
|
-----------------------------------------------------
|
|
-- Roasted Fish
|
|
-----------------------------------------------------
|
|
minetest.register_craftitem("fishing:fish", {
|
|
description = S("Roasted Fish"),
|
|
groups = {},
|
|
inventory_image = "fishing_fish_cooked.png",
|
|
on_use = minetest.item_eat(4),
|
|
})
|
|
-----------------------------------------------------
|
|
-- Sushi
|
|
-----------------------------------------------------
|
|
minetest.register_craftitem("fishing:sushi", {
|
|
description = S("Sushi (Hoso Maki)"),
|
|
groups = {},
|
|
inventory_image = "fishing_sushi.png",
|
|
on_use = minetest.item_eat(6),
|
|
})
|
|
|
|
-----------------------------------------------------------------------------------------------
|
|
-- Whatthef... it's a freakin' Shark!
|
|
-----------------------------------------------------------------------------------------------
|
|
minetest.register_craftitem("fishing:shark", {
|
|
description = S("Shark"),
|
|
groups = {},
|
|
inventory_image = "fishing_shark.png",
|
|
on_use = minetest.item_eat(2),
|
|
})
|
|
-----------------------------------------------------
|
|
-- Roasted Shark
|
|
-----------------------------------------------------
|
|
minetest.register_craftitem("fishing:shark_cooked", {
|
|
description = S("Roasted Shark"),
|
|
groups = {},
|
|
inventory_image = "fishing_shark_cooked.png",
|
|
on_use = minetest.item_eat(6),
|
|
})
|
|
|
|
-----------------------------------------------------------------------------------------------
|
|
-- Pike
|
|
-----------------------------------------------------------------------------------------------
|
|
minetest.register_craftitem("fishing:pike", {
|
|
description = S("Northern Pike"),
|
|
groups = {},
|
|
inventory_image = "fishing_pike.png",
|
|
on_use = minetest.item_eat(2),
|
|
})
|
|
-----------------------------------------------------
|
|
-- Roasted Pike
|
|
-----------------------------------------------------
|
|
minetest.register_craftitem("fishing:pike_cooked", {
|
|
description = S("Roasted Northern Pike"),
|
|
groups = {},
|
|
inventory_image = "fishing_pike_cooked.png",
|
|
on_use = minetest.item_eat(6),
|
|
})
|