Can I /clone relative to entities, not the command block?

//ads -- adsterra.com -- native banner
?>
I am trying to make a map where you have to make a village from scratch, and I need help. I'm trying to make a /clone
command happen relative to where a mob that's named house is, and I cant figure it out. Any help?
Best Answer
Yes, use the /execute
command.
The syntax you want is:
/execute <entity> <x> <y> <z> <command>
For example, to execute the clone command from an entity called "CloneMarker", you could do:
/execute @e[name=CloneMarker] ~ ~ ~ /clone ~ ~ ~ ~5 ~5 ~5 ~10 ~10 ~10
Pictures about "Can I /clone relative to entities, not the command block?"



Can you clone entities in Minecraft?
There is no command that would take entity A and make entity A'. You always need to create new entity in vanilla Minecraft. However if you want to take entity A and re-summon it somewhere else, you can. All you need is to have the command what summoned that first entity and reuse it (for example via redstone clock).How do you clone entity in Minecraft bedrock?
Command blocks cannot be placed by a non-operator player.Advanced Block Cloning with Armor Stands \u0026 Entity Selectors in Vanilla Minecraft 1.13+
Sources: Stack Exchange - This article follows the attribution requirements of Stack Exchange and is licensed under CC BY-SA 3.0.
Images: Alex Green, Alex Green, Erik Mclean, Ylanite Koppens