1
0
mirror of https://github.com/kepler155c/opus synced 2025-10-31 23:53:01 +00:00
Files
opus/sys/apis/sound.lua
kepler155c@gmail.com 880a81f655 socket dim / clock issue
2018-11-29 15:12:25 -05:00

13 lines
223 B
Lua

local peripheral = _G.peripheral
local Sound = { }
function Sound.play(sound, vol)
local speaker = peripheral.find('speaker')
if speaker then
speaker.playSound('minecraft:' .. sound, vol or 1)
end
end
return Sound