So, I'm trying to make a script that allows players to ride sheep like pigs except without saddles or carrots. Currently, I am testing this on wolves. Everything works but the wolf doesn't jump when it hits a wall and the wolf can't turn. I am not using any addons and will refuse to use any.
Code:
Code:
Code:
on right click on wolf:
if player's tool is air:
set {_%player%.pet} to targeted entity
make player ride wolf
set {%player%.rdn} to 1
while {%player%.rdn} is 1:
wait 1 tick
push {_%player%.pet} In the horizontal direction of the player with force 0.2
set {_look} to player's yaw * -1
set {_loc} to location of {_%player%.pet}
set {_loc}'s yaw to {_look} parsed as integer
set {_loc}'s pitch to 0
teleport {_%player%.pet} to {_loc}
if player is not riding {_%player%.pet}:
set {%player%.rdn} to 0