Compare commits

...

5 Commits

Author SHA1 Message Date
Ginger88895 21d3832292 Fixed infotext 2015-10-11 04:29:44 +00:00
Ginger88895 7e13cf6543 Sensor! 2015-09-25 12:09:59 +00:00
Ginger88895 f226566ee2 Sensor! 2015-09-25 12:07:11 +00:00
Ginger88895 ac65c434d8 Sensor! 2015-09-25 12:00:34 +00:00
Ginger88895 2948812ad6 Sensor! 2015-09-25 11:58:04 +00:00
1 changed files with 6 additions and 4 deletions

View File

@ -84,10 +84,12 @@ function UpdateSensorAll(pos, search_item)
end
if found > 0 then
info_text = ("Found " .. search_item .. " @ Distance" .. tostring(search_distance))
info_text = ("Found " .. search_item .. " @ Distance " .. tostring(dist))
else
info_text = (search_item .. "is not found nearby")
info_text = (search_item .. " is not found nearby")
end
local newmeta = minetest.get_meta(pos)
newmeta:set_string("infotext",info_text)
newmeta:set_string("search_item", search_item)
end
@ -155,8 +157,8 @@ minetest.register_node("mineral_detector:materializer", {
minetest.register_craft({
output = 'mineral_detector:materializer 1',
recipe = {
{'default:diamondblock', 'default:nyancat', 'default:diamondblock'},
{'default:diamondblock', 'default:nyancat', 'default:diamondblock'},
{'default:diamondblock', 'default:obsidian', 'default:diamondblock'},
{'default:diamondblock', 'default:mese', 'default:diamondblock'},
{'default:diamondblock', 'default:diamondblock', 'default:diamondblock'},
}
})