Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local hologram = peripheral.find("hologram")
- local g3d = hologram.graphics3d
- hologram.clear()
- hologram.on()
- local boxIndex = g3d.addBox(0, 0, 0, 0.5, 0.5, 0.5, 0x00FFFF, true)
- -- Animate the box moving up and down
- local y = 0
- local direction = 1
- while true do
- y = y + 0.05 * direction
- if y > 1 then direction = -1 end
- if y < 0 then direction = 1 end
- g3d.update(boxIndex, {y = y})
- sleep(0.05)
- end
Advertisement
Add Comment
Please, Sign In to add comment