<?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=API%2Fsides</id>
	<title>API/sides - 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=API%2Fsides"/>
	<link rel="alternate" type="text/html" href="https://ocr.michiyo.me/w/index.php?title=API/sides&amp;action=history"/>
	<updated>2026-08-24T13:33:06Z</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=API/sides&amp;diff=1050&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=API/sides&amp;diff=1050&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;= Sides API =&lt;br /&gt;
&lt;br /&gt;
This &amp;quot;API&amp;quot; provides a global table to allow you to refer to sides / directions by name, as opposed to their numbers. The underlying number values are identical to Minecraft&amp;#039;s internal numbering (as well as the `ForgeDirection` Enum). This table serves as a two-directional look-up, so you can resolve names to numbers, but also numbers back to a human readable name. For example, `sides.top` has the value `1`, whereas `sides[1]` has the string value `top`. A couple of aliases for the side names are available, so it&amp;#039;s less likely to accidentally pick the wrong one. These are the basic values:&lt;br /&gt;
&lt;br /&gt;
* Bottom (`bottom`), Number: 0 - Top (`top`), Number: 1 - Back (`back`), Number: 2 - Front (`front`), Number: 3 - Right (`right`), Number: 4 - Left (`left`), Number: 5&lt;br /&gt;
&lt;br /&gt;
The following aliases are defined per default:&lt;br /&gt;
&lt;br /&gt;
* Bottom: `down`, `negy` - Top: `up`, `posy` - Back: `north`, `negz` - Front: `south`, `posz`, `forward` - Right: `west`, `negx` - Left: `east`, `posx`&lt;br /&gt;
&lt;br /&gt;
Useful for setting or getting redstone outputs or inputs, for example: ```lua local component = require(&amp;quot;component&amp;quot;) local sides = require(&amp;quot;sides&amp;quot;) local rs = component.redstone rs.setOutput(sides.back, rs.getInput(sides.left)) ```&lt;br /&gt;
&lt;br /&gt;
== Contents ==&lt;br /&gt;
&lt;br /&gt;
{{:API/contents}}&lt;br /&gt;
&lt;/div&gt;</summary>
		<author><name>imported&gt;OCDoc Import</name></author>
	</entry>
</feed>