Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local modem = peripheral.wrap("right") -- Wraps modem peripheral.
- modem.open(1) -- Opens and listens to channel 1 (modem).
- while true do
- local event, modemSide, senderChannel = os.pullEvent("modem_message") -- pulls event "modem_message"
- if event == "modem_message" and senderChannel == 1 then -- If event is "modem_message" and channel 1 place block.
- turtle.place()
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment