Minecraft Blogs / Tutorial

Minecraft Command Blogs | Clone, Fill and Tp

  • 15,212 views, 2 today
  • 9
  • 6
  • 16
Pepijn's Avatar Pepijn
Level 57 : Grandmaster Cyborg
382
Minecraft Command Blog
By Pepijn96
Clone, Fill and Tp

Another great snapshot of 1.8 has been released! With /clone and /fill being added, we are only a few updates away from having vanilla World Edit in Minecraft!

/clone
With this new command, we don't have to struggle with huge /setblock systems to create structures. It's now possible to build the specific building somewhere in your world and just /clone it to the location you want it to be in (be aware of the fact that there's currently a limit of 4096 blocks)! The basic structure of the command looks like this:

/clone [x1] [y1] [z1] [x2] [y2] [z2] [x] [y] [z] {mode}

[x1], [y1], [z1], [x2], [y2] and [z2] will specify the corners of the box you're going to clone. [x], [y] and [z] will specify where the cloned box is going to be placed. {mode} can either be replace or masked. You can also use relative coordinates using ~.

/fill
With /fill we can also change areas of blocks without using long strings of /setblock commands. The command is:

/fill [x1] [y1] [z1] [x2] [y2] [z2] [minecraft:]

What [x1], [y1], [z1], [x2], [y2] and [z2] do is pretty obvious now. [minecraft:] will specify what block everything will be changed in.

EDIT

you can now also just replace one kind of block, instead of filling the whole area:

/fill [x1] [y1] [z1] [x2] [y2] [z2] [minecraft:] (replace) (minecraft:)

/tp
This command is not new of course, but some different things have been added. The first big change is that you can now specify rotation withing this command. It goes like this:

/tp [x] [y] [z] [x,z-rotation] [y-rotation]

As before you can just add more arguments within brackets behind @p,@a, etc. But now you can also let it check for cubic areas (instead of circulair ones with r=). This can be done by specifying one of the corners with x=,y= and z=, and add dx=,dy=,dz= behind it. The 'd' stands for delta, which is used in math and physics to describe a difference, and that's exactly what it does here too. You can use dx,dy and dz in every command that requires player specification, like /say and /testfor.

Want more?
If you have any questions, you can send me a personal message or just comment down below!

Pepijn96
Tags

Create an account or sign in to comment.

1
06/04/2015 1:53 pm
Level 5 : Apprentice Explorer
LovesEmpoleon
LovesEmpoleon's Avatar
Thx Pep!
1
03/04/2015 11:27 pm
Level 1 : New Crafter
Dracam
Dracam's Avatar
So I just build a large Tron style arena and I want it to change the base colour from blue to orange and vice versa using a lever. Right now I've got /fill -148 15 177 -34 102 63 stained_glass 3 replace stained_glass 1 which works fine when I set the coordinates on 1 block only - replacing only orange glass and not black glass. I counted the amount of orange glass cubes via worldedit, being 1603. But when I activate the command block it gives me the error "too many blocks in the specified area", counting 32768. So it basically counts all stained_glass blocks (the 1600 orange and 31000 black ones) before trying to change only the orange ones. Any way around this other than replacing all black glass blocks?

I know that's a wild problem but a problem nonetheless! Thanks
1
03/05/2015 4:59 am
Level 57 : Grandmaster Cyborg
Pepijn
Pepijn's Avatar
Sorry to say but there's no way (that I know of atleast) to let it count just the blocks you are going to change, it will always count the whole freaking area (What is so annoying!). If I were you I would use multiple commands to cover the whole area.
1
03/05/2015 1:28 pm
Level 1 : New Crafter
Dracam
Dracam's Avatar
That's a million+ blocks. 250+ command blocks. I guess I'll just have to wait for improvements x) Thanks anyways
1
11/28/2014 10:51 am
Level 28 : Expert Architect
darksoulsisthebest
darksoulsisthebest's Avatar
How do you use the /fill command such that you can fill multiple types of blocks. For example, if I wanted to create a big wall with cobblestone and mossy cobblestone spread out randomly, how would I do that? Is is possible? If so, please write the command so I know what to do. Thanks! :)
1
11/28/2014 1:14 pm
Level 57 : Grandmaster Cyborg
Pepijn
Pepijn's Avatar
Sorry, this is not possible
1
11/28/2014 9:53 pm
Level 28 : Expert Architect
darksoulsisthebest
darksoulsisthebest's Avatar
Awww :(
1
08/28/2014 12:03 am
Level 1 : New Architect
KyanG7
KyanG7's Avatar
Is there a way to use the TP command to make it so it tps everyone but one player
1
08/28/2014 3:23 am
Level 57 : Grandmaster Cyborg
Pepijn
Pepijn's Avatar
You can put that one player in a team (/scoreboard teams add NoTp and then scoreboard teams join @p NoTp, make sure that one player is the closest to the command block).

After that you can tp everyone else with:
/tp @a[team=!NoTp]
1
04/25/2014 12:38 pm
Level 15 : Journeyman Architect
JibbyX
JibbyX's Avatar
Actually, the limit is 4096 blocks, not 4094. Otherwise, thanks for the info on these commands!
Planet Minecraft

Website

© 2010 - 2024
www.planetminecraft.com

Welcome