[Mod] Fishing! - Mossmanikin's version [0.2.2] [fishing]

User avatar
lightonflux
Member
 
Posts: 384
Joined: Mon Nov 11, 2013 07:22
In-game: lof

Re: [Mod] Fishing! - Mossmanikin's version [0.2.2] [fishing]

by lightonflux » Sat Jun 13, 2015 20:04

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%.
 

nvrsbr
Member
 
Posts: 51
Joined: Fri Jun 05, 2015 19:42

Re: [Mod] Fishing! - Mossmanikin's version [0.2.2] [fishing]

by nvrsbr » Sat Jun 13, 2015 23:26

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%.


Thanks, it has been driving me nuts haha.
 

User avatar
Sane
Member
 
Posts: 103
Joined: Tue Jun 17, 2014 09:31
GitHub: mt-sane
In-game: Sane

Undefined items

by Sane » Wed Jul 29, 2015 22:57

Hi there,

I'm trying your mod. It seems that there are some unidentified items in the crafting receipes.
I've changed crafting.lua and trophies.lua so that receipes aren't registered who's dependencies aren't met.

crafting.lua:
Your phone or window isn't wide enough to display the code box. If it's a phone, try rotating it to landscape mode.
Code: Select all
-----------------------------------------------------------------------------------------------
-- 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,
})


trophies.lua:
Your phone or window isn't wide enough to display the code box. If it's a phone, try rotating it to landscape mode.
Code: Select all
-----------------------------------------------------------------------------------------------
-- 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
Trying to stay me.
 

User avatar
maikerumine
Member
 
Posts: 946
Joined: Mon Aug 04, 2014 14:27
GitHub: maikerumine
In-game: maikerumine

Re: [Mod] Fishing! - Mossmanikin's version [0.2.2] [fishing]

by maikerumine » Tue Aug 18, 2015 01:33

Fishing does not work on multiplayer server, o0nly when one person is present, possible fix?

Thank you in advance!
 

User avatar
ExeterDad
Member
 
Posts: 1121
Joined: Sun Jun 01, 2014 20:00
In-game: ExeterDad

Re: [Mod] Fishing! - Mossmanikin's version [0.2.2] [fishing]

by ExeterDad » Tue Aug 18, 2015 12:49

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.
٩(̾●̮̮̃̾•̃̾)۶

Kibbie and I have a beautiful public server now! HOMETOWN
 

User avatar
Napiophelios
Member
 
Posts: 752
Joined: Mon Jul 07, 2014 01:14
GitHub: Napiophelios
IRC: Nappi
In-game: Nappi

Re: [Mod] Fishing! - Mossmanikin's version [0.2.2] [fishing]

by Napiophelios » Tue Aug 18, 2015 17:36

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.


It probably works fine, fishies just dont like crowds thats all. :P
 

User avatar
The_Critic
New member
 
Posts: 6
Joined: Mon Jan 04, 2016 00:26
IRC: The_Critic
In-game: Andreas

Re: [Mod] Fishing! - Mossmanikin's version [0.2.2] [fishing]

by The_Critic » Mon Jan 04, 2016 03:00

Great mod Mossmanikin!But I would like to bring to your attention that for some reason the mod does not function quite right in multiplayer.You see, in multiplayer on minetest 0.4.13 (or at least mine) you hear the bobber hit the water , but you don`t see it.Please look into that if you get the time.(And yes I do cast the line close enough to the shore
 

Previous

Return to Mod Releases

Who is online

Users browsing this forum: Bing [Bot] and 32 guests

cron