Compare commits
5 Commits
84d929ac85
...
21d3832292
Author | SHA1 | Date |
---|---|---|
Ginger88895 | 21d3832292 | |
Ginger88895 | 7e13cf6543 | |
Ginger88895 | f226566ee2 | |
Ginger88895 | ac65c434d8 | |
Ginger88895 | 2948812ad6 |
10
init.lua
10
init.lua
|
@ -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'},
|
||||
}
|
||||
})
|
||||
|
|
Loading…
Reference in New Issue