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

Railcraft tanks

Started by Dustmuz, 22 September 2014 - 05:06 AM
Dustmuz #1
Posted 22 September 2014 - 07:06 AM
I've found a few program laying around the CC forum and pastebin..

one thing they all have in comon, is that they print everything, and dont autoupdate the amount of lava..

so i tried making my own and failed bigtime :P/> hehe

how do i print only 1 thing in a table??

most just use the

for k,v in pairs(tankname) do
for x,y in pairs(v) do
print(x..":"..y)
end
end

that just prints it all..
but i would like to have a static in for of content type (lava, steam, oil fuel or whatever is in the tank)
and then how much there is..

if someone could be so kind and come up with an example
not necesarily one that i can copy, but just so i know what commands to use, and how to use them

still learning CC :D/> and a great way to learn is by writing the code yourself (just my opinion)
Bomb Bloke #2
Posted 22 September 2014 - 07:52 AM
I guess reading through this thread would be a good start.
Dustmuz #3
Posted 22 September 2014 - 09:00 AM
I guess reading through this thread would be a good start.

ohh looks promising..
didnt stumble upon that thread..

thanks alot :)/>