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

Problem with making a simple room

Started by TheToolofLight, 06 November 2016 - 03:15 PM
TheToolofLight #1
Posted 06 November 2016 - 04:15 PM
So i decided to write a program about mining out a room and replacing all the walls. It seemed to be working perfectly, until it got to the last wall or the 120 line of code. At that point any debuging or noticing the problems seemed to be impossible. I would like some insight why the 120th line does not work. Thanks in advance. (also, im a novice at computercraft, so the code might be rough around the edges)

The code : http://pastebin.com/ZwsAmcG5

Edit : Block type, which you want to use, go in the 15th slot, fuel goes in 16th slot
Edited on 06 November 2016 - 05:37 PM
Bomb Bloke #2
Posted 07 November 2016 - 12:09 PM
"k" is a number. "y" is a string. They'll hence never be identical.

y = tonumber(read())
TheToolofLight #3
Posted 07 November 2016 - 05:06 PM
That did the trick, thanks a lot !