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

[Question] What sides are available?

Started by PetruZ, 15 May 2012 - 12:37 PM
PetruZ #1
Posted 15 May 2012 - 02:37 PM
Hi. I am wondering which sides are available in, for example: disk.eject("bottom"). I would specifically want to know what the "up" word is.

Thanks.
PetruZ

EDIT: I am also wondering how I can use colors, specifically in strings, like print(color"Hello") or something.
MysticT #2
Posted 15 May 2012 - 03:17 PM
For the sides, you can use the rs.getSides() functions, wich returns a table containing the valid sides. The side names may change (very unlikely, but possible), but they are: left, right, front, back, top, bottom.
If you want to print colored text, you can't. It's not supported (might be in a future update), you can only change the text color from the config, but it's for all the text.
PetruZ #3
Posted 15 May 2012 - 03:36 PM
Okay, thank you for the help!
:P/>/>