I have this this entity where it gives the player a special item when ridden, and when used, the entity plays a running animation and automatically moves forward and break blocks along the way using a tp command, before the latest update which is 1.20.51, the entity can be steered by the player wherever tha player is looking, but after 1.20.60, it can't be steered anymore, and I didn't see anything in the changelog regarding the tp command, I also updated to the latest min engine version, and it still didn't fix here, does anyone know a workaround with this?
#Entity can't be steered anymore after the latest update
1 messages · Page 1 of 1 (latest)
Who's running that command ?
The entity itself
Using animation controllers
I mean you're not setting the entity rotation anywhere so it just uses whatever rotation it had before
Before 1.20.60 it could follow wherever the player is facing at while the command is being ran every tick
well idk what to tell u, but all the commands you gave us (1) dont work alone like that, could you show the other commands or what commands run that function?
Is is ran by an animation controller, and executes if a score in a scoreboard command is above 0
alr i mean just setting the rotation of the entity to the players before executing that command should make it work
Can you give me a snippet?
execute as <rider> at @s run tp <ridee> ~~-<y_decrease>~ facing ^^-<y_decrease>^10
y_decrease is just so it teleports the entity right beneath the player so it looks like they're sitting on it
an example could be:
execute as @p at @s run tp @e[tag=ridee] ~~-0.5~ facing ^^-0.5^10
Thank you so much! it worked!
I just did some slight modifications with it
execute at @s unless block ^ ^ ^5 bedrock [] run execute as @p at @s run tp @e[type=ptd:ravager_dragon, r=4, c=1] ~~-3~ facing ^^^10```