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

how to get label

Started by rg98, 06 January 2013 - 05:51 AM
rg98 #1
Posted 06 January 2013 - 06:51 AM
i need a program that i can youse as a startup script that gets both label and fuel i want it to look like this

name
turtles label
fuel level
turtles fuel level

help!
Orwell #2
Posted 06 January 2013 - 06:57 AM
That would be like this:

print( "Name: " .. os.getComputerLabel() )
print( "Fuel level: " .. turtle.getFuelLevel() )
The wiki is a great source for this.
rg98 #3
Posted 06 January 2013 - 07:05 AM
thx