01:27:32: VERBOSE[main]: error_message = ServerError: LuaError: error: ...ames/minimal (copy)/mods/addin_mods/fishing/init.lua:54: bad argument #1 to 'get_node' (table expected, got nil)
4aiman wrote: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
01:27:32: VERBOSE[main]: error_message = ServerError: LuaError: error: ...ames/minimal (copy)/mods/addin_mods/fishing/init.lua:54: bad argument #1 to 'get_node' (table expected, got nil)
4aiman wrote:Got a rod, got 99 worms, crafted rod with worm and pressed right mouse button on a water block.
Ropes wasnt sufficient so I have both them and moreblocks. Could that be the reason?
on_use = function (itemstack, user, pointed_thing)
if pointed_thing and pointed_thing.under then
local node = minetest.env:get_node(pointed_thing.under)
if string.find(node.name, "default:water") then
if math.random(1, 100) < FISH_CHANCE then
local inv = user:get_inventory()
if inv:room_for_item("main", {name="fishing:fish_raw", count=1, wear=0, metadata=""}) then
inv:add_item("main", {name="fishing:fish_raw", count=1, wear=0, metadata=""})
end
end
return {name="fishing:pole", count=1, wear=0, metadata=""}
end
end
return nil
end,
4aiman wrote:Is it possible to not have to "point" at the water node? I mean It would be nice to have a... bobber (or a "float"? I don't know an English equivalent to "поплавок"... Google isn't helping at all too.)
Player can "throw" that using scheme from "throwing" mod and if that lands in water then he need to wait some random time before the bobber goes underwater and then he must pull (rightclick).
If you're up to it I can provide some more details ;)
jojoa1997 wrote:maybe if your bobber hits land you could pull yourself there like using the middle button or right-click
4aiman wrote:PS: configurable = awesome!
batami wrote:Not work for me . Help
Sokomine wrote:Help! Rainworms keep to fill up my inventory. Can you make it so that they will disappear when placed on dirt_with_grass or dirt? Living worms ought to try to dig themshelves back in :-)
VanessaE wrote:Post the exact text of the error message.
ndjdjksisksk wrote:VanessaE wrote:Post the exact text of the error message.
how do i do that in a windows 8 cmd command line prompt? i can't copy and past i have tried that.
Try Mossmanikin's fishing mod, he based it off this one, and it is very nice.DaN wrote:You should add a depends.txt.
Users browsing this forum: No registered users and 18 guests