Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local clock = os.clock
- function sleep(n) -- seconds
- os.queueEvent("randomEvent")
- os.pullEvent()
- local t0 = clock()
- while clock() - t0 <= n do end
- end
- local speaker = peripheral.find("speaker")
- function portal()
- speaker.playSound("minecraft:block.portal.travel", 1)
- sleep(7)
- end
- function walk()
- print('walk')
- speaker.playSound("minecraft:block.gravel.step", 1)
- sleep(0.3)
- speaker.playSound("minecraft:block.gravel.step", 1)
- sleep(0.1)
- speaker.playSound("minecraft:block.gravel.step", 1)
- sleep(0.5)
- speaker.playSound("minecraft:block.gravel.step", 1)
- end
- function openShelf()
- print('openShelf')
- speaker.playSound("minecraft:block.piston.contract", 1)
- sleep(2)
- end
- function closeShelf()
- print('closeShelf')
- speaker.playSound("minecraft:block.piston.extend", 1)
- sleep(2)
- end
- function read()
- print('read')
- speaker.playSound("patchouli:book_flip", 1)
- sleep(0.2)
- speaker.playSound("patchouli:book_flip", 1)
- sleep(0.3)
- speaker.playSound("patchouli:book_flip", 1)
- sleep(1)
- end
- function placeBlock()
- print('placeBlock')
- speaker.playSound("minecraft:block.wood.place", 1)
- sleep(0.1)
- speaker.playSound("minecraft:block.wood.place", 1)
- sleep(0.1)
- speaker.playSound("minecraft:block.wood.place", 1)
- sleep(0.2)
- speaker.playSound("minecraft:block.wood.place", 1)
- sleep(1)
- end
- function arrow()
- print('arrow')
- sleep(1)
- speaker.playSound("minecraft:entity.arrow.hit", 1)
- sleep(0.5)
- speaker.playSound("minecraft:entity.generic.death", 1)
- end
- function sword()
- print('sword')
- sleep(0.5)
- speaker.playSound("minecraft:entity.player.attack.sweep", 1)
- end
- function death()
- print('death')
- sleep(1)
- speaker.playSound("botania:gaia_death", 1)
- sleep(1)
- speaker.playSound("minecraft:item.totem.use", 1)
- end
- function levelup()
- print('levelup')
- speaker.playSound("minecraft:entity.player.levelup", 1)
- sleep(1)
- speaker.playSound("minecraft:entity.firework_rocket.launch", 1)
- sleep(1)
- speaker.playSound("minecraft:entity.firework_rocket.launch", 1)
- sleep(1)
- end
- function fight()
- print('fight')
- arrow()
- arrow()
- sword()
- sword()
- death()
- levelup()
- end
- portal()
- walk()
- openShelf()
- read()
- closeShelf()
- walk()
- placeBlock()
- walk()
- fight()
- walk()
- portal()
Add Comment
Please, Sign In to add comment