Topic category: Help with Minecraft modding (Java Edition)
hello, im making a dead body that spawns after entity's death, to be looted manualy by clicking on it.
dead body is a different entity, it spawns at the dying entity's location with same YAW by procedure block, but it spawns with different look direction, and then it simply rotates it's face to the direction needed - that looks not fine.
i know that by using this command(got it from Shotgun tutorial): teleport @s ~ ~ ~ ~ ~-5 i can TP player with especial look direction included.
i just need the same function, that should tp my entity to event/target entity 's X,Y,Z with it's look direction.
i dont know java code, so im asking for exact string with all items(target, pos of target etc) writen down.
You should probably not use commands for this. Instead, use a procedure to spawn a new entity, then move it to the correct position. There are blocks to set an entity's position and direction.
Yes, but as i said: if u change entity's YAW by procedure, it has a sort of "turn speed" and doesnt turn his face instantly.
That's just how minecraft (physics ig?) work.