✔️How To Clone, Fill And Setblock Commands In Minecraft: Minecraft Tutorial ✔️

Video Summary
In this tutorial, I walk you through how to use the /fill, /setblock, and /clone commands in Minecraft using simple command block examples. I explain how to target areas with coordinates or tildes, choose blocks, and use options like destroy, keep, hollow/outline, and replace—plus when each is best to avoid lag and item drops. Then I show how /setblock places a single block with similar modes, and how /clone copies a selected region to another spot without accidentally cloning the command block itself. I also share a few practical uses, like resetting mined areas on servers, and invite you to like, subscribe, and suggest future videos.

Formatted Transcript

Hey everybody, it’s UnderMyCap, and welcome back to another video. Today I’m going to show you how to use the /fill, /setblock, and /clone commands in Minecraft. Let’s jump right into it.

/fill

We’ll start with /fill. The /fill command lets you fill a selected area with a block of your choice. In my world, I’ve already used /fill to set up part of this area.

To use it, type:

/fill followed by the coordinates for two opposite corners of the area you want to fill.

If you don’t want to manually type exact coordinates, you can use tildes (~) to reference positions relative to the command block. Three tildes (one for X, Y, and Z) means the command starts measuring from the command block’s position. However, be careful—if your selected area includes the command block, you may accidentally overwrite it.

To avoid that, offset your coordinates so you’re not filling the block the command block is sitting in. For example, you might use negative values on one side and positive values on the other to define a region that starts just outside the command block’s space.

After defining the area, add the block you want to fill with (for example, stone).

Fill modes

/fill also supports different modes that change how the fill behaves. The common ones are:

destroy

destroy breaks existing blocks and drops them as items, then replaces them with the new block. This can create lots of dropped items and may cause lag if used repeatedly.

keep

keep only places blocks in empty spaces. If a block is already there, it won’t replace it. This is useful for filling gaps without overwriting builds.

hollow

hollow fills only the outer shell and leaves the inside empty. It also avoids dropping tons of items, which makes it great for repeating setups where you don’t want a constant stream of block drops.

outline

outline fills only the outer edges (similar in feel to hollow, but without replacing the interior). In many cases it looks similar depending on the shape you’re filling.

As a practical example, if an area gets blown up or damaged, you can use /fill to restore it quickly. Just be cautious with destroy if you’re running the command repeatedly, because the dropped items can be a problem.

/setblock

Next is /setblock. This command is similar to /fill, but it affects only a single block.

To use it, type:

/setblock followed by the block coordinates and the block you want to place.

Setblock modes

Just like /fill, /setblock has modes that control how replacement works:

destroy

Breaks the existing block and drops it as an item before placing the new block. If used repeatedly, it can create a lot of dropped items and become laggy.

keep

Only places the new block if the target location is empty. If a block is already there, nothing happens.

replace

Replaces whatever is there without dropping items. This is usually the cleanest option for repeating command setups because it doesn’t create item drops.

In short: /setblock is perfect when you only need to place or update one block instead of filling a whole region.

/clone

Finally, there’s /clone. This command copies a selected region of blocks and pastes it into another location.

The idea is simple:

  • First, define the two corners of the area you want to copy.
  • Then, define the destination coordinates where you want that area pasted.

As with the other commands, you can use tildes (~) to work relative to the command block, which can make testing easier.

One important warning: be careful not to accidentally clone the command block that is running the cloning command. I’ve done that before, and it caused the command block to clone itself repeatedly, creating a huge staircase into the sky that was difficult to stop.

A good approach is to do small test clones first so you can confirm the direction and size of the selection. Once you know it’s cloning the correct area into the correct place, you can expand it.

This command is extremely useful—for example, some servers use cloning to reset mining areas (like cobblestone mines in prison/jail-style servers) by restoring them after players break the blocks.

And that’s how to use the /fill, /setblock, and /clone commands.

If you enjoyed this, please leave a like and subscribe—it really helps. Comment what you’d like me to do next, because I read through the comments. Down below there are links to my social accounts, and there’s also a Patreon page if you’d like to support me. I’m setting it up, so there may be perks later—either exclusive posts, Q&A, Minecraft help, or even questions about editing.

Thanks so much for watching, and I hope to see you in the next video.

Video Thumbnail

Recommended Items Based On Post

Bestseller #1
Bestseller #2
  • Battery Powered Minecraft Video Game Themed Desktop Air Hockey Electronic Game Nether Realm Edition
  • Official Minecraft Merchandise Manufactured under License from Microsoft & Mojang Studios by Merchant Ambassador
  • Features Genuine Nether Graphics and with 14 Swapable Pusher Covers with Different Characters
Bestseller #3
  • Features a 2 sword pens, a lead pencil and an eraser
  • Helps to paint and decorate your own pencil box
  • Made from high quality material

Advertisment

Leave a Reply

Scroll to Top