mojira.dev

I am trying to create a map by making a cow by the name of Blue1, walk towards a mob by the name of Bob. I used a command (see 1). Then I spawned in a bunch of zombies by the name of Bob. Soon the Cows began to spin in endless circles, and then began to float although they should've been targeting only one zombie. Also, trust me, I did not give the cows levitation. Thanks!

Attachments

Comments 2

this is happening because your command is not running the command as the cow, and its teleporting all the cows for each cow. try this instead: /execute as @e[name=Blue1] at @s run tp @s ^.1 ^0 ^.1 facing entity @e[name=Bob,limit=1,sort=nearest] eyes
edit: also, the cow will slightly float because the cow's feet are below the zombie's eyes.
edit2: if you want the cow to also not orbit the zombie, and also stay on the ground, change the command to: /execute as @e[name=Blue1] at @s run tp @s ^0 ^0 ^.1 facing entity @e[name=Bob,limit=1,sort=nearest] feet

bubbanida

(Unassigned)

Unconfirmed

(Unassigned)

1.14.4

Retrieved