Posted 21 June 2015 - 09:31 PM
First off, I know next to nothing about LUA or coding in general. I know what I wrote is probably laughable, but it works (mostly) However, I am interested in learning more to make redstone bend to my will and have more general coding knowledge!
I tried to write a simple Advanced computer monitor code to control the output of liquids to a Tinker's Construct Tank, it works great!! however, There is a spot where I tried to change the color when the "if" statement is fulfilled and it does not change color! I tried to write it in the same if statement and it didn't work. I tried to originally write it so that if it was pressed again, it would go to sleep(1) to restart the program from the true statement, it did;t work that way, but it did put the text color green for a tick and shut the program off.
Here is a pastebin to what I wrote:
pastebin.com/eZDwu5ck
Appreciate any assistance and even ways to make this simple code better, or things that I should research in my coding quest. Thanks guys!
I tried to write a simple Advanced computer monitor code to control the output of liquids to a Tinker's Construct Tank, it works great!! however, There is a spot where I tried to change the color when the "if" statement is fulfilled and it does not change color! I tried to write it in the same if statement and it didn't work. I tried to originally write it so that if it was pressed again, it would go to sleep(1) to restart the program from the true statement, it did;t work that way, but it did put the text color green for a tick and shut the program off.
Here is a pastebin to what I wrote:
pastebin.com/eZDwu5ck
Appreciate any assistance and even ways to make this simple code better, or things that I should research in my coding quest. Thanks guys!
Edited on 22 June 2015 - 06:08 PM