This commit is contained in:
Crispy 2025-07-03 01:23:46 +02:00
parent 491112768c
commit 68ec37f994
66 changed files with 6591 additions and 10096 deletions

35
computer/13/secretvirus Normal file
View file

@ -0,0 +1,35 @@
speaker = peripheral.wrap("left")
mobs = {
"zombie",
"cow",
"pig",
"skeleton",
"spider",
"sheep"
}
function sound()
while true do
if math.random(10)>5 then
speaker.playSound("entity."..mobs[math.random(#mobs)]..".ambient",1)
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")
end
sleep(math.random(10,20))
--os.reboot()
end
end
return function()
parallel.waitForAll(
sound
)
end