Advertisement
Corbinhol

Duper Controller

Sep 23rd, 2022 (edited)
842
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.45 KB | None | 0 0
  1. --Tnt Duper Controller
  2. local protocol = "TNTDUPER";
  3. rednet.open("top");
  4. rednet.host(protocol, "duper");
  5.  
  6. function activateDuper()
  7.     print("Activating");
  8.     redstone.setOutput("back", true);
  9.     sleep(.5)
  10.     redstone.setOutput("back", false);
  11. end
  12.  
  13. function server()
  14.     while true do
  15.         local from, message = rednet.receive(protocol);
  16.         if message == "activate" then
  17.             activateDuper();
  18.         end
  19.     end
  20. end
  21.  
  22. server();
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement