Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -- CmdFlower
- -- Basic Behaviour
- -- ================
- -- Wait for turtle ack
- -- do redstone activation
- -- rewait
- -- modem on the right of the computer
- rednetHostname = "cmdFlower"
- rednet.open("right")
- rednetProtocol = "flower"
- rednetTimeout = 40 -- sec
- rednet.host(rednetProtocol,rednetHostname)
- redstone.setOutput("back",false)
- redstone.setOutput("left",true)
- function RedstoneTrick()
- redstone.setOutput("back",true)
- os.sleep(0.5)
- redstone.setOutput("left",false)
- os.sleep(0.5)
- redstone.setOutput("left",true)
- os.sleep(0.5)
- redstone.setOutput("back",false)
- end
- while true do
- id,msg,p,d = rednet.receive(rednetProtocol)
- if msg then
- RedstoneTrick()
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment