Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local component = require("component")
- local x1,x2,xn,y1,y2,yn,z1,z2,zn
- component.hologram.clear()
- function start()
- --------------------------------------------------
- x1=5
- y1=5
- z1=5
- x2=-5
- y2=-5
- z2=-5
- --------------------------------------------------
- xn=1+x1+math.abs(x2)
- yn=1+y1+math.abs(y2)
- zn=1+z1+math.abs(z2)
- holoprint(x1,y1,z1,x2,y2,z2)
- end
- function holoprint(cx1,cy1,cz1,cx2,cy2,cz2)
- local xnn=xn
- for x=cx1,cx2,-1 do
- local znn=zn
- for z=cz1,cz2,-1 do
- local ynn=yn
- for y=cy1,cy2,-1 do
- component.gpu.set(1,1,x .. " ")
- component.gpu.set(1,2,y .. " ")
- component.gpu.set(1,3,z .. " ")
- local block = component.geolyzer.scan(x,z,y,1,1,1)[1]
- if block > 0 then
- component.gpu.set(1,4,"true ")
- holo(xnn,ynn,znn,true)
- else
- component.gpu.set(1,4,"false ")
- holo(xnn,ynn,znn,false)
- end
- ynn=ynn-1
- end
- znn=znn-1
- end
- xnn=xnn-1
- end
- end
- function holo(x,y,z,value)
- component.gpu.set(5,1,x .. " ")
- component.gpu.set(5,2,y .. " ")
- component.gpu.set(5,3,z .. " ")
- component.hologram.set(x,y,z,value)
- end
- start()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement