Updated fishing mod from Xanthin fork
- 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
33
mods/fishing/bobber.lua
Executable file → Normal file
@ -5,6 +5,15 @@
|
|||||||
-- Supports: 3d_armor, animal_clownfish, animal_fish_blue_white, animal_rat, flowers_plus, mobs, seaplants
|
-- Supports: 3d_armor, animal_clownfish, animal_fish_blue_white, animal_rat, flowers_plus, mobs, seaplants
|
||||||
-----------------------------------------------------------------------------------------------
|
-----------------------------------------------------------------------------------------------
|
||||||
|
|
||||||
|
-- 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
|
||||||
|
|
||||||
local PoLeWeaR = (65535/(30-(math.random(15, 29))))
|
local PoLeWeaR = (65535/(30-(math.random(15, 29))))
|
||||||
local BooTSWear = (2000*(math.random(20, 29)))
|
local BooTSWear = (2000*(math.random(20, 29)))
|
||||||
-- Here's what you can catch
|
-- Here's what you can catch
|
||||||
@ -98,11 +107,11 @@ local FISHING_BOBBER_ENTITY={
|
|||||||
on_punch = function (self, puncher, time_from_last_punch, tool_capabilities, dir)
|
on_punch = function (self, puncher, time_from_last_punch, tool_capabilities, dir)
|
||||||
local player = puncher:get_player_name()
|
local player = puncher:get_player_name()
|
||||||
local inv = puncher:get_inventory()
|
local inv = puncher:get_inventory()
|
||||||
if MESSAGES == true then minetest.chat_send_player(player, "You didn't catch anything.", false) end -- fish escaped
|
if MESSAGES == true then minetest.chat_send_player(player, S("You didn't catch anything."), false) end -- fish escaped
|
||||||
if not minetest.setting_getbool("creative_mode") then
|
if not minetest.setting_getbool("creative_mode") then
|
||||||
if inv:room_for_item("main", {name="fishing:bait_worm", count=1, wear=0, metadata=""}) then
|
if inv:room_for_item("main", {name="fishing:bait_worm", count=1, wear=0, metadata=""}) then
|
||||||
inv:add_item("main", {name="fishing:bait_worm", count=1, wear=0, metadata=""})
|
inv:add_item("main", {name="fishing:bait_worm", count=1, wear=0, metadata=""})
|
||||||
if MESSAGES == true then minetest.chat_send_player(player, "The bait is still there.", false) end -- bait still there
|
if MESSAGES == true then minetest.chat_send_player(player, S("The bait is still there."), false) end -- bait still there
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
-- make sound and remove bobber
|
-- make sound and remove bobber
|
||||||
@ -130,12 +139,12 @@ local FISHING_BOBBER_ENTITY={
|
|||||||
minetest.add_node({x=pos.x, y=pos.y, z=pos.z}, {name="air"})
|
minetest.add_node({x=pos.x, y=pos.y, z=pos.z}, {name="air"})
|
||||||
if inv:room_for_item("main", {name=DRoP, count=1, wear=0, metadata=""}) then
|
if inv:room_for_item("main", {name=DRoP, count=1, wear=0, metadata=""}) then
|
||||||
inv:add_item("main", {name=DRoP, count=1, wear=0, metadata=""})
|
inv:add_item("main", {name=DRoP, count=1, wear=0, metadata=""})
|
||||||
if MESSAGES == true then say(player, "You caught "..MeSSaGe, false) end -- caught Plant
|
if MESSAGES == true then say(player, S("You caught "..MeSSaGe), false) end -- caught Plant
|
||||||
end
|
end
|
||||||
if not minetest.setting_getbool("creative_mode") then
|
if not minetest.setting_getbool("creative_mode") then
|
||||||
if inv:room_for_item("main", {name="fishing:bait_worm", count=1, wear=0, metadata=""}) then
|
if inv:room_for_item("main", {name="fishing:bait_worm", count=1, wear=0, metadata=""}) then
|
||||||
inv:add_item("main", {name="fishing:bait_worm", count=1, wear=0, metadata=""})
|
inv:add_item("main", {name="fishing:bait_worm", count=1, wear=0, metadata=""})
|
||||||
if MESSAGES == true then say(player, "The bait is still there.", false) end -- bait still there
|
if MESSAGES == true then say(player, S("The bait is still there."), false) end -- bait still there
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
@ -145,7 +154,7 @@ local FISHING_BOBBER_ENTITY={
|
|||||||
-- catch visible fish and invisible stuff
|
-- catch visible fish and invisible stuff
|
||||||
if self.object:get_hp() <= 300 then
|
if self.object:get_hp() <= 300 then
|
||||||
if math.random(1, 100) < FISH_CHANCE then
|
if math.random(1, 100) < FISH_CHANCE then
|
||||||
local chance = math.random(1, 122) -- ><((((º>
|
local chance = math.random(1, 122) -- ><((((º>
|
||||||
for i in pairs(CaTCH) do
|
for i in pairs(CaTCH) do
|
||||||
local MoD = CaTCH[i][1]
|
local MoD = CaTCH[i][1]
|
||||||
local iTeM = CaTCH[i][2]
|
local iTeM = CaTCH[i][2]
|
||||||
@ -164,42 +173,42 @@ local FISHING_BOBBER_ENTITY={
|
|||||||
MoD = "animal_fish_blue_white"
|
MoD = "animal_fish_blue_white"
|
||||||
iTeM = "fish_blue_white"
|
iTeM = "fish_blue_white"
|
||||||
WeaR = 0
|
WeaR = 0
|
||||||
MeSSaGe = "a Blue white fish."
|
MeSSaGe = S("a Blue white fish.")
|
||||||
obj:remove()
|
obj:remove()
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
-- add (in)visible fish to inventory
|
-- add (in)visible fish to inventory
|
||||||
if inv:room_for_item("main", {name=MoD..":"..iTeM, count=1, wear=WeaR, metadata=""}) then
|
if inv:room_for_item("main", {name=MoD..":"..iTeM, count=1, wear=WeaR, metadata=""}) then
|
||||||
inv:add_item("main", {name=MoD..":"..iTeM, count=1, wear=WeaR, metadata=""})
|
inv:add_item("main", {name=MoD..":"..iTeM, count=1, wear=WeaR, metadata=""})
|
||||||
if MESSAGES == true then say(player, "You caught "..MeSSaGe, false) end -- caught somethin'
|
if MESSAGES == true then say(player, S("You caught "..MeSSaGe), false) end -- caught somethin'
|
||||||
end
|
end
|
||||||
if not minetest.setting_getbool("creative_mode") then
|
if not minetest.setting_getbool("creative_mode") then
|
||||||
if GeTBaiTBack == true then
|
if GeTBaiTBack == true then
|
||||||
if inv:room_for_item("main", {name="fishing:bait_worm", count=1, wear=0, metadata=""}) then
|
if inv:room_for_item("main", {name="fishing:bait_worm", count=1, wear=0, metadata=""}) then
|
||||||
inv:add_item("main", {name="fishing:bait_worm", count=1, wear=0, metadata=""})
|
inv:add_item("main", {name="fishing:bait_worm", count=1, wear=0, metadata=""})
|
||||||
if MESSAGES == true then say(player, "The bait is still there.", false) end -- bait still there?
|
if MESSAGES == true then say(player, S("The bait is still there."), false) end -- bait still there?
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
else
|
else
|
||||||
if inv:room_for_item("main", {name="fishing:fish_raw", count=1, wear=0, metadata=""}) then
|
if inv:room_for_item("main", {name="fishing:fish_raw", count=1, wear=0, metadata=""}) then
|
||||||
inv:add_item("main", {name="fishing:fish_raw", count=1, wear=0, metadata=""})
|
inv:add_item("main", {name="fishing:fish_raw", count=1, wear=0, metadata=""})
|
||||||
if MESSAGES == true then say(player, "You caught a Fish.", false) end -- caught Fish
|
if MESSAGES == true then say(player, S("You caught a Fish."), false) end -- caught Fish
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
else --if math.random(1, 100) > FISH_CHANCE then
|
else --if math.random(1, 100) > FISH_CHANCE then
|
||||||
if MESSAGES == true then say(player, "Your fish escaped.", false) end -- fish escaped
|
if MESSAGES == true then say(player, S("Your fish escaped."), false) end -- fish escaped
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
if self.object:get_hp() > 300 and minetest.get_node(pos).name == "air" then
|
if self.object:get_hp() > 300 and minetest.get_node(pos).name == "air" then
|
||||||
if MESSAGES == true then say(player, "You didn't catch anything.", false) end -- fish escaped
|
if MESSAGES == true then say(player, S("You didn't catch anything."), false) end -- fish escaped
|
||||||
if not minetest.setting_getbool("creative_mode") then
|
if not minetest.setting_getbool("creative_mode") then
|
||||||
if math.random(1, 2) == 1 then
|
if math.random(1, 2) == 1 then
|
||||||
if inv:room_for_item("main", {name="fishing:bait_worm", count=1, wear=0, metadata=""}) then
|
if inv:room_for_item("main", {name="fishing:bait_worm", count=1, wear=0, metadata=""}) then
|
||||||
inv:add_item("main", {name="fishing:bait_worm", count=1, wear=0, metadata=""})
|
inv:add_item("main", {name="fishing:bait_worm", count=1, wear=0, metadata=""})
|
||||||
if MESSAGES == true then say(player, "The bait is still there.", false) end -- bait still there
|
if MESSAGES == true then say(player, S("The bait is still there."), false) end -- bait still there
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
29
mods/fishing/bobber_shark.lua
Executable file → Normal file
@ -3,6 +3,15 @@
|
|||||||
-- License (code & textures): WTFPL
|
-- 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
|
||||||
|
|
||||||
-- Here's what you can catch if you use a fish as bait
|
-- Here's what you can catch if you use a fish as bait
|
||||||
local CaTCH_BiG = {
|
local CaTCH_BiG = {
|
||||||
-- MoD iTeM WeaR MeSSaGe ("You caught "..) GeTBaiTBack NRMiN CHaNCe (../120)
|
-- MoD iTeM WeaR MeSSaGe ("You caught "..) GeTBaiTBack NRMiN CHaNCe (../120)
|
||||||
@ -54,7 +63,7 @@ local FISHING_BOBBER_ENTITY_SHARK={
|
|||||||
-- DESTROY BOBBER WHEN PUNCHING IT
|
-- DESTROY BOBBER WHEN PUNCHING IT
|
||||||
on_punch = function (self, puncher, time_from_last_punch, tool_capabilities, dir)
|
on_punch = function (self, puncher, time_from_last_punch, tool_capabilities, dir)
|
||||||
local player = puncher:get_player_name()
|
local player = puncher:get_player_name()
|
||||||
if MESSAGES == true then minetest.chat_send_player(player, "Your fish escaped.", false) end -- fish escaped
|
if MESSAGES == true then minetest.chat_send_player(player, S("Your fish escaped."), false) end -- fish escaped
|
||||||
minetest.sound_play("fishing_bobber1", {
|
minetest.sound_play("fishing_bobber1", {
|
||||||
pos = self.object:getpos(),
|
pos = self.object:getpos(),
|
||||||
gain = 0.5,
|
gain = 0.5,
|
||||||
@ -79,12 +88,12 @@ local FISHING_BOBBER_ENTITY_SHARK={
|
|||||||
minetest.add_node({x=pos.x, y=pos.y, z=pos.z}, {name="air"})
|
minetest.add_node({x=pos.x, y=pos.y, z=pos.z}, {name="air"})
|
||||||
if inv:room_for_item("main", {name=DRoP, count=1, wear=0, metadata=""}) then
|
if inv:room_for_item("main", {name=DRoP, count=1, wear=0, metadata=""}) then
|
||||||
inv:add_item("main", {name=DRoP, count=1, wear=0, metadata=""})
|
inv:add_item("main", {name=DRoP, count=1, wear=0, metadata=""})
|
||||||
if MESSAGES == true then say(player, "You caught "..MeSSaGe, false) end -- caught Plant
|
if MESSAGES == true then say(player, S("You caught "..MeSSaGe), false) end -- caught Plant
|
||||||
end
|
end
|
||||||
if not minetest.setting_getbool("creative_mode") then
|
if not minetest.setting_getbool("creative_mode") then
|
||||||
if inv:room_for_item("main", {name="fishing:fish_raw", count=1, wear=0, metadata=""}) then
|
if inv:room_for_item("main", {name="fishing:fish_raw", count=1, wear=0, metadata=""}) then
|
||||||
inv:add_item("main", {name="fishing:bait_worm", count=1, wear=0, metadata=""})
|
inv:add_item("main", {name="fishing:bait_worm", count=1, wear=0, metadata=""})
|
||||||
if MESSAGES == true then say(player, "The bait is still there.", false) end -- bait still there
|
if MESSAGES == true then say(player, S("The bait is still there."), false) end -- bait still there
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
@ -93,7 +102,7 @@ local FISHING_BOBBER_ENTITY_SHARK={
|
|||||||
--elseif minetest.get_node(pos).name == "air" then
|
--elseif minetest.get_node(pos).name == "air" then
|
||||||
if self.object:get_hp() <= 300 then
|
if self.object:get_hp() <= 300 then
|
||||||
if math.random(1, 100) < SHARK_CHANCE then
|
if math.random(1, 100) < SHARK_CHANCE then
|
||||||
local chance = math.random(1, 5) -- ><((((º>
|
local chance = math.random(1, 5) -- ><((((º>
|
||||||
for i in pairs(CaTCH_BiG) do
|
for i in pairs(CaTCH_BiG) do
|
||||||
local MoD = CaTCH_BiG[i][1]
|
local MoD = CaTCH_BiG[i][1]
|
||||||
local iTeM = CaTCH_BiG[i][2]
|
local iTeM = CaTCH_BiG[i][2]
|
||||||
@ -107,13 +116,13 @@ local FISHING_BOBBER_ENTITY_SHARK={
|
|||||||
if minetest.get_modpath(MoD) ~= nil then
|
if minetest.get_modpath(MoD) ~= nil then
|
||||||
if inv:room_for_item("main", {name=MoD..":"..iTeM, count=1, wear=WeaR, metadata=""}) then
|
if inv:room_for_item("main", {name=MoD..":"..iTeM, count=1, wear=WeaR, metadata=""}) then
|
||||||
inv:add_item("main", {name=MoD..":"..iTeM, count=1, wear=WeaR, metadata=""})
|
inv:add_item("main", {name=MoD..":"..iTeM, count=1, wear=WeaR, metadata=""})
|
||||||
if MESSAGES == true then say(player, "You caught "..MeSSaGe, false) end -- caught somethin'
|
if MESSAGES == true then say(player, S("You caught "..MeSSaGe), false) end -- caught somethin'
|
||||||
end
|
end
|
||||||
if not minetest.setting_getbool("creative_mode") then
|
if not minetest.setting_getbool("creative_mode") then
|
||||||
if GeTBaiTBack == true then
|
if GeTBaiTBack == true then
|
||||||
if inv:room_for_item("main", {name="fishing:fish_raw", count=1, wear=0, metadata=""}) then
|
if inv:room_for_item("main", {name="fishing:fish_raw", count=1, wear=0, metadata=""}) then
|
||||||
inv:add_item("main", {name="fishing:fish_raw", count=1, wear=0, metadata=""})
|
inv:add_item("main", {name="fishing:fish_raw", count=1, wear=0, metadata=""})
|
||||||
if MESSAGES == true then say(player, "The bait is still there.", false) end -- bait still there?
|
if MESSAGES == true then say(player, S("The bait is still there."), false) end -- bait still there?
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
@ -121,23 +130,23 @@ local FISHING_BOBBER_ENTITY_SHARK={
|
|||||||
end
|
end
|
||||||
end
|
end
|
||||||
else --if math.random(1, 100) > FISH_CHANCE then
|
else --if math.random(1, 100) > FISH_CHANCE then
|
||||||
if MESSAGES == true then say(player, "Your fish escaped.", false) end -- fish escaped
|
if MESSAGES == true then say(player, S("Your fish escaped."), false) end -- fish escaped
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
if self.object:get_hp() > 300 and minetest.get_node(pos).name == "air" then
|
if self.object:get_hp() > 300 and minetest.get_node(pos).name == "air" then
|
||||||
if MESSAGES == true then say(player, "You didn't catch any fish.", false) end -- fish escaped
|
if MESSAGES == true then say(player, S("You didn't catch any fish."), false) end -- fish escaped
|
||||||
if not minetest.setting_getbool("creative_mode") then
|
if not minetest.setting_getbool("creative_mode") then
|
||||||
if math.random(1, 3) == 1 then
|
if math.random(1, 3) == 1 then
|
||||||
if inv:room_for_item("main", {name="fishing:fish_raw", count=1, wear=0, metadata=""}) then
|
if inv:room_for_item("main", {name="fishing:fish_raw", count=1, wear=0, metadata=""}) then
|
||||||
inv:add_item("main", {name="fishing:fish_raw", count=1, wear=0, metadata=""})
|
inv:add_item("main", {name="fishing:fish_raw", count=1, wear=0, metadata=""})
|
||||||
if MESSAGES == true then say(player, "The bait is still there.", false) end -- bait still there
|
if MESSAGES == true then say(player, S("The bait is still there."), false) end -- bait still there
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
--end
|
--end
|
||||||
else
|
else
|
||||||
if MESSAGES == true then say(player, "Your fish escaped.", false) end -- fish escaped
|
if MESSAGES == true then say(player, S("Your fish escaped."), false) end -- fish escaped
|
||||||
end
|
end
|
||||||
minetest.sound_play("fishing_bobber1", {
|
minetest.sound_play("fishing_bobber1", {
|
||||||
pos = self.object:getpos(),
|
pos = self.object:getpos(),
|
||||||
|
0
mods/fishing/crafting.lua
Executable file → Normal file
0
mods/fishing/depends.txt
Executable file → Normal file
23
mods/fishing/fishes.lua
Executable file → Normal file
@ -3,11 +3,20 @@
|
|||||||
-- License (code & textures): WTFPL
|
-- 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
|
-- Fish
|
||||||
-----------------------------------------------------------------------------------------------
|
-----------------------------------------------------------------------------------------------
|
||||||
minetest.register_craftitem("fishing:fish_raw", {
|
minetest.register_craftitem("fishing:fish_raw", {
|
||||||
description = "Fish",
|
description = S("Fish"),
|
||||||
groups = {},
|
groups = {},
|
||||||
inventory_image = "fishing_fish.png",
|
inventory_image = "fishing_fish.png",
|
||||||
on_use = minetest.item_eat(2),
|
on_use = minetest.item_eat(2),
|
||||||
@ -16,7 +25,7 @@ minetest.register_craftitem("fishing:fish_raw", {
|
|||||||
-- Roasted Fish
|
-- Roasted Fish
|
||||||
-----------------------------------------------------
|
-----------------------------------------------------
|
||||||
minetest.register_craftitem("fishing:fish", {
|
minetest.register_craftitem("fishing:fish", {
|
||||||
description = "Roasted Fish",
|
description = S("Roasted Fish"),
|
||||||
groups = {},
|
groups = {},
|
||||||
inventory_image = "fishing_fish_cooked.png",
|
inventory_image = "fishing_fish_cooked.png",
|
||||||
on_use = minetest.item_eat(4),
|
on_use = minetest.item_eat(4),
|
||||||
@ -25,7 +34,7 @@ minetest.register_craftitem("fishing:fish_raw", {
|
|||||||
-- Sushi
|
-- Sushi
|
||||||
-----------------------------------------------------
|
-----------------------------------------------------
|
||||||
minetest.register_craftitem("fishing:sushi", {
|
minetest.register_craftitem("fishing:sushi", {
|
||||||
description = "Sushi (Hoso Maki)",
|
description = S("Sushi (Hoso Maki)"),
|
||||||
groups = {},
|
groups = {},
|
||||||
inventory_image = "fishing_sushi.png",
|
inventory_image = "fishing_sushi.png",
|
||||||
on_use = minetest.item_eat(6),
|
on_use = minetest.item_eat(6),
|
||||||
@ -35,7 +44,7 @@ minetest.register_craftitem("fishing:fish_raw", {
|
|||||||
-- Whatthef... it's a freakin' Shark!
|
-- Whatthef... it's a freakin' Shark!
|
||||||
-----------------------------------------------------------------------------------------------
|
-----------------------------------------------------------------------------------------------
|
||||||
minetest.register_craftitem("fishing:shark", {
|
minetest.register_craftitem("fishing:shark", {
|
||||||
description = "Shark",
|
description = S("Shark"),
|
||||||
groups = {},
|
groups = {},
|
||||||
inventory_image = "fishing_shark.png",
|
inventory_image = "fishing_shark.png",
|
||||||
on_use = minetest.item_eat(2),
|
on_use = minetest.item_eat(2),
|
||||||
@ -44,7 +53,7 @@ minetest.register_craftitem("fishing:shark", {
|
|||||||
-- Roasted Shark
|
-- Roasted Shark
|
||||||
-----------------------------------------------------
|
-----------------------------------------------------
|
||||||
minetest.register_craftitem("fishing:shark_cooked", {
|
minetest.register_craftitem("fishing:shark_cooked", {
|
||||||
description = "Roasted Shark",
|
description = S("Roasted Shark"),
|
||||||
groups = {},
|
groups = {},
|
||||||
inventory_image = "fishing_shark_cooked.png",
|
inventory_image = "fishing_shark_cooked.png",
|
||||||
on_use = minetest.item_eat(6),
|
on_use = minetest.item_eat(6),
|
||||||
@ -54,7 +63,7 @@ minetest.register_craftitem("fishing:shark", {
|
|||||||
-- Pike
|
-- Pike
|
||||||
-----------------------------------------------------------------------------------------------
|
-----------------------------------------------------------------------------------------------
|
||||||
minetest.register_craftitem("fishing:pike", {
|
minetest.register_craftitem("fishing:pike", {
|
||||||
description = "Northern Pike",
|
description = S("Northern Pike"),
|
||||||
groups = {},
|
groups = {},
|
||||||
inventory_image = "fishing_pike.png",
|
inventory_image = "fishing_pike.png",
|
||||||
on_use = minetest.item_eat(2),
|
on_use = minetest.item_eat(2),
|
||||||
@ -63,7 +72,7 @@ minetest.register_craftitem("fishing:pike", {
|
|||||||
-- Roasted Pike
|
-- Roasted Pike
|
||||||
-----------------------------------------------------
|
-----------------------------------------------------
|
||||||
minetest.register_craftitem("fishing:pike_cooked", {
|
minetest.register_craftitem("fishing:pike_cooked", {
|
||||||
description = "Roasted Northern Pike",
|
description = S("Roasted Northern Pike"),
|
||||||
groups = {},
|
groups = {},
|
||||||
inventory_image = "fishing_pike_cooked.png",
|
inventory_image = "fishing_pike_cooked.png",
|
||||||
on_use = minetest.item_eat(6),
|
on_use = minetest.item_eat(6),
|
||||||
|
25
mods/fishing/init.lua
Executable file → Normal file
@ -26,6 +26,15 @@ local mname = "fishing"
|
|||||||
|
|
||||||
-----------------------------------------------------------------------------------------------
|
-----------------------------------------------------------------------------------------------
|
||||||
|
|
||||||
|
-- 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
|
||||||
|
|
||||||
dofile(minetest.get_modpath("fishing").."/settings.txt")
|
dofile(minetest.get_modpath("fishing").."/settings.txt")
|
||||||
dofile(minetest.get_modpath("fishing").."/bobber.lua")
|
dofile(minetest.get_modpath("fishing").."/bobber.lua")
|
||||||
dofile(minetest.get_modpath("fishing").."/bobber_shark.lua")
|
dofile(minetest.get_modpath("fishing").."/bobber_shark.lua")
|
||||||
@ -45,7 +54,7 @@ end
|
|||||||
|
|
||||||
minetest.register_tool("fishing:pole", {
|
minetest.register_tool("fishing:pole", {
|
||||||
|
|
||||||
description = "Fishing Pole",
|
description = S("Fishing Pole"),
|
||||||
groups = {},
|
groups = {},
|
||||||
inventory_image = "fishing_pole.png",
|
inventory_image = "fishing_pole.png",
|
||||||
wield_image = "fishing_pole.png^[transformFXR270",
|
wield_image = "fishing_pole.png^[transformFXR270",
|
||||||
@ -117,7 +126,7 @@ minetest.register_tool("fishing:pole", {
|
|||||||
|
|
||||||
if SIMPLE_DECO_FISHING_POLE == true then
|
if SIMPLE_DECO_FISHING_POLE == true then
|
||||||
minetest.register_node("fishing:pole_deco", {
|
minetest.register_node("fishing:pole_deco", {
|
||||||
description = "Fishing Pole",
|
description = S("Fishing Pole"),
|
||||||
inventory_image = "fishing_pole.png",
|
inventory_image = "fishing_pole.png",
|
||||||
wield_image = "fishing_pole.png^[transformFXR270",
|
wield_image = "fishing_pole.png^[transformFXR270",
|
||||||
drawtype = "nodebox",
|
drawtype = "nodebox",
|
||||||
@ -159,7 +168,7 @@ minetest.register_node("fishing:pole_deco", {
|
|||||||
|
|
||||||
else
|
else
|
||||||
minetest.register_node("fishing:pole_deco", {
|
minetest.register_node("fishing:pole_deco", {
|
||||||
description = "Fishing Pole",
|
description = S("Fishing Pole"),
|
||||||
inventory_image = "fishing_pole.png",
|
inventory_image = "fishing_pole.png",
|
||||||
wield_image = "fishing_pole.png^[transformFXR270",
|
wield_image = "fishing_pole.png^[transformFXR270",
|
||||||
drawtype = "nodebox",
|
drawtype = "nodebox",
|
||||||
@ -229,7 +238,7 @@ end
|
|||||||
if NEW_WORM_SOURCE == false then
|
if NEW_WORM_SOURCE == false then
|
||||||
|
|
||||||
minetest.register_node(":default:dirt", {
|
minetest.register_node(":default:dirt", {
|
||||||
description = "Dirt",
|
description = S("Dirt"),
|
||||||
tiles = {"default_dirt.png"},
|
tiles = {"default_dirt.png"},
|
||||||
is_ground_content = true,
|
is_ground_content = true,
|
||||||
groups = {crumbly=3},
|
groups = {crumbly=3},
|
||||||
@ -310,28 +319,28 @@ end
|
|||||||
|
|
||||||
-- didn't change the hoes, just here because hoe_on_use is local
|
-- didn't change the hoes, just here because hoe_on_use is local
|
||||||
minetest.register_tool(":farming:hoe_wood", {
|
minetest.register_tool(":farming:hoe_wood", {
|
||||||
description = "Wooden Hoe",
|
description = S("Wooden Hoe"),
|
||||||
inventory_image = "farming_tool_woodhoe.png",
|
inventory_image = "farming_tool_woodhoe.png",
|
||||||
on_use = function(itemstack, user, pointed_thing)
|
on_use = function(itemstack, user, pointed_thing)
|
||||||
return hoe_on_use(itemstack, user, pointed_thing, 30)
|
return hoe_on_use(itemstack, user, pointed_thing, 30)
|
||||||
end,
|
end,
|
||||||
})
|
})
|
||||||
minetest.register_tool(":farming:hoe_stone", {
|
minetest.register_tool(":farming:hoe_stone", {
|
||||||
description = "Stone Hoe",
|
description = S("Stone Hoe"),
|
||||||
inventory_image = "farming_tool_stonehoe.png",
|
inventory_image = "farming_tool_stonehoe.png",
|
||||||
on_use = function(itemstack, user, pointed_thing)
|
on_use = function(itemstack, user, pointed_thing)
|
||||||
return hoe_on_use(itemstack, user, pointed_thing, 90)
|
return hoe_on_use(itemstack, user, pointed_thing, 90)
|
||||||
end,
|
end,
|
||||||
})
|
})
|
||||||
minetest.register_tool(":farming:hoe_steel", {
|
minetest.register_tool(":farming:hoe_steel", {
|
||||||
description = "Steel Hoe",
|
description = S("Steel Hoe"),
|
||||||
inventory_image = "farming_tool_steelhoe.png",
|
inventory_image = "farming_tool_steelhoe.png",
|
||||||
on_use = function(itemstack, user, pointed_thing)
|
on_use = function(itemstack, user, pointed_thing)
|
||||||
return hoe_on_use(itemstack, user, pointed_thing, 200)
|
return hoe_on_use(itemstack, user, pointed_thing, 200)
|
||||||
end,
|
end,
|
||||||
})
|
})
|
||||||
minetest.register_tool(":farming:hoe_bronze", {
|
minetest.register_tool(":farming:hoe_bronze", {
|
||||||
description = "Bronze Hoe",
|
description = S("Bronze Hoe"),
|
||||||
inventory_image = "farming_tool_bronzehoe.png",
|
inventory_image = "farming_tool_bronzehoe.png",
|
||||||
on_use = function(itemstack, user, pointed_thing)
|
on_use = function(itemstack, user, pointed_thing)
|
||||||
return hoe_on_use(itemstack, user, pointed_thing, 220)
|
return hoe_on_use(itemstack, user, pointed_thing, 220)
|
||||||
|
56
mods/fishing/locale/de.txt
Normal file
@ -0,0 +1,56 @@
|
|||||||
|
# Translation by Xanthin
|
||||||
|
|
||||||
|
### bobber.lua ###
|
||||||
|
You caught a Fish. = Du hast einen Fisch gefangen.
|
||||||
|
You caught a Clownfish. = Du hast einen Clownfisch gefangen.
|
||||||
|
You caught a Blue white fish. = Du hast einen blau-weissen Fisch gefangen.
|
||||||
|
You caught a Twig. = Du hast einen Zweig gefangen.
|
||||||
|
You caught a Rat. = Du hast eine Ratte gefangen.
|
||||||
|
You caught some Seaweed. = Du hast etwas Seetang gefangen.
|
||||||
|
You caught a Green Kelp. = Du hast etwas gruenen Kelp gefangen.
|
||||||
|
You caught a String. = Du hast eine Schnur gefangen.
|
||||||
|
You caught an old Fishing Pole. = Du hast eine alte Angelrute gefangen.
|
||||||
|
You caught some very old Boots. = Du hast ein Paar sehr alte Schuhe gefangen.
|
||||||
|
You caught a Waterlily. = Du hast eine Seerose gefangen.
|
||||||
|
You didn't catch anything. = Du hast nichts gefangen.
|
||||||
|
The bait is still there. = Der Koeder ist noch vorhanden.
|
||||||
|
Your fish escaped. = Dein Fisch ist entkommen.
|
||||||
|
|
||||||
|
### bobber_shark.lua ###
|
||||||
|
You caught a small Shark. = Du hast einen kleinen Hai gefangen.
|
||||||
|
You caught a Northern Pike. = Du hast einen Hecht gefangen.
|
||||||
|
You didn't catch any fish. = Du hast keinen Fisch gefangen.
|
||||||
|
|
||||||
|
### crafting.lua ###
|
||||||
|
### fishes.lua ###
|
||||||
|
Fish = Fisch
|
||||||
|
Roasted Fish = Gebratener Fisch
|
||||||
|
Sushi (Hoso Maki) = Sushi (Hoso Maki)
|
||||||
|
Shark = Hai
|
||||||
|
Roasted Shark = Gebratener Hai
|
||||||
|
Northern Pike = Hecht
|
||||||
|
Roasted Northern Pike = Gebratener Hecht
|
||||||
|
|
||||||
|
### init.lua ###
|
||||||
|
Fishing Pole = Angelrute
|
||||||
|
Dirt = Erde
|
||||||
|
Wooden Hoe = Holzhacke
|
||||||
|
Stone Hoe = Steinhacke
|
||||||
|
Steel Hoe = Stahlhacke
|
||||||
|
Bronze Hoe = Bronzehacke
|
||||||
|
|
||||||
|
### trophies.lua ###
|
||||||
|
Fish Trophy = Fisch-Trophaee
|
||||||
|
Northern Pike Trophy = Hecht-Trophaee
|
||||||
|
Shark Trophy = Hai-Trophaee
|
||||||
|
Clownfish Trophy = Clownfisch-Trophaee
|
||||||
|
Blue white fish Trophy = Blau-weisser-Fisch-Trophaee
|
||||||
|
Trophy = Trophaee
|
||||||
|
This Huge Fish was caught by the Famous Angler %s ! = Dieser riesige Fisch wurde vom beruehmten Angler %s gefangen!
|
||||||
|
This Huge Northern Pike was caught by the Famous Angler %s ! = Dieser riesige Hecht wurde vom beruehmten Angler %s gefangen!
|
||||||
|
This Huge Shark was caught by the Famous Angler %s ! = Dieser riesige Hai wurde vom beruehmten Angler %s gefangen!
|
||||||
|
This Huge Clownfish was caught by the Famous Angler %s ! = Dieser riesige Clownfisch wurde vom beruehmten Angler %s gefangen!
|
||||||
|
This Huge Blue white fish was caught by the Famous Angler %s ! = Dieser riesige blau-weisse Fisch wurde vom beruehmten Angler %s gefangen!
|
||||||
|
|
||||||
|
### worms.lua ###
|
||||||
|
Worm = Wurm
|
56
mods/fishing/locale/template.txt
Normal file
@ -0,0 +1,56 @@
|
|||||||
|
# Template
|
||||||
|
|
||||||
|
### bobber.lua ###
|
||||||
|
You caught a Fish. =
|
||||||
|
You caught a Clownfish. =
|
||||||
|
You caught a Blue white fish. =
|
||||||
|
You caught a Twig. =
|
||||||
|
You caught a Rat. =
|
||||||
|
You caught some Seaweed. =
|
||||||
|
You caught a Green Kelp. =
|
||||||
|
You caught a String. =
|
||||||
|
You caught an old Fishing Pole. =
|
||||||
|
You caught some very old Boots. =
|
||||||
|
You caught a Waterlily. =
|
||||||
|
You didn't catch anything. =
|
||||||
|
The bait is still there. =
|
||||||
|
Your fish escaped. =
|
||||||
|
|
||||||
|
### bobber_shark.lua ###
|
||||||
|
You caught small Shark. =
|
||||||
|
You caught a Northern Pike. =
|
||||||
|
You didn't catch any fish. =
|
||||||
|
|
||||||
|
### crafting.lua ###
|
||||||
|
### fishes.lua ###
|
||||||
|
Fish =
|
||||||
|
Roasted Fish =
|
||||||
|
Sushi (Hoso Maki) =
|
||||||
|
Shark =
|
||||||
|
Roasted Shark =
|
||||||
|
Northern Pike =
|
||||||
|
Roasted Northern Pike =
|
||||||
|
|
||||||
|
### init.lua ###
|
||||||
|
Fishing Pole =
|
||||||
|
Dirt =
|
||||||
|
Wooden Hoe =
|
||||||
|
Stone Hoe =
|
||||||
|
Steel Hoe =
|
||||||
|
Bronze Hoe =
|
||||||
|
|
||||||
|
### trophies.lua ###
|
||||||
|
Fish Trophy =
|
||||||
|
Northern Pike Trophy =
|
||||||
|
Shark Trophy =
|
||||||
|
Clownfish Trophy =
|
||||||
|
Blue white fish Trophy =
|
||||||
|
Trophy =
|
||||||
|
This Huge Fish was caught by the Famous Angler %s ! =
|
||||||
|
This Huge Northern Pike was caught by the Famous Angler %s ! =
|
||||||
|
This Huge Shark was caught by the Famous Angler %s ! =
|
||||||
|
This Huge Clownfish was caught by the Famous Angler %s ! =
|
||||||
|
This Huge Blue white fish was caught by the Famous Angler %s ! =
|
||||||
|
|
||||||
|
### worms.lua ###
|
||||||
|
Worm =
|
0
mods/fishing/settings.txt
Executable file → Normal file
0
mods/fishing/sounds/SoundLicense.txt
Executable file → Normal file
0
mods/fishing/sounds/fishing_bobber1.ogg
Executable file → Normal file
0
mods/fishing/sounds/fishing_bobber2.ogg
Executable file → Normal file
0
mods/fishing/textures/alternates/fishing_bobber.png
Executable file → Normal file
Before Width: | Height: | Size: 541 B After Width: | Height: | Size: 541 B |
0
mods/fishing/textures/alternates/fishing_bobber_bottom.png
Executable file → Normal file
Before Width: | Height: | Size: 207 B After Width: | Height: | Size: 207 B |
0
mods/fishing/textures/alternates/fishing_bobber_top.png
Executable file → Normal file
Before Width: | Height: | Size: 193 B After Width: | Height: | Size: 193 B |
0
mods/fishing/textures/alternates/fishing_pole.png
Executable file → Normal file
Before Width: | Height: | Size: 295 B After Width: | Height: | Size: 295 B |
0
mods/fishing/textures/animal_clownfish_clownfish_item.png
Executable file → Normal file
Before Width: | Height: | Size: 352 B After Width: | Height: | Size: 352 B |
0
mods/fishing/textures/animal_fish_blue_white_fish_blue_white_item.png
Executable file → Normal file
Before Width: | Height: | Size: 317 B After Width: | Height: | Size: 317 B |
0
mods/fishing/textures/fishing_bobber.png
Executable file → Normal file
Before Width: | Height: | Size: 580 B After Width: | Height: | Size: 580 B |
0
mods/fishing/textures/fishing_bobber_bottom.png
Executable file → Normal file
Before Width: | Height: | Size: 205 B After Width: | Height: | Size: 205 B |
0
mods/fishing/textures/fishing_bobber_feather_1.png
Executable file → Normal file
Before Width: | Height: | Size: 352 B After Width: | Height: | Size: 352 B |
0
mods/fishing/textures/fishing_bobber_top.png
Executable file → Normal file
Before Width: | Height: | Size: 205 B After Width: | Height: | Size: 205 B |
0
mods/fishing/textures/fishing_deco_pike.png
Executable file → Normal file
Before Width: | Height: | Size: 508 B After Width: | Height: | Size: 508 B |
0
mods/fishing/textures/fishing_fish.png
Executable file → Normal file
Before Width: | Height: | Size: 486 B After Width: | Height: | Size: 486 B |
0
mods/fishing/textures/fishing_fish_cooked.png
Executable file → Normal file
Before Width: | Height: | Size: 846 B After Width: | Height: | Size: 846 B |
0
mods/fishing/textures/fishing_pike.png
Executable file → Normal file
Before Width: | Height: | Size: 297 B After Width: | Height: | Size: 297 B |
0
mods/fishing/textures/fishing_pike_cooked.png
Executable file → Normal file
Before Width: | Height: | Size: 702 B After Width: | Height: | Size: 702 B |
0
mods/fishing/textures/fishing_pole.png
Executable file → Normal file
Before Width: | Height: | Size: 265 B After Width: | Height: | Size: 265 B |
0
mods/fishing/textures/fishing_pole_back.png
Executable file → Normal file
Before Width: | Height: | Size: 235 B After Width: | Height: | Size: 235 B |
0
mods/fishing/textures/fishing_pole_bottom.png
Executable file → Normal file
Before Width: | Height: | Size: 215 B After Width: | Height: | Size: 215 B |
0
mods/fishing/textures/fishing_pole_deco.png
Executable file → Normal file
Before Width: | Height: | Size: 354 B After Width: | Height: | Size: 354 B |
0
mods/fishing/textures/fishing_pole_front.png
Executable file → Normal file
Before Width: | Height: | Size: 214 B After Width: | Height: | Size: 214 B |
0
mods/fishing/textures/fishing_pole_simple.png
Executable file → Normal file
Before Width: | Height: | Size: 303 B After Width: | Height: | Size: 303 B |
0
mods/fishing/textures/fishing_pole_top.png
Executable file → Normal file
Before Width: | Height: | Size: 197 B After Width: | Height: | Size: 197 B |
0
mods/fishing/textures/fishing_shark.png
Executable file → Normal file
Before Width: | Height: | Size: 389 B After Width: | Height: | Size: 389 B |
0
mods/fishing/textures/fishing_shark_cooked.png
Executable file → Normal file
Before Width: | Height: | Size: 763 B After Width: | Height: | Size: 763 B |
0
mods/fishing/textures/fishing_sushi.png
Executable file → Normal file
Before Width: | Height: | Size: 590 B After Width: | Height: | Size: 590 B |
0
mods/fishing/textures/fishing_trophy_label.png
Executable file → Normal file
Before Width: | Height: | Size: 201 B After Width: | Height: | Size: 201 B |
0
mods/fishing/textures/fishing_worm.png
Executable file → Normal file
Before Width: | Height: | Size: 280 B After Width: | Height: | Size: 280 B |
0
mods/fishing/textures/not_in_use/fishing_bobber_feather_1.png
Executable file → Normal file
Before Width: | Height: | Size: 352 B After Width: | Height: | Size: 352 B |
0
mods/fishing/textures/not_in_use/fishing_bobber_feather_2.png
Executable file → Normal file
Before Width: | Height: | Size: 363 B After Width: | Height: | Size: 363 B |
0
mods/fishing/textures/not_in_use/fishing_bobber_ready.png
Executable file → Normal file
Before Width: | Height: | Size: 222 B After Width: | Height: | Size: 222 B |
0
mods/fishing/textures/not_in_use/fishing_pole_on_use.png
Executable file → Normal file
Before Width: | Height: | Size: 238 B After Width: | Height: | Size: 238 B |
0
mods/fishing/textures/old/fishing_bobber_alternate_old.png
Executable file → Normal file
Before Width: | Height: | Size: 217 B After Width: | Height: | Size: 217 B |
0
mods/fishing/textures/old/fishing_bobber_old.png
Executable file → Normal file
Before Width: | Height: | Size: 238 B After Width: | Height: | Size: 238 B |
0
mods/fishing/textures/old/fishing_pole_wield.png
Executable file → Normal file
Before Width: | Height: | Size: 269 B After Width: | Height: | Size: 269 B |
0
mods/fishing/textures/old/fishing_shark_old6.png
Executable file → Normal file
Before Width: | Height: | Size: 391 B After Width: | Height: | Size: 391 B |
14
mods/fishing/trophies.lua
Executable file → Normal file
@ -5,6 +5,15 @@
|
|||||||
-- Supports: animal_clownfish, animal_fish_blue_white
|
-- Supports: animal_clownfish, animal_fish_blue_white
|
||||||
-----------------------------------------------------------------------------------------------
|
-----------------------------------------------------------------------------------------------
|
||||||
|
|
||||||
|
-- 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
|
||||||
|
|
||||||
local TRoPHY = {
|
local TRoPHY = {
|
||||||
-- MoD iTeM NaMe iCoN
|
-- MoD iTeM NaMe iCoN
|
||||||
{"fishing", "fish_raw", "Fish", "fishing_fish.png"},
|
{"fishing", "fish_raw", "Fish", "fishing_fish.png"},
|
||||||
@ -27,7 +36,7 @@ for i in pairs(TRoPHY) do
|
|||||||
local NaMe = TRoPHY[i][3]
|
local NaMe = TRoPHY[i][3]
|
||||||
local iCoN = TRoPHY[i][4]
|
local iCoN = TRoPHY[i][4]
|
||||||
minetest.register_node("fishing:trophy_"..iTeM, {
|
minetest.register_node("fishing:trophy_"..iTeM, {
|
||||||
description = NaMe.." Trophy",
|
description = S(NaMe.." Trophy"),
|
||||||
inventory_image = "default_chest_top.png^"..iCoN.."^fishing_trophy_label.png",
|
inventory_image = "default_chest_top.png^"..iCoN.."^fishing_trophy_label.png",
|
||||||
drawtype = "nodebox",
|
drawtype = "nodebox",
|
||||||
tiles = {
|
tiles = {
|
||||||
@ -59,8 +68,7 @@ for i in pairs(TRoPHY) do
|
|||||||
after_place_node = function(pos, placer)
|
after_place_node = function(pos, placer)
|
||||||
local meta = minetest.get_meta(pos)
|
local meta = minetest.get_meta(pos)
|
||||||
meta:set_string("owner", placer:get_player_name() or "")
|
meta:set_string("owner", placer:get_player_name() or "")
|
||||||
meta:set_string("infotext", "This Huge "..NaMe.." was caught by the Famous Angler "..
|
meta:set_string("infotext", S("This Huge "..NaMe.." was caught by the Famous Angler %s !"):format((placer:get_player_name() or "")))
|
||||||
meta:get_string("owner").."!")
|
|
||||||
end,
|
end,
|
||||||
on_construct = function(pos)
|
on_construct = function(pos)
|
||||||
local meta = minetest.get_meta(pos)
|
local meta = minetest.get_meta(pos)
|
||||||
|
12
mods/fishing/worm.lua
Executable file → Normal file
@ -6,11 +6,21 @@
|
|||||||
-- Looked at code from: my_mobs
|
-- Looked at code from: my_mobs
|
||||||
-- Dependencies: default
|
-- Dependencies: default
|
||||||
-----------------------------------------------------------------------------------------------
|
-----------------------------------------------------------------------------------------------
|
||||||
|
|
||||||
|
-- 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
|
||||||
|
|
||||||
-----------------------------------------------------------------------------------------------
|
-----------------------------------------------------------------------------------------------
|
||||||
-- WORM ITEM
|
-- WORM ITEM
|
||||||
-----------------------------------------------------------------------------------------------
|
-----------------------------------------------------------------------------------------------
|
||||||
minetest.register_craftitem("fishing:bait_worm", {
|
minetest.register_craftitem("fishing:bait_worm", {
|
||||||
description = "Worm",
|
description = S("Worm"),
|
||||||
groups = { fishing_bait=1 },
|
groups = { fishing_bait=1 },
|
||||||
inventory_image = "fishing_worm.png",
|
inventory_image = "fishing_worm.png",
|
||||||
on_use = minetest.item_eat(1),
|
on_use = minetest.item_eat(1),
|
||||||
|