Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local wlist = {['Lockry'] = true}
- local sleep = 10
- local side = 1
- local status
- local component = require('component')
- local computer = require('computer')
- local redstone = component.redstone
- local chat_box = component.chat_box
- local signal = computer.pullSignal
- function computer.pullSignal(...)
- local e = {signal(...)}
- if status and status+sleep*72 <= os.time() then
- redstone.setOutput(side, 0)
- status = nil
- end
- if e[1] == 'chat_message' and wlist[e[3]] then
- if e[4] == 'startmob' then
- status = os.time()
- redstone.setOutput(side, 15)
- end
- end
- return table.unpack(e)
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement