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