hi need help cant figure this crap out i use to understand these damn things but not anymore apparently all im trying to do is write 2 programs one that out puts a pulse on one side so many times and one that outputs a pulse on a diff side so many times simple right except i suck or they suck or well something sucks and it aint cool
7 replies to this topic
#1
Posted 23 August 2017 - 12:56 AM
#2
Posted 23 August 2017 - 03:45 AM
so this is what i have been trying
for i = 1,10 do
redstone.setoutput("left" "true")
sleep(1)
redstone.setoutput("left" "false")
sleep(1)
end
for i = 1,10 do
redstone.setoutput("left" "true")
sleep(1)
redstone.setoutput("left" "false")
sleep(1)
end
#3
Posted 23 August 2017 - 07:59 AM
Seems you're missing a comma after your "left"s.
#4
Posted 23 August 2017 - 03:32 PM
It should be ("left", true) and ("left", false). Missing commas and true/false is a boolean, not a string.
Edited by The Crazy Phoenix, 23 August 2017 - 03:32 PM.
#5
Posted 23 August 2017 - 03:38 PM
Also, redstone.setoutput is not a valid redstone command - redstone.setOutput is. You need to capitalize the 'o's in output.
#6
Posted 23 August 2017 - 11:49 PM
great thanks guys got it working now would it be hard to have the program remember what number its on after a reboot since the damn things reboot after every move
#7
Posted 23 August 2017 - 11:59 PM
What do you mean by "move"? Are you trying to make an elevator out of Redstone In Motion or somesuch?
#8
Posted 24 August 2017 - 11:34 AM
Either use some form of world sensor or store the current index in a file.
1 user(s) are reading this topic
0 members, 1 guests, 0 anonymous users











