Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -- Setup rednet connection
- local protocolName = "megaleader_mobfarm"
- local mobId = "mob_blaze" -- Change accordingly
- rednet.open("top")
- rednet.host(protocolName, mobId)
- while true do
- local senderId, message, protocol = rednet.receive(protocolName)
- if message == true then
- redstone.setOutput("back", true)
- else
- redstone.setOutput("back", false)
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement