1
0
Fork 0
mirror of https://fem.mint.lgbt/m/Rhythmblock.git synced 2024-08-14 20:27:11 +00:00
Rhythmblock/neodj.lua

18 lines
357 B
Lua
Raw Normal View History

2021-05-06 03:55:24 +00:00
local accentColor = colors.gray
local buttonColor = colors.lightGray
local backgroundColor = colors.black
2021-05-06 04:15:32 +00:00
local drive = peripheral.getType("disk_drive")
2021-05-06 03:55:24 +00:00
function playDisk()
2021-05-06 04:15:32 +00:00
disk.playAudio(drive)
end
2021-05-06 03:55:24 +00:00
if disk.isPresent(drive) and disk.hasAudio(drive) then
2021-05-06 04:15:32 +00:00
playDisk(drive)
2021-05-06 03:55:24 +00:00
elseif disk.isPresent() then
print "Not a music disc"
else
print "No disc"
end
2021-05-06 03:55:24 +00:00