Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local component = require("component")
- local geolyzer = component.geolyzer
- local offsetx = -10
- local offsetz = -10
- local offsety = -10
- local sizex = 20
- local sizez = 20
- local sizey = 20
- local map = {}
- local i = 1
- for y = 0, sizey - 1 do
- for z = 0, sizez - 1 do
- local scanData = geolyzer.scan(offsetx + x, offsetz + x, offsety + y, sizex, 1, 1)
- local j = 1
- for x = 0, sizex - 1 do
- map[i] = {posx = offsetx + x, posy = offsety + y, posz = offsetz + z, hardness = scanData[j]}
- i = i + 1
- j = j + 1
- end
- end
- end
- local hologram = component.hologram
- for i = 1, sizex*sizez*sizey do
- hologram.set(map[i].posx, map[i].posy, map[i].posz, map[i].hardness > 0)
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement