Minecraft Blogs / Tutorial

Clone Buildings Easy - Tutorail

  • 512 views, 3 today
  • 2
  • 1
Twelve Parsecs's Avatar Twelve Parsecs
Level 29 : Expert Architect
17


In this blog post I'm gonna teach you how to use the Execute command to clone something to a mob.





1. get yourself a spawnegg. It can be any mob. I'll choose a Zombie.


2. Rename it to whatever you want. I'm gonna choose: Paste.


3. give yourself a commandblock by typing in the chat:

[i] /give @p command_block[/i]


4. Place it on the ground and type in it:

/testfor @e[type=Zombie,name=Paste]


5. If you have a creeper spawnegg with the name John for example, type:

/testfor @e[type=Creeper,name=John] 


6. Now, place a comparator on the right side of your commandblock. Place another commandblock at the end of the comparator.
  Type in:

  /kill @e[type=Zombie,name=Paste]

  or

  /kill @e[type=Creeper,name=John] 

  Just make sure you put the name of your mob behind the: 'name=[mobname]' string.


7. Place another comparator on the left side of the commandblock.
   Now you're going to to use the execute command.
   type:

   /execute @e[type=Zombie,name=Paste] ~ ~ ~ /clone 1 1 1 2 2 2 3 3 3 replace
Further Explenation
The execute command executes a command from a selected mob. In this case: /clone.
The: 1 1 1 2 2 2 are coordinates of the bottomleft and topright corner. The 3 3 3 are the coordinates where it will be cloned to. You can change all coordinates to what you want.


8. From above view, place one block under the left comparator.
   Type:
 
  /setblock redstone_block 0 destroy


9. Now place a redstoneblock on the right of the commandblock. Make sure /gamerule doTileDrops is on false.


Now you have finished te machine. Whenever you spawn the mob with the customname it will clone you building to it.
Have a nice day! 


SMAM: Skins, Maps and More



Tags

2 Update Logs

Update - Title : by Twelve Parsecs 09/01/2015 9:47:06 amSep 1st, 2015

I made the title more specific.
LOAD MORE LOGS

Create an account or sign in to comment.

Planet Minecraft

Website

© 2010 - 2024
www.planetminecraft.com

Welcome