Conveyor belt

finished build

In this tutorial, we will look at the easiest way of building a conveyor belt for your factory.

The build itself is very simple, but requires knowledge of the following:

  1. /setblock – read about it here
  2. /clone – tutorial to be added
  3. basic work with command blocks – read about it here
  4. creating a redstone clock – tutorial to be added

If you are familiar with these, you can read further.

Steps:

1.

Prepare a basic build, it should look like a long conveyor belt. If you don’t want others to see blocks appear and disappear, you can cover the first and last two blocks. In this picture, only one side is covered.

basic build

2.

Mark the first two coordinates for the /clone command. Select an area above the belt so that one block on the belt is not included (see the picture below). This is because we will move the selected area forward by one block, and this block will be replaced.

Then, we will start typing the /clone command and use these two coordinates, the resulting command will look like this:

/clone <orange_block_coordinates> <green_block_coordinates> (the order doesn’t matter here)

/clone -197 5 -165 -209 5 -165 (example command, notice how only one number changes – the first one, which resembles the X axis)

the two coordinates of the command
the yellow area plus the blue block resemble the area we’ve selected, the blue block is the most negative block of the area

3.

The third coordinate is next – we will find the most negative coordinate in the area, and move this most negative block by one space in the direction we want our belt to move in – this is our third coordinate.
In the picture with the area in yellow, the blue block shows where the most negative coordinate is. In the next picture with the area in orange (which displays how the area will look after we’ve moved it), the blue block shows where our third coordinate is.

area after moving – the blue block resembles the third coordinate

4.

Now we will finish the /clone command. Because the source and destination areas overlap, we must add two optional attributes:

replace – clone the entire area including air blocks

move – the area is cloned to the selected coordinate and the source blocks are replaced with air

The resulting command should look like this

/clone <orange_block_coordinate> <green_block_coordinate> <third_coordinate> replace move

/clone -197 5 -165 -209 5 -165 -208 5 -165 replace move

(notice that the third coordinate differs by exactly 1)

5.

We still need a way to place blocks at the start of the belt, we can do this using the simple /setblock command.
Select the coordinate of the belt’s start (it’s the orange block in the first picture)

/setblock <belt_start_coordinate> <selected_material>

/setblock -209 5 -165 minecraft:coal_block

6.

We are almost finished, now we need to build a simple redstone clock that follows these rules:

  1. it will alternate between redstone and command blocks
  2. the delay between any two command blocks has to be the same, for instance, two repeaters with a delay of one tick = one repeater with a delay of two ticks
  3. the number of command blocks in the clock will be one more than the gap between individual blocks on the belt

These rules may sound complicated, but they’re easy to understand with a picture. Below you can see a clock prepared for a belt that has a 3 block wide gap between the moved blocks. The blue numbers show the repeater delays.

example clock, blue numbers show the delays of the repeaters

7.

Paste the /clone command we’ve previously written into the command blocks.

PRO TIP: You can also only prepare one command block and paste the command there, and then copy the command block with the command already inside by using CTRL + scroll wheel click. You can then place the remaining command blocks to finish the clock.

8.

The belt should work now (you can try it out by activating the clock and placing blocks on the belt), but we still need to spawn blocks on it. We can do this by placing a chain command block (the green one) on any command block in the sequence and pasting the /setblock command inside.

Know that the chain command block must be set to always active for this to work.

correctly placed chain command block – it is important that the arrow points at the chain CB

Done!

You only have to activate the clock now, and your belt will work.

All used commands:

/clone -197 5 -165 -209 5 -165 -208 5 -165 replace move

/setblock -209 5 -165 minecraft:coal_block

Couple of tips to finish off:

  1. You can make your belt turn by placing another one perpendicular to the first, just make sure their areas in /clone overlap
  2. We recomment making the gap between blocks at least two blocks wide, so that the belt actually looks like it is moving (instead of alternating between two states)
  3. You can also move more complex builds on a belt, the belt’s width can even span across multiple blocks. To generate complex builds at the start of the belt, it is best you first build it elsewhere and clone it, replacing the single /setblock command

Leave a Reply