Gatharoth wrote:LOVE IT! This will help solve the rare iron problem XP All a person needs to do is get lucky and find 1 iron.
mcburgerbob wrote:Gatharoth wrote:LOVE IT! This will help solve the rare iron problem XP All a person needs to do is get lucky and find 1 iron.
no, they have to find all the iron to make the iron blocks!
MrThebuilder3 wrote:aww i really wanted to use this but: 18:52:17: ERROR[main]: Error loading mod "randomproofs-minetest-mods-mineral_detector": modname does not follow naming conventions: Only chararacters [a-z0-9_] are allowed.
18:52:17: ERROR[main]: Server: Failed to load and run C:\Users\family\Desktop\m4\bin\..\data\mods\randomproofs-minetest-mods-mineral_detector\init.lua
BanManager: saving to C:\Users\family\Desktop\m4\bin\..\world\ipban.txt
AuthManager: saving to C:\Users\family\Desktop\m4\bin\..\world\auth.txt
18:52:17: ERROR[main]: ModError: Failed to load and run C:\Users\family\Desktop\m4\bin\..\data\mods\randomproofs-minetest-mods-mineral_detector\init.lua
18:52:17: ERROR[main]: error_message = ModError: Failed to load and run C:\Users\family\Desktop\m4\bin\..\data\mods\randomproofs-minetest-mods-mineral_detector\init.lua
18:52:17: ERROR[main]: Check debug.txt for details.
18:52:17: INFO[main]: Created main menu
sapier wrote:what about making it smaler range and only supporting on specific ore?
randomproof wrote:MrThebuilder3 wrote:aww i really wanted to use this but: 18:52:17: ERROR[main]: Error loading mod "randomproofs-minetest-mods-mineral_detector": modname does not follow naming conventions: Only chararacters [a-z0-9_] are allowed.
18:52:17: ERROR[main]: Server: Failed to load and run C:\Users\family\Desktop\m4\bin\..\data\mods\randomproofs-minetest-mods-mineral_detector\init.lua
BanManager: saving to C:\Users\family\Desktop\m4\bin\..\world\ipban.txt
AuthManager: saving to C:\Users\family\Desktop\m4\bin\..\world\auth.txt
18:52:17: ERROR[main]: ModError: Failed to load and run C:\Users\family\Desktop\m4\bin\..\data\mods\randomproofs-minetest-mods-mineral_detector\init.lua
18:52:17: ERROR[main]: error_message = ModError: Failed to load and run C:\Users\family\Desktop\m4\bin\..\data\mods\randomproofs-minetest-mods-mineral_detector\init.lua
18:52:17: ERROR[main]: Check debug.txt for details.
18:52:17: INFO[main]: Created main menu
If you are downloading the compressed archive you need to change the directory it is in to "mineral_detector", take out the "randomproofs-minetest-mods-" part. I need to look in to renaming all of my mods to match the default created directory, but that will most likely have to wait until tomorrow.
Calinou wrote:Wow, I like it.
You should add some confirmation message when changing its range, too (if not done already.)
19:54:34: ACTION[ServerThread]: hurufu places material 2086 at (-14,-4,-72)
terminate called after throwing an instance of 'LuaError'
what(): LuaError: error: ...test-0.4d/bin/../data/mods/mineral_detector/init.lua:504: attempt to index global 'node' (a nil value)
stack traceback:
Aborted
hurufu wrote:I've got this message while trying to put detector on the ground.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
19:54:34: ACTION[ServerThread]: hurufu places material 2086 at (-14,-4,-72)
terminate called after throwing an instance of 'LuaError'
what(): LuaError: error: ...test-0.4d/bin/../data/mods/mineral_detector/init.lua:504: attempt to index global 'node' (a nil value)
stack traceback:
Aborted
minetest.register_on_placenode(
function(pos, newnode, placer)
if string.match(newnode.name, "mineral_detector:") ~= nil then
local meta = minetest.env:get_meta(pos)
meta:set_infotext("")
if newnode.name == "mineral_detector:detector" then
UpdateDetectorAll(pos, min_search_distance)
elseif newnode.name == "mineral_detector:iron_detector" then
UpdateDetectorIron(pos, min_search_distance)
elseif newnode.name == "mineral_detector:coal_detector" then
UpdateDetectorCoal(pos, min_search_distance)
elseif newnode.name == "mineral_detector:mese_detector" then
UpdateDetectorMese(pos, min_search_distance)
end
end
end
)
kahrl wrote:I see in the diff that you use dug_item, which doesn't work anymore (I think?). The field is now called drop, e.g.
drop = 'mineral_detector:detector 1'
and so on.
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.
...
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
...
Users browsing this forum: No registered users and 28 guests