while true do turtle.attack() sleep(0.01) end
getting a turtle to activate on redstone
Started by makeme, May 30 2013 04:20 PM
2 replies to this topic
#1
Posted 30 May 2013 - 04:20 PM
so ive got this program automating one of my machines but i only want it to activate on redstone in how would i do this?
#2
Posted 30 May 2013 - 05:19 PM
Look on the wiki for os.pullEvent and check out the redstone event (it's located under "event types", but you should read the whole page to become more familiar os.pullEvent). See if you can figure something out. If not, come back with what you've tried and I (or someone else) can help you out some more.
#3
Posted 30 May 2013 - 09:19 PM
local event = os.pullEvent() if event == "redstone" and redstone.getInput(*side*, true) then --code here end
1 user(s) are reading this topic
0 members, 1 guests, 0 anonymous users











