Advertisement
Terraxel

Computercraft : Mobfarms client

Nov 14th, 2023 (edited)
891
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.39 KB | Gaming | 0 0
  1. -- Setup rednet connection
  2. local protocolName = "megaleader_mobfarm"
  3. local mobId = "mob_blaze" -- Change accordingly
  4. rednet.open("top")
  5. rednet.host(protocolName, mobId)
  6.  
  7. while true do
  8.     local senderId, message, protocol = rednet.receive(protocolName)
  9.     if message == true then
  10.         redstone.setOutput("back", true)
  11.     else
  12.         redstone.setOutput("back", false)
  13.     end
  14. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement