Chunkloader Upgrade: Difference between revisions

From OpenComputers: Rebooted
Jump to navigation Jump to search
imported>OCDoc Import
Imported from legacy OpenComputers documentation at ocdoc.cil.li
 
Unify block and component API pages
Line 1: Line 1:
= Chunkloader Upgrade =
= Overview =


[[File:chunkloader_upgrade.png|128px]]
[[File:chunkloader_upgrade.png|128px]]


This upgrade allows robots and drones to act as a one-chunk chunkloader, allowing them to continue to operate even when no player is nearby / some other chunkloader is active. Note that this upgrade consumes energy when active - it provides [[Component/chunkloader|a component]] that can be used enable or disable it.
This upgrade allows robots and drones to act as a one-chunk chunkloader, allowing them to continue to operate even when no player is nearby / some other chunkloader is active. Note that this upgrade consumes energy when active - it provides a component that can be used enable or disable it.


The default condition for the chunkloader after installation in a robot is '''enabled'''. Use the [[Component/chunkloader|component.setActive()]] callback to change the status.
The default condition for the chunkloader after installation in a robot is '''enabled'''. Use the [[#setActive|setActive()]] callback to change the status.
 
''Since version 1.3.''


The Chunkloader Upgrade is crafted using the following recipe:
The Chunkloader Upgrade is crafted using the following recipe:
Line 19: Line 17:


[[File:chunkloader.png|200px]]
[[File:chunkloader.png|200px]]
= Component API =
Component name: <code>chunkloader</code>. Callbacks:
== isActive ==
<code>isActive():boolean</code>
Returns whether the chunkloader is currently active.
== setActive ==
<code>setActive(enabled:boolean):boolean</code>
Enables or disables the chunkloader. Returns the new state, which may be <code>false</code> if no chunk loading ticket could be acquired.


== Contents ==
== Contents ==


{{:Item/contents}}
{{:Item/contents}}

Revision as of 18:23, 28 August 2026

Overview

This upgrade allows robots and drones to act as a one-chunk chunkloader, allowing them to continue to operate even when no player is nearby / some other chunkloader is active. Note that this upgrade consumes energy when active - it provides a component that can be used enable or disable it.

The default condition for the chunkloader after installation in a robot is enabled. Use the setActive() callback to change the status.

The Chunkloader Upgrade is crafted using the following recipe:

Component API

Component name: chunkloader. Callbacks:

isActive

isActive():boolean

Returns whether the chunkloader is currently active.

setActive

setActive(enabled:boolean):boolean

Enables or disables the chunkloader. Returns the new state, which may be false if no chunk loading ticket could be acquired.

Contents

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