Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- modem = peripheral.wrap("top")
- term.clear()
- rs.setOutput("bottom", true)
- local mob = "Wither"
- local channel = 32
- modem.open(channel)
- print(" computer id: ".. os.getComputerID())
- print(" Spawner: ".. mob)
- print(" modem-kanaal ".. channel)
- while true do
- local event, modemSide, senderChannel, replyChannel, message, senderDistance = os.pullEvent("modem_message")
- if (message == mob.."-off") then
- rs.setOutput("bottom", true)
- end
- if (message == mob.."-on") then
- rs.setOutput("bottom", false)
- end
- os.sleep(0.1)
- end
Advertisement
Add Comment
Please, Sign In to add comment