_______________________Fishing mod PresentationFishing mod by the MinetestForFun team(mainly @cabman), available on the
MinetestForFun ( PvP Survival) server and on the
MinetestForFun Creative server if you want to try it ingame.
License : WTFPL for our added/rewrited code & WTFPL for the initial code
Dependencies : default, farming
Optional Dependencies (for more features) : unified_inventory, moreblocks, ropes, moreores, mobs, flowers_plus, seaplants
This fishing mod contains 9 types of fish :River fishs
2 small fish (fish, carp)
3 predator fish (perch, catfish, Northern Pike)
Sea fishs
3 small fish (clownfish, bluewhite fish, exotic fish)
1 predator fish (small shark)
We added 7 baits :3 kind of bait for small fish
corn
bread
worm
4 kind of bait for predator fish (small fish)
The percentage of chance to catch fishs are tweakable temporarly or definitivly in the admin panel of the fishing mod (see screenshots below)
By default, the baits have a lucky bonus of 15 to 80%.
We added some different poles :Wooden Pole : easy craftable but only 30 uses
Mithril Pole : hardly craftable but 1500 uses
Contest GameWe introduce a new feature, the "Contest Game", it can be launched by admin.
A "Contest Game" is a little tournament between all the players of ther server, it takes between 2 min to 4hours.
Start/End is announced in chat and you can hear sounds wth this announces.
A ranking window appears at the end of the contest with the players score (it's a formspec), you can also consult this ranking window from a command or your inventory if you want to compare your ranking with other players.
If the [unified_inventory] mod is actived there is a button for classification or settings only available for the admins.
A little piece of code
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
-----------------------------------------------------------------------------------------------
local title = "Fishing - Crabman77's version"
local version = "0.0.3"
local mname = "fishing"
-----------------------------------------------------------------------------------------------
-- original by wulfsdad (http://forum.minetest.net/viewtopic.php?id=4375)
-- rewrited by Mossmanikin (https://forum.minetest.net/viewtopic.php?id=6480)
-- this version rewrited by Crabman77
-- License (code & textures): WTFPL
-- Contains code from: animal_clownfish, animal_fish_blue_white, fishing (original), stoneage
-- Looked at code from: default, farming
-- Dependencies: default
-- Supports: animal_clownfish, animal_fish_blue_white, animal_rat, mobs
-----------------------------------------------------------------------------------------------
minetest.log("action","[mod fishing] Loading...")
local path = minetest.get_modpath("fishing").."/"
fishing_setting = {}
fishing_setting.func = {}
fishing_setting.is_creative_mode = minetest.setting_getbool("creative_mode")
fishing_setting.file_settings = minetest.get_worldpath() .. "/fishing_config.txt"
fishing_setting.file_trophies = minetest.get_worldpath() .. "/fishing_trophies.txt"
fishing_setting.file_contest = minetest.get_worldpath() .. "/fishing_contest.txt"
fishing_setting.settings = {}
fishing_setting.contest = {}
--for random object
random_objects = {}
fishing_setting.baits = {}
fishing_setting.hungry = {}
fishing_setting.prizes = {}
fishing_setting.trophies = {}
if (minetest.get_modpath("intllib")) then
dofile(minetest.get_modpath("intllib").."/intllib.lua")
fishing_setting.func.S = intllib.Getter(minetest.get_current_modname())
else
fishing_setting.func.S = function ( s ) return s end
end
dofile(path .."settings.txt")
dofile(path .."functions.lua")
--default_settings
fishing_setting.settings["message"] = MESSAGES
fishing_setting.settings["worm_is_mob"] = WORM_IS_MOB
fishing_setting.settings["worm_chance"] = WORM_CHANCE
fishing_setting.settings["new_worm_source"] = NEW_WORM_SOURCE
fishing_setting.settings["wear_out"] = WEAR_OUT
fishing_setting.settings["simple_deco_fishing_pole"] = SIMPLE_DECO_FISHING_POLE
fishing_setting.settings["bobber_view_range"] = BOBBER_VIEW_RANGE
fishing_setting.settings["fish_chance"] = FISH_CHANCE
fishing_setting.settings["shark_chance"] = SHARK_CHANCE
fishing_setting.settings["treasure_chance"] = TREASURE_CHANCE
fishing_setting.settings["treasure_enable"] = TREASURE_RANDOM_ENABLE
fishing_setting.settings["escape_chance"] = ESCAPE_CHANCE
-- load config file if exist in worldpath
fishing_setting.func.load()
dofile(path .."worms.lua")
dofile(path .."crafting.lua")
dofile(path .."baits.lua")
dofile(path .."prizes.lua")
dofile(path .."baitball.lua")
dofile(path .."bobber.lua")
dofile(path .."bobber_shark.lua")
dofile(path .."fishes.lua")
dofile(path .."trophies.lua")
dofile(path .."poles.lua")
--random hungry bait
fishing_setting.func.hungry_random()
--load table caught fish by players
fishing_setting.func.load_trophies()
--load table contest
fishing_setting.func.load_contest()
fishing_setting.func.tick()
-----------------------------------------------------------------------------------------------
minetest.log("action", "[Mod] "..title.." ["..version.."] ["..mname.."] Loaded...")
-----------------------------------------------------------------------------------------------
Video
Screenshots
Githubhttps://github.com/MinetestForFun/fishingDo not hesitate to send us Issue for bugs, crashs, features or anything you want :)
(The mod is stable and tested in our servers since more than 6 months without any crash)
Downloadhttps://github.com/MinetestForFun/fishing/archive/master.zip