Advertisement
TheDieselPunk

Clearlag Detect

Mar 10th, 2021 (edited)
860
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.25 KB | None | 0 0
  1. box = peripheral.wrap("right")
  2.  
  3. while true do
  4.   local event, _, Username, Message = os.pullEvent("chatEvent")
  5.   if (Message == "Test") then
  6.     redstone.setAnalogOutput("top", 15)
  7.     sleep(0.5)
  8.   else
  9.     redstone.setAnalogOutput("top", 0)
  10.   end
  11. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement