---
title: Distributor
id: morered:distributor
type: block
---

The Distributor redirects items inserted into it to another adjacent inventory block. If multiple output inventories are adjacent, the distributor cycles between them evenly.

<table>
	<thead><tr><th>Contents</th></tr></thead>
	<tbody><tr><td>
		1. [Recipes](#recipes)
		2. [Usage](#usage)
		3. [Data](#data)
		4. [History](#history)
	</td></tr></tbody>
</table>

## Recipes

<table>
	<thead>
		<tr>
			<th>Recipe Type</th>
			<th>Ingredients</th>
			<th>Output</th>
			<th>Example</th>
		</tr>
	</thead>
	<tbody>
		<tr>
			<td>Shaped Crafting</td>
			<td style={{width: '30%'}}>
				* 4x [<ModAsset width={32} height={32} location='morered:item/shunt'/> Shunt](@morered:shunt)
				* 4x [<ModAsset width={32} height={32} location='cobblestone'/> Cobblestone](https://minecraft.wiki/Cobblestone)
				* 1x [<ModAsset width={32} height={32} location='oak_fence_gate'/> Fence Gate](https://minecraft.wiki/Fence_Gate)
			</td>
			<td>
				* 1x Distributor
			</td>
			<td>
				![Shaped Crafting Recipe for Distributors](https://commoble.s3.us-east-1.amazonaws.com/images/morered/recipes/distributor_recipe.png)
			</td>
		</tr>
	</tbody>
</table>

## Usage

When an item is inserted into one side of the distributor (via hopper, tube, osmosis filter, etc),
the item will instantly be inserted into an adjacent inventory on one of the distributor's other five faces.

If there are multiple valid inventories, the distributor will alternate between them.

![](https://commoble.s3.us-east-1.amazonaws.com/images/tubesreloaded/distributor.gif)

If there are no valid adjacent inventories, the distributor will eject inserted itemstacks into the world.

## Data

<table>
	<thead><tr><th>BlockEntity Data</th><th>Format</th><th>Description</th></tr></thead>
	<tbody>
		<tr>
			<td>`next_directions`</td>
			<td><ul><li>Array of six integers in the range [0,5]</li><li>e.g. `[1,2,1,0,5,4]`</li></ul></td>
			<td>Indicates the next direction an item inserted into a given side will be distributed to. The slot index indicates the insertion side (in DUNSWE order), and the value indicates the output side (also in DUNSWE order)</td>
		</tr>
	</tbody>
</table>

## History
| Version | Changelog
| --- | -
| 1.21.3-7.0.0.0 | Added to More Red
