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:
@ -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
|
||||
|
Reference in New Issue
Block a user