Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --[[demo materials used:
- *full capacitor bank
- *power converter
- *capacitor
- *computer case T3
- *EEPROM (Lua Bios)
- *Graphics Card T3
- *Redstone Card T2
- *Internet Card
- *CPU T3
- *Memory T3
- *HDD T3
- *Floppy Disk (OpenOS)
- *6 Screens T3
- *keyboard
- *hologram projector
- *cables
- pastebin run hwXs7ptg [optScale 0.33 - 3] ["chicken" or "house"]
- default chicken, scale:1
- ]]--
- local fs = require("filesystem")
- local component = require("component")
- local colors = require("colors")
- local hologram = component.hologram
- local args = {...}
- hologram.clear()
- hologram.setScale(tonumber(args[1]) or 1)
- local function colorChanged(prevID,prevData,newID,newData)
- if prevID == newID and prevData == newData then
- return false
- else
- return true
- end
- end
- local function pick(id,data)
- if id then
- if id == 35 then
- if data == 4 then
- return 1
- elseif data == 0 then
- return 2
- elseif data == 14 then
- return 3
- end
- elseif id == 5 then
- return 1
- else
- return 3
- end
- else
- return 3
- end
- end
- if not fs.exists("instructions") then
- shell.execute("pastebin get q9Knia4V instructions")
- end
- if not fs.exists("instructions2") then
- shell.execute("pastebin get 2z3NSYU5 instructions2")
- end
- loadfile("instructions")()
- loadfile("instructions2")()
- --should init instructions
- if args[2] == "house" then
- ins = instructions2
- else
- ins = instructions
- end
- for k,v in pairs(ins) do
- if k > 0 then
- local prev = ins[k-1] or ins[k]
- hologram.set(prev[2]+20,prev[1]+1,prev[3]+20,1)
- end
- hologram.set(v[2]+20,v[1]+1,v[3]+20,2)
- os.sleep(0)
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement