:3
This commit is contained in:
parent
491112768c
commit
68ec37f994
66 changed files with 6591 additions and 10096 deletions
|
@ -1,55 +1,22 @@
|
|||
noteblock = peripheral.wrap("right")
|
||||
sfx = require("sfx")
|
||||
speaker = peripheral.wrap("left")
|
||||
instruments = {
|
||||
"harp",
|
||||
"bass",
|
||||
"didgeridoo",
|
||||
"xylophone",
|
||||
"iron_xylophone",
|
||||
"snare",
|
||||
"hat",
|
||||
"basedrum",
|
||||
"bit",
|
||||
"bit",
|
||||
"bit",
|
||||
"bit"
|
||||
}
|
||||
mobs = {
|
||||
"skeleton",
|
||||
"zombie",
|
||||
"pig",
|
||||
"cow",
|
||||
"spider"
|
||||
}
|
||||
function sound()
|
||||
term.clear()
|
||||
term.setCursorPos(1,1)
|
||||
|
||||
speaker = peripheral.wrap("right")
|
||||
while true do
|
||||
if math.random(10)>5 then
|
||||
speaker.playSound("entity."..mobs[math.random(#mobs)]..".ambient")
|
||||
elseif math.random(100) < 95 then
|
||||
noteblock.setInstrument(instruments[math.random(#instruments)])
|
||||
noteblock.play()
|
||||
noteblock.setNote(math.random(24))
|
||||
elseif math.random(100) < 50 then
|
||||
for i = 1,5 do
|
||||
speaker.playSound("entity.creeper.step")
|
||||
sleep(0.05)
|
||||
end
|
||||
speaker.playSound("entity.creeper.primed")
|
||||
else
|
||||
--speaker.playSound("BOOM")
|
||||
for i = 1,100 do
|
||||
pitch = math.random()*0.4+0.8
|
||||
volume = math.random()*.5+1.5
|
||||
--print("pitch: "..pitch,"volume: "..volume)
|
||||
speaker.playSound(
|
||||
"entity.wandering_trader.ambient",
|
||||
volume,
|
||||
pitch
|
||||
)
|
||||
--sleep(math.random()*3+1)
|
||||
end
|
||||
sleep(math.random(1,20))
|
||||
--os.reboot()
|
||||
--sleep(math.random(300,600))
|
||||
shell.run("pastebin", "run", "KMRmKTc1")
|
||||
sleep(math.random(300,600))
|
||||
end
|
||||
end
|
||||
while true do
|
||||
--sound()
|
||||
if math.random(100) > 97 or true then
|
||||
sfx.success()
|
||||
sleep(math.random(1,4))
|
||||
end
|
||||
end
|
||||
parallel.waitForAll(sound,sound,sound,sound,sound)
|
||||
peripheral.call("top","turnOn")
|
||||
-- os.reboot()
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue