lightonflux wrote:To fish, just punch water with the fishing rod. Yes, you need to equip the rod with a worm to catch a fish. Not every punch catches a fish. I think the probability is between 20 and 25%.
-----------------------------------------------------------------------------------------------
-- Fishing - Mossmanikin's version - Recipes 0.0.8
-----------------------------------------------------------------------------------------------
-- License (code & textures): WTFPL
-- Contains code from: animal_clownfish, animal_fish_blue_white, fishing (original), stoneage
-- Looked at code from:
-- Dependencies: default, farming
-- Supports: animal_clownfish, animal_fish_blue_white, animal_rat, mobs
-----------------------------------------------------------------------------------------------
local hasMoreblocks = minetest.get_modpath("moreblocks") ~= nil
local hasRopes = minetest.get_modpath("ropes") ~= nil
local hasFlowers = minetest.get_modpath("flowers_plus") ~= nil
local hasSeaplants = minetest.get_modpath("seaplants") ~= nil
-----------------------------------------------------------------------------------------------
-- Fishing Pole
-----------------------------------------------------------------------------------------------
-- mc style
minetest.register_craft({
output = "fishing:pole",
recipe = {
{"", "", "default:stick" },
{"", "default:stick", "farming:string"},
{"default:stick", "", "farming:string"},
}
})
if (hasMoreblocks) then
minetest.register_craft({
output = "fishing:pole",
recipe = {
{"", "", "default:stick" },
{"", "default:stick", "moreblocks:rope"},
{"default:stick", "", "moreblocks:rope"},
}
})
end
if (hasRopes) then
minetest.register_craft({
output = "fishing:pole",
recipe = {
{"", "", "default:stick" },
{"", "default:stick", "ropes:rope" },
{"default:stick", "", "ropes:rope" },
}
})
end
-----------------------------------------------------------------------------------------------
-- Roasted Fish
-----------------------------------------------------------------------------------------------
minetest.register_craft({
type = "cooking",
output = "fishing:fish",
recipe = "fishing:fish_raw",
cooktime = 2,
})
-----------------------------------------------------------------------------------------------
-- Wheat Seed
-----------------------------------------------------------------------------------------------
minetest.register_craft({
type = "shapeless",
output = "farming:seed_wheat",
recipe = {"farming:wheat"},
})
-----------------------------------------------------------------------------------------------
-- Sushi
-----------------------------------------------------------------------------------------------
if (hasFlowers) then
minetest.register_craft({
type = "shapeless",
output = "fishing:sushi",
recipe = {"fishing:fish_raw","farming:seed_wheat","flowers:seaweed"},
})
end
if (hasSeaplants) then
minetest.register_craft({
type = "shapeless",
output = "fishing:sushi",
recipe = {"fishing:fish_raw","farming:seed_wheat","seaplants:kelpgreen"},
})
end
-----------------------------------------------------------------------------------------------
-- Roasted Shark
-----------------------------------------------------------------------------------------------
minetest.register_craft({
type = "cooking",
output = "fishing:shark_cooked",
recipe = "fishing:shark",
cooktime = 2,
})
-----------------------------------------------------------------------------------------------
-- Roasted Pike
-----------------------------------------------------------------------------------------------
minetest.register_craft({
type = "cooking",
output = "fishing:pike_cooked",
recipe = "fishing:pike",
cooktime = 2,
})
-----------------------------------------------------------------------------------------------
-- Fishing - Mossmanikin's version - Trophies 0.0.2
-- License (code & textures): WTFPL
-- Contains code from: default
-- Supports: animal_clownfish, animal_fish_blue_white
-----------------------------------------------------------------------------------------------
local TRoPHY = {
-- MoD iTeM NaMe iCoN
{"fishing", "fish_raw", "Fish", "fishing_fish.png"},
{"fishing", "pike", "Northern Pike", "fishing_pike.png"},
{"fishing", "shark", "Shark", "fishing_shark.png"},
{"animal_clownfish", "clownfish", "Clownfish", "animal_clownfish_clownfish_item.png"},
{"animal_fish_blue_white", "fish_blue_white", "Blue white fish", "animal_fish_blue_white_fish_blue_white_item.png"},
}
local function has_trophy_privilege(meta, player)
if player:get_player_name() ~= meta:get_string("owner") then
return false
end
return true
end
for i in pairs(TRoPHY) do
local MoD = TRoPHY[i][1]
local iTeM = TRoPHY[i][2]
local NaMe = TRoPHY[i][3]
local iCoN = TRoPHY[i][4]
if (minetest.get_modpath(MoD) ~= nil) then
minetest.register_node("fishing:trophy_"..iTeM, {
description = NaMe.." Trophy",
inventory_image = "default_chest_top.png^"..iCoN.."^fishing_trophy_label.png",
drawtype = "nodebox",
tiles = {
"default_chest_top.png", -- top
"default_chest_top.png", -- bottom
"default_chest_top.png", -- right
"default_chest_top.png", -- left
"default_chest_top.png", -- back
"default_chest_top.png^"..iCoN.."^fishing_trophy_label.png", -- front
},
paramtype = "light",
paramtype2 = "facedir",
walkable = false,
node_box = {
type = "fixed",
fixed = {
-- { left , bottom , front , right , top , back }
{ -1/2 , -1/2 , 7/16 , 1/2 , 1/2 , 1/2 },
}
},
selection_box = {
type = "fixed",
fixed = {
{ -1/2 , -1/2 , 7/16 , 1/2 , 1/2 , 1/2 },
}
},
groups = {choppy=2,oddly_breakable_by_hand=3,flammable=2},
sounds = default.node_sound_wood_defaults(),
after_place_node = function(pos, placer)
local meta = minetest.get_meta(pos)
meta:set_string("owner", placer:get_player_name() or "")
meta:set_string("infotext", "This Huge "..NaMe.." was caught by the Famous Angler "..
meta:get_string("owner").."!")
end,
on_construct = function(pos)
local meta = minetest.get_meta(pos)
meta:set_string("infotext", NaMe)
meta:set_string("owner", "")
end,
can_dig = function(pos,player)
local meta = minetest.get_meta(pos);
return has_trophy_privilege(meta, player)
end,
})
minetest.register_craft({
type = "shapeless",
output = "fishing:trophy_"..iTeM,
recipe = {MoD..":"..iTeM, "default:sign_wall"},
})
end
end
maikerumine wrote:Fishing does not work on multiplayer server, o0nly when one person is present, possible fix?
Thank you in advance!
ExeterDad wrote:maikerumine wrote:Fishing does not work on multiplayer server, o0nly when one person is present, possible fix?
Thank you in advance!
Aha! That's why I've never gotten fishing to work on our server! I was losing my mind.
Users browsing this forum: No registered users and 5 guests