This is a read-only snapshot of the ComputerCraft forums, taken in April 2020.
Surprise655's profile picture

My While true loop is not working

Started by Surprise655, 26 May 2016 - 03:22 PM
Surprise655 #1
Posted 26 May 2016 - 05:22 PM
I have a while true loop in a command computer to keep and summoning these creates every ten mins, but sometimes it will run once, run, but only summon one create, or not at all.
please help!

pastebin: 9TkrMSMy
The Higher Realm #2
Posted 26 May 2016 - 06:50 PM
It's waiting for a redstone current to go into the back of the computer.
Surprise655 #3
Posted 27 May 2016 - 05:18 PM
Even with the Redstone it doesn't work

Look at this one that I had friend help with. It works better, but still the same problems less often.
HfpU9pUM

Note: I am doing a LAN server would this have any effect?
valithor #4
Posted 27 May 2016 - 06:43 PM
Could you pastebin the crate api? From the code you posted I cannot see any reason that it would not work, but there might be something in the crate api that causes it to hang. I checked the pastebin at the top, but could not find the summonCrate function in it.
Bomb Bloke #5
Posted 28 May 2016 - 01:26 AM
Presumably the debug messages aren't prin
Even with the Redstone it doesn't work

And exactly how are you providing that redstone signal?

Via another script?

If so, make sure your pulses last long enough for Minecraft's redstone system to acknowledge their existence. It only checks redstone states every tenth of a second.
Edited on 27 May 2016 - 11:26 PM
Surprise655 #6
Posted 31 May 2016 - 05:10 PM
Via Script from behind it. It's on for 2 sleeps for 1 min after it turns off