77wisher77

Blaze Spawner Melee Rednet

Jun 2nd, 2021 (edited)
107
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.47 KB | None | 0 0
  1. local channelProtocol = wBlazeSpawnerFarm1
  2. rednet.open("left")
  3. local a = true
  4. local SLOTS = 16
  5. print("listening on rednet")
  6. while a==true do
  7.   local senderID, msg = rednet.receive(channelProtocol)
  8.   if msg=="stop" then
  9.     a = false
  10.     print("Clearing Inventory")
  11.     for i = 1, SLOTS, 1 do
  12.       turtle.select(i)
  13.       turtle.dropDown()
  14.     end
  15.     print("Stopping")
  16.     os.reboot()
  17.   end
  18. if msg=="start" then
  19.   local id = multishell.launch({}, "attack")
  20. end
  21. end
Add Comment
Please, Sign In to add comment