Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local Ore = {}
- local oreTable = {
- ["minecraft:iron_ore"]=true
- }
- local function oreFront()
- success, data = turtle.inspect()
- if success and oreTable[data.name] then
- return true, data.name
- end
- return false, nil
- end
- function Ore.lookForOre()
- success, ore = oreFront()
- if success then
- return success, ore
- end
- return false, nil
- end
- return Ore
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement