9551

XRay

Jul 6th, 2021 (edited)
96
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.70 KB | None | 0 0
  1. local e = peripheral.wrap("back")local t = peripheral.wrap("bottom")local
  2. a = {"minecraft:diamond_ore", "minecraft:iron_ore", "minecraft:gold_ore", "minecraft:redstone_ore", "minecraft:lapis_ore", "minecraft:emerald_ore", "minecraft:coal_ore"}function
  3. intable(o, i)for _, s in pairs(i)do if s == o then return true end end end while
  4. true do e.canvas3d().clear()local h = e.canvas3d().create()local
  5. r, d, l = gps.locate()r = r % 1 d = d % 1 l = l % 1 local u = e.scan()for c = 1, #u do local
  6. m = u[c]local f = m.name if intable(f, a)then local
  7. w = h.addItem({m.x - r + .5, m.y - d + .5, m.z - l + .5}, f)w.setDepthTested(false)if
  8. f == "minecraft:diamond_ore"then t.playNote("harp", 5, 20)end end end
  9. sleep(.1)end
Add Comment
Please, Sign In to add comment