Video Summary
In this tutorial, I walk through three essential Minecraft commands: /fill, /setblock, and /clone. I explain how each command works, demonstrate the different modes like destroy, keep, hollow, and replace, and show practical applications such as automatically replenishing destroyed blocks or cloning terrain sections for server mechanics like jail servers.
How To Use The Clone, Fill and Setblock Commands In Minecraft
Hey everybody, it’s UnderMyCap and welcome back to another video! Today I’m going to be showing you how to use the /clone, /setblock and /fill commands. So without further ado, let’s get straight into it!The /fill Command
Let’s start off with /fill. Basically, how you use it is you type /fill and then you type in your coordinates for what you want to fill from. Since I don’t have any specific coordinates on hand right now, I’m going to use the tilde (~) symbol and put in the numbers. What the tilde does is when you have three tildes, it centres from the command block — so that’s where it will start from. So if you filled from one point to another, your command block would be filled in with that command, which you don’t want. What you want to do is make sure you avoid a collision with it. So for example, you’d offset it by going something like negative three, and then adjust the other coordinates accordingly — something like three, two, four, four, three. When you press the button, it’s going to fill from one point to the other. Now once you’ve got that down, you’ll want to add in a block type — let’s say stone. There are also a few fill modes you can use:- Destroy – This will destroy the blocks currently there and replace them with new ones. Items will drop from the destroyed blocks, which can get quite laggy.
- Keep – If there is already a block in a space, it keeps it there and won’t replace it. It basically fills up any empty gaps. So if someone built something there and you press the button, nothing will happen to their blocks.
- Hollow – This replaces the blocks without causing any items to drop out. I quite like this one because if you have it repeating constantly so no one can break it, it won’t fill your whole screen with dropped items and lag out your game. It will just politely replace the blocks without any items coming out.
- Outline – This appears to work similarly to the other modes. I’d recommend just using hollow, but outline is fine too.
- Replace – The default option, simply replaces blocks in the area.
The /setblock Command
Now let’s move on to the /setblock command. Setblock is kind of the same as fill, except it only places one block at a time. It has similar modes to the fill command:- /setblock … destroy – As you saw before, this causes a whole bunch of items to drop out. It can get pretty laggy.
- /setblock … keep – If there’s already a block there, it won’t do anything. If the block is removed, it will replace it.
- /setblock … replace – This won’t cause any items to come out and works really well because of that.





