Main Page: Difference between revisions

From OpenComputers: Rebooted
Jump to navigation Jump to search
m Reverted edit by Michiyo (talk) to last revision by [[User:imported>OCDoc Import|imported>OCDoc Import]]
Tag: Rollback
m Link to OC:R's default config
 
(One intermediate revision by the same user not shown)
Line 1: Line 1:
= Official documentation of OpenComputers =
= Official documentation of OpenComputers: Rebooted =


OpenComputers is a mod that adds computers and robots into the game, which can be programmed in [http://www.lua.org/ Lua] [http://www.lua.org/manual/5.3/manual.html 5.3]. It takes ideas from a couple of other mods such as ComputerCraft, StevesCarts and Modular Powersuits to create something new and interesting.
OpenComputers: Rebooted is a continuation of the OpenComputers mod, adding computers and robots into the game which can be programmed in [http://www.lua.org/ Lua] [http://www.lua.org/manual/5.3/manual.html 5.3]. It takes ideas from a couple of other mods such as ComputerCraft, StevesCarts and Modular Powersuits to create something new and interesting.
 
The wiki for the original OpenComputers mod, for versions of Minecraft prior to 1.21, can be found [https://ocdoc.cil.li here]. Many fundamentals are still the same, but some features and details have changed in OC:R. Please note that the original wiki appears to be out of date on some details, even for the versions it covers.


* [[#contents|Block and item documentation]] - [[API|Lua API documentation]] - [[Component|Component API documentation]]
* [[#contents|Block and item documentation]] - [[API|Lua API documentation]] - [[Component|Component API documentation]]
Line 7: Line 9:
* [[Tutorial|Tutorials]] - [[Tutorial/oc1 basic computer|Getting started]] - [http://oc.cil.li/ Homepage]
* [[Tutorial|Tutorials]] - [[Tutorial/oc1 basic computer|Getting started]] - [http://oc.cil.li/ Homepage]


* [https://oc.shadowkat.net/ Ingame manual as HTML]
* [https://oc.shadowkat.net/ In-game manual as HTML]


== Connectivity ==
== Connectivity ==
Line 47: Line 49:
== Configurability ==
== Configurability ==


Almost every aspect of the mod can be tweaked via the configuration file. Not a fan of computers requiring power to run? Set their running cost to zero. Don't want power to play a role at all? Disable it completely! Think robots move too slow? Make 'em faster. Want bigger multi-block screens? Increase the maximum size. Just have a look at the [https://github.com/MightyPirates/OpenComputers/blob/master-MC1.7.10/src/main/resources/application.conf default configuration file] to see all the options.
Almost every aspect of the mod can be tweaked via the configuration file. Not a fan of computers requiring power to run? Set their running cost to zero. Don't want power to play a role at all? Disable it completely! Think robots move too slow? Make 'em faster. Want bigger multi-block screens? Increase the maximum size. Just have a look at the [https://github.com/PC-Logix/OpenComputers/blob/main-MC1.21.1/src/main/resources/application.conf default configuration file] to see all the options.


== Contents ==
== Contents ==


{{:contents}}
{{:contents}}

Latest revision as of 18:37, 24 August 2026

Official documentation of OpenComputers: Rebooted

OpenComputers: Rebooted is a continuation of the OpenComputers mod, adding computers and robots into the game which can be programmed in Lua 5.3. It takes ideas from a couple of other mods such as ComputerCraft, StevesCarts and Modular Powersuits to create something new and interesting.

The wiki for the original OpenComputers mod, for versions of Minecraft prior to 1.21, can be found here. Many fundamentals are still the same, but some features and details have changed in OC:R. Please note that the original wiki appears to be out of date on some details, even for the versions it covers.

Connectivity

OpenComputers can connect to and interact with the outside Minecraft world through several methods:

Most of OpenComputers' blocks can "see" and interact with other OpenComputers Blocks automatically if placed right next to each other, or you can use Cables to connect them over a distance. It is also possible to connect - or separate - components logically by using one of the various network cards or switches in both wired and/or wireless form.

Blocks from Vanilla or other Mods can be connected via the Redstone Card, the Redstone I/O Block or an Adapter. Many special Blocks from other mods are already integrated into the Adapter, like Blocks from BuildCraft, IndustrialCraft2 or Thermal Expansion, other mods authors can use the Java API to add specific handling for their blocks as well.

Robots can interact with the world almost like a real player can do. They can equip most tools, blocks or other items and can be programmed to use them in every way you want them to. You can program them to sort your inventory, go mining for your resources, have them build a fortress for you or make them sing and dance for your entertainment. Only your imagination is the limit.

See the page on component interaction to learn how to communicate with components from Lua.

Modularity

OpenComputers are built out of individual parts such as graphic cards, hard drives or expansion cards, which allows to tailor each individual computer exactly to your needs. You can save resources if you need something small for small tasks, or spend even the last diamond on the most expensive and powerful Minecraft computer ever built.

See the block and item documentation for a list of components that can be used to assemble your computer.

Resource Limits

OpenComputers have a limited amount of disk space and RAM, which can be configured in the OpenComputers config to your likings. This not only makes OpenComputers very server friendly, it as well gives you a warm feeling of nostalgia, back at a time where disk and RAM size was measured in Kilo and Megabytes. However as programming in Lua is very resource-friendly, you should be able to solve most tasks even on mid-end OpenComputers. And if not you could always spend some diamonds on even bigger RAM.

In addition to those intuitive limitations, OpenComputers has been specifically designed to work flawlessly on servers: OpenComputers uses a fixed number of low-priority threads for coroutines to cause as little delay on the server tick as possible, in addition running programs are forced to yield on a regular, configurable basis or - if for any reason fail to do so - will crash (the in-game computer) forcefully to prevent server lag by malicious or malfunctioning programs.

Persistence

When OpenComputers leave the loaded Chunk area, they will be put on hold, but automatically resume at the exact point they were stopped once the Chunk is reloaded later. This makes OpenComputers very intuitive to use in the Minecraft environment, as you do not have to worry about chunk loading or resuming and do not need to add chunk loaders from other mods just to keep those computers running.

To do so OpenComputers comes with a native library - the Eris library, specifically. This includes the official Lua VM implementation, which is already capable to support computers being put on pause temporarily. Currently the library is included in the mod for Windows, Mac OS X, Linux and BSD, which are only required to run on the server as all Lua code is executed purely on the server. If the library is not available for your system, the mod will fall back to LuaJ, a Java implementation of Lua, in which case computers will not persist, and memory will not be limited.

Power

Computers consume power while running based on what they are doing. Beside a low base amount of power per tick consumed, components such as graphic cards or wireless network cards will consume extra power based on their work load. This is not only realistic, but as well encourages players to optimize their code and to not keep an OpenComputers server busy with unnecessary tasks. The exact power consumption can be configured in the config file and even be completely removed if you wish to run in a power-free environment.

OpenComputers mod provides electrostatic power generation with Carpeted Capacitor as well as with Generator Upgrade available to robots and Solar Generator Upgrade available to robots and microcontrollers. Opencomputers devices can also be powered with energy equivalents of a number of other mods.

Configurability

Almost every aspect of the mod can be tweaked via the configuration file. Not a fan of computers requiring power to run? Set their running cost to zero. Don't want power to play a role at all? Disable it completely! Think robots move too slow? Make 'em faster. Want bigger multi-block screens? Increase the maximum size. Just have a look at the default configuration file to see all the options.

Contents

We are currently in the process of unifying the separate block/item pages and component API pages together for ease of navigation. If you find the dedicated component API page is missing, check the item page. Thank you for your patience during this transition.


Links
OpenComputers
General Install and Use OpenOS - Crossmod Interoperation - Lua Conventions - Computer Users
Blocks
Computers Computer Case - Server Rack - Microcontrollers
Display Hologram Projector - Keyboard - Screen
Power and Networking Capacitor - Net Splitter - Power Converter - Power Distributor - Relay
Extensions Adapter - Cable - Disassembler - Disk Drive - Geolyzer - Motion Sensor - Redstone I/O - Transposer - 3D Printer
Robotics Assembler - Charger - Drone - Robot - Waypoint
Items
Components Data Card - Debug Card - Graphics Card - Internet Card - Linked Card - Network Card - Redstone Card - Wireless Network Card
Storage Devices Floppy Disk - EEPROM - Hard Disk Drive - Memory
Upgrades Angel Upgrade - Battery Upgrade - Chunkloader Upgrade - Database Upgrade - Experience Upgrade - Generator Upgrade - Hover Upgrade - Inventory Controller Upgrade - Inventory Upgrade - Leash Upgrade - Navigation Upgrade - Piston Upgrade - Sign I/O Upgrade - Solar Generator Upgrade - Tank Upgrade - Tank Controller Upgrade - Tractor Beam Upgrade - World Sensor Upgrade
Containers Card Container - Upgrade Container - Disk Drive
Others Analyzer - Texture Picker - Component Bus - CPU - APU - Drone Case - Manual - Microcontroller Case - Nanomachines - Remote Terminal - Terminal Server - Server - Tablet Case - Tablet - Crafting Materials - Ink Cartridge - Scrench - Hover Boots - Grog - Loot Disks
APIs
OpenOS buffer - colors - component - computer - event - filesystem - uuid - internet - keyboard - note - process - rc - robot - serialization - shell - sides - term - text - thread - transforms - unicode
Lua Libraries coroutine - package - io - os
Components
Core Components Abstract Bus - Access Point - Computer - Debug - Drone - Drive - EEPROM - Experience - Filesystem - Generator - GPU - Inventory Controller - Leash - Microcontroller - Modem - Navigation - Piston - Redstone - Robot - Sign - Tank Controller - Tractor Beam - Transposer - Tunnel - World Sensor
Others Component Access - Signals
Cross-Mod Integration Applied Energistics
Addon Mods
Addons Computronics
Supporting OpenComputers Thut's Concrete - HBM's Nuclear Tech Mod
Tutorials
Mod Specific Basic Computer - Writing Code - Hard Drives - Autorun and Startup scripts
Modding Custom Architectures - IMC Messages
Programs OPPM - install
Others Custom Operating Systems
Other Languages Page
Simplified Chinese 简体中文(Simplified Chinese)