<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://ocr.michiyo.me/w/index.php?action=history&amp;feed=atom&amp;title=Component%2Finventory_slots</id>
	<title>Component/inventory slots - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://ocr.michiyo.me/w/index.php?action=history&amp;feed=atom&amp;title=Component%2Finventory_slots"/>
	<link rel="alternate" type="text/html" href="https://ocr.michiyo.me/w/index.php?title=Component/inventory_slots&amp;action=history"/>
	<updated>2026-08-24T15:17:48Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.43.9</generator>
	<entry>
		<id>https://ocr.michiyo.me/w/index.php?title=Component/inventory_slots&amp;diff=1176&amp;oldid=prev</id>
		<title>imported&gt;OCDoc Import: Imported from legacy OpenComputers documentation at ocdoc.cil.li</title>
		<link rel="alternate" type="text/html" href="https://ocr.michiyo.me/w/index.php?title=Component/inventory_slots&amp;diff=1176&amp;oldid=prev"/>
		<updated>2026-08-24T08:08:27Z</updated>

		<summary type="html">&lt;p&gt;Imported from legacy OpenComputers documentation at ocdoc.cil.li&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;=== Slot Alignment ===&lt;br /&gt;
&lt;br /&gt;
= ==== Internal versus External Slot Alignment =&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Slot indexes do not match between the robot&amp;#039;s internal and external view of its inventory&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
When a robot interacts with its own inventory it is using its internal view. You access the inventory of another robot via its external view.&lt;br /&gt;
&lt;br /&gt;
The reason for this distinction is to separate the two inventory spaces: the main inventory and the tool belt inventory. Internally, the robot selects slots only in its inventory space, and not its toolbelt. It can `equip` or unequip items from its toolbelt. However, externally, an observer interacts with a single inventory that includes both the toolbelt as well as the main inventory.&lt;br /&gt;
&lt;br /&gt;
= ==== Internal Robot Slot Alignment =&lt;br /&gt;
&lt;br /&gt;
The Robot&amp;#039;s GUI displays the slots of a robot aligned from top-left to bottom-right. So for example the slot at index 1 is displayed in the top-left corner, the slot at index 2 is the next to the right and the first slot on the 2nd row is index 5.&lt;br /&gt;
&lt;br /&gt;
[[File:robot_slotalign.png|robot_slotalign.png]]&lt;br /&gt;
&lt;br /&gt;
These are the slot indexes a robot uses on it self (for its own main inventory, an interview view).&lt;br /&gt;
&lt;br /&gt;
How many slots a robot has available depends on it&amp;#039;s setup. If a slot is specified in a function that exceeds the amount of slots a robot has available an error is thrown.&lt;br /&gt;
&lt;br /&gt;
The robot can `select`, `place`, `drop`, `compare` (etc) items from its main inventory using these slot indexes as they represent the internal perspective of its inventory.&lt;br /&gt;
&lt;br /&gt;
= ==== External View of a Robot Inventory =&lt;br /&gt;
&lt;br /&gt;
Slot indexes of a robot&amp;#039;s inventory to an outside observer will be offset by 4. To an outside observer, slots 1 through 4 refer to slots in the robot toolbelt. The first slot of the main inventory is slot 1 from inside the robot (internal view), but is thus slot 5 to an outside observer. Yes, this can be confusing at first. This design choice was made so that, to an outside observer, [slot 1] always indicated the first toolbelt slot regardless of the robot inventory size, and [slot 5] was always the first main inventory slot.&lt;br /&gt;
&lt;br /&gt;
The robot inventory, again to an external observer, is sided inventory. The robot will not share all its inventory to all sides. Slot indexes &amp;lt;span class=&amp;quot;underline&amp;quot;&amp;gt;do not&amp;lt;/span&amp;gt; change to these different sides. Slot 1, therefore, always refers to the first toolbelt slot, even when inaccessible to a side.&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039; From its left side it share nothing. &amp;#039;&amp;#039; From its right side it shares only its toolbelt slots (1-5) * From all other sides it shares only its main inventory slots (5-n)&lt;br /&gt;
&lt;/div&gt;</summary>
		<author><name>imported&gt;OCDoc Import</name></author>
	</entry>
</feed>