Mineral Detector
I get this error when trying to pick detector back up to relocate:
11:48:53: ERROR[ServerThread]: ERROR: An unhandled exception occurred: LuaError: error: /root/.minetest/usermods/mineral_detector/init.lua:476: attempt to call method 'get_wield_digging_properties' (a nil value)
11:48:53: ERROR[ServerThread]: stack traceback:
Touching it with an empty hand or tool causes the game to crash and close.
11:48:53: ERROR[ServerThread]: ERROR: An unhandled exception occurred: LuaError: error: /root/.minetest/usermods/mineral_detector/init.lua:476: attempt to call method 'get_wield_digging_properties' (a nil value)
11:48:53: ERROR[ServerThread]: stack traceback:
Touching it with an empty hand or tool causes the game to crash and close.
i get the same thing aswelI get this error when trying to pick detector back up to relocate:
11:48:53: ERROR[ServerThread]: ERROR: An unhandled exception occurred: LuaError: error: /root/.minetest/usermods/mineral_detector/init.lua:476: attempt to call method 'get_wield_digging_properties' (a nil value)
11:48:53: ERROR[ServerThread]: stack traceback:
Touching it with an empty hand or tool causes the game to crash and close.
My Twitter - https://twitter.com/The_Mad_Beast (contact me here)
My Youtube- http://www.youtube.com/user/thebeast1maddogg
My Youtube- http://www.youtube.com/user/thebeast1maddogg
-
- Member
- Posts: 214
- Joined: Thu Nov 17, 2011 06:31
- Location: California, USA
I pushed the update just now. The change is below if you don't want to pull it from git.
Code: Select all
...
minetest.register_on_punchnode(function(pos, node, puncher)
if string.match(node.name, "mineral_detector:") ~= nil then
if puncher:get_wielded_item():get_tool_digging_properties().dt_crumbliness ~= -1 then
return
end
...
- LolManKuba
- Member
- Posts: 939
- Joined: Fri Feb 10, 2012 22:36
- Location: Ontario, Canada
- Contact:
marc.
1. Tar.gz is a like a Linux zip file but you CAN open it using a file manager, like 7-zip
2. This mod might not work anymore
Three: The brown lump is iron.
(I said Three because my three button isn't working for some reason
1. Tar.gz is a like a Linux zip file but you CAN open it using a file manager, like 7-zip
2. This mod might not work anymore
Three: The brown lump is iron.
(I said Three because my three button isn't working for some reason
Last edited by LolManKuba on Sat Aug 04, 2012 20:34, edited 1 time in total.
No, it didn't work on 0.4.3.Josh wrote:Does this work wth 0.4.3? If not it should be upgraded, because this could be really handy
I made some minor changes (Which will follow the main license, Public Domain) and now it works again, at least on celeron55-minetest-1db0334:
http://dl.dropbox.com/u/65428713/mineral_detector.zip
Have fun with it :-)
Thanks :)Topywo wrote:No, it didn't work on 0.4.3.Josh wrote:Does this work wth 0.4.3? If not it should be upgraded, because this could be really handy
I made some minor changes (Which will follow the main license, Public Domain) and now it works again, at least on celeron55-minetest-1db0334:
http://dl.dropbox.com/u/65428713/mineral_detector.zip
Have fun with it :-)
After downloading it i changed the Iron Dectectors recipe to wood & glass, instead of using wood and iron lumps
Last edited by Josh on Thu Nov 15, 2012 02:10, edited 1 time in total.
- Dan Duncombe
- Member
- Posts: 904
- Joined: Thu May 09, 2013 21:11
- Location: In the unknown depths of Earth
could you add a handheld one that, when right clicked, tells you ehat is in front of you for a 5 block distance or something?
randomproof wrote:I wanted to make this a non-trivial device to make so it takes a lot of iron to make (think of it as the casing and the electronics/magnetics inside) and a sample of each of the ores to be found.
Of course, I could add a version that doesn't use steel blocks and just make it have a smaller range?
Some Mods: Castles Prefab Camouflage
My Games: Nostalgia Realtest Revamped
Servers: See above games.
My Games: Nostalgia Realtest Revamped
Servers: See above games.
-
- Member
- Posts: 14
- Joined: Fri Feb 28, 2014 11:29
i have updated this mod for minetest 4.9, i'm not a coder and probably there's something wrong but it work fine, if i can post it i upload it somewhere
Last edited by NyankoSensei on Fri Feb 28, 2014 11:31, edited 1 time in total.
Randomproof hasn't been on for almost 2 years. Afaik you can post it as long as you don't violence the license. In this case 'public domain', so go ahead, although it would be nice to give randomproof credit.NyankoSensei wrote:i have updated this mod for minetest 4.9, i'm not a coder and probably there's something wrong but it work fine, if i can post it i upload it somewhere
-
- Member
- Posts: 14
- Joined: Fri Feb 28, 2014 11:29
My modification of this mod, you can make a iron detector with
and after upgrade it for find iron, mese and diamond
Every click over the object increase the range of search from 2 to max 12
Tested with minetest 0.4.9
License
Public Domain
Thanks to Randomproof for the original code
Download HERE
and after upgrade it for find iron, mese and diamond
Every click over the object increase the range of search from 2 to max 12
Tested with minetest 0.4.9
License
Public Domain
Thanks to Randomproof for the original code
Download HERE
Last edited by NyankoSensei on Fri Feb 28, 2014 16:25, edited 1 time in total.
Who is online
Users browsing this forum: No registered users and 57 guests