mirror of
https://github.com/kepler155c/opus
synced 2025-01-15 01:45:42 +00:00
13 lines
223 B
Lua
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
|