1
0
mirror of https://github.com/MinetestForFun/fishing.git synced 2025-07-25 11:30:18 +02:00

added 4 new fish and trophy (carp, perch, catfish, exoticfish)

fish, carp, perch, catfish and pike only catched in rivers
clownfish, bluewhite,exoticfish and shark only catched in sea
convert sound stereo in mono
This commit is contained in:
2015-09-26 19:03:14 +02:00
parent d8777494b3
commit 14bdc521f2
24 changed files with 228 additions and 94 deletions

View File

@ -82,6 +82,12 @@ for _,pole in pairs(fishing_setting.poles) do
local ent = minetest.add_entity({interval = 1,x=new_pos.x, y=new_pos.y, z=new_pos.z}, fishing_setting.baits[bait].bobber)
if not ent then return nil end
local luaentity = ent:get_luaentity()
local node = minetest.get_node_or_nil(pt.under)
if node and node.name == "default:river_water_source" then
luaentity.water_type = "rivers"
else
luaentity.water_type = "sea"
end
luaentity.owner = player_name
luaentity.bait = bait
luaentity.old_pos = new_pos