FANDOM


Logo-ComputerCraft Advanced Computer contains information about the ComputerCraft mod.


The Advanced Computer is a device added by the ComputerCraft mod. It works in the same way that computers do, but have the ability to display color on the screen and supports mouse input. There are 16 different colors that can be used.

Color is used by entering term.setBackgroundColor(colorvalue)  (colorvalue is the value of a color e.g. 1= white 2 = orange, 4 = magenta or you can use the colors api e.g. colors.white, colors.orange, colors.magenta)

and term.setTextColor(colorvalue)

You can watch a video that shows some of the things possible with the new Advanced Computers here.

RecipeEdit

Crafting GUI.png

Gold Ingot


Gold Ingot


Gold Ingot


Gold Ingot


Redstone


Glass Pane


Gold Ingot


Gold Ingot


Gold Ingot


Advanced Computer




Mouse InputEdit

Mouse input is done in the form of events. The events put in examples are...

event, button clicked, co-ordinates x, co-ordinates y = os.pullEvent("mouse_click")

The event variable will be equal to "mouse_click".

The button clicked variable will be equal to the button you click (left click is 1, right click is 2 and mouse wheel button is 3).

The co-ordinates x and y variables will be equal to the x and y co-ordinates where you clicked. The bottom right corner would be: For co-ordinates x, 51 and for co-ordinates y, 19.


event, scroll direction, co-ordinates x, co-ordinates y = os.pullEvent("mouse_scroll")

The event variable will be equal to "mouse_scroll"

The scroll direction variable will be 1 if you scrolled down and -1 if you scrolled up.

The co-ordinates x and y variables will be equal to the x and y co-ordinates you scrolled at.

Ad blocker interference detected!


Wikia is a free-to-use site that makes money from advertising. We have a modified experience for viewers using ad blockers

Wikia is not accessible if you’ve made further modifications. Remove the custom ad blocker rule(s) and the page will load as expected.