Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local channel = 1
- local modem = peripheral.wrap("top")
- local traitsRsSide = "left"
- local matureRsSide = "front"
- print("Computer listening for redstone from the " .. traitsRsSide .. " and " .. matureRsSide)
- while true do
- os.pullEvent("redstone")
- if rs.getAnalogInput(traitsRsSide) == 15 then
- modem.transmit(channel, channel, "finish")
- elseif rs.getAnalogInput(traitsRsSide) > 0 then
- modem.transmit(channel, channel, "replace")
- elseif rs.getInput(matureRsSide) then
- modem.transmit(channel, channel, "placeSticks")
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement