Copy Cat
A mannequin copy cat
Supported Versions:
1.21.10+
Commands by Row:
Row 1
1. [impulse] /scoreboard objectives add sneak minecraft.custom:minecraft.sneak_time
Row 2
2. [impulse] /execute as @e[tag=copyCatVillager] at @s run attribute @s minecraft:scale base set .7
3. [chain] /execute as @e[tag=copyCatVillager] at @s run data merge entity @s {Silent:1}
Row 3
4. [repeat] /execute as @p at @s rotated ~ 0 run tp @e[tag=copyCat] ^ ^ ^-1 ~ ~
5. [chain] /execute as @p at @s run data modify entity @e[tag=copyCat,limit=1] Rotation set from entity @s Rotation
Row 4
6. [repeat] /execute as @e[tag=copyCatVillager] at @s run tp @e[tag=copyCat] ~ ~ ~ ~ ~
7. [chain] /execute as @p at @s run data modify entity @e[tag=copyCatVillager,limit=1] wander_target set from entity @s Pos
8. [chain] /execute as @e[tag=copyCatVillager] at @s run item replace entity @s weapon.offhand with minecraft:totem_of_undying
9. [chain] /execute as @e[tag=copyCatVillager] at @s run effect give @s minecraft:invisibility 2 1 true
10. [chain] /execute as @e[tag=copyCatVillager] at @s run item replace entity @s weapon.mainhand with air
Row 5
11. [repeat] /execute as @p at @s if score @s sneak matches 1.. run data merge entity @e[tag=copyCat,limit=1] {pose:"crouching"}
12. [chain] /execute as @p at @s if score @s sneak matches 0 run data merge entity @e[tag=copyCat,limit=1] {pose:"standing"}
13. [chain] /execute as @p at @s run scoreboard players set @s sneak 0
Row 6
14. [repeat] /execute as @e[tag=copyCat] at @s run item replace entity @s weapon.offhand with minecraft:totem_of_undying
15. [chain] /execute as @p at @s run item replace entity @e[tag=copyCat] weapon.mainhand from entity @s weapon.mainhand
16. [chain] /execute as @p at @s run item replace entity @e[tag=copyCat] armor.head from entity @s armor.head
17. [chain] /execute as @p at @s run item replace entity @e[tag=copyCat] armor.chest from entity @s armor.chest
18. [chain] /execute as @p at @s run item replace entity @e[tag=copyCat] armor.legs from entity @s armor.legs
19. [chain] /execute as @p at @s run item replace entity @e[tag=copyCat] armor.feet from entity @s armor.feet
Row 7
20. [repeat] /execute as @p at @s if entity @e[tag=copyCat,nbt={HurtTime:10s}] run damage @s 1 minecraft:player_attack by @e[tag=copyCat,limit=1]
Too lazy to copy and paste each command?