Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- rednet.open("left")
- local function clickPocketDimension()
- redstone.setOutput("bottom", true)
- os.sleep(1)
- redstone.setOutput("bottom", false)
- os.sleep(1)
- end
- local function dcPD()
- clickPocketDimension()
- clickPocketDimension()
- end
- if #arg == 0 then
- print("Client has been started")
- while true do
- local senderID, message, protocol = rednet.receive()
- print("Sender ID: " .. senderID)
- print("Message: " .. message)
- print("Protocol: " .. protocol)
- if protocol == "message" then
- dcPD()
- end
- end
- elseif arg[1] == "send" then
- rednet.send(tonumber(arg[2]), "Sended", "message")
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement