-
-
Notifications
You must be signed in to change notification settings - Fork 3.4k
Pitch/Yaw ignored when spawning display entities #9418
Copy link
Copy link
Labels
good first issueSimple bug fix or feature which would be a good first PR for someone new to the projectSimple bug fix or feature which would be a good first PR for someone new to the projectstatus: acceptedDisputed bug is accepted as valid or Feature accepted as desired to be added.Disputed bug is accepted as valid or Feature accepted as desired to be added.type: bugSomething doesn't work as it was intended to.Something doesn't work as it was intended to.
Metadata
Metadata
Assignees
Labels
good first issueSimple bug fix or feature which would be a good first PR for someone new to the projectSimple bug fix or feature which would be a good first PR for someone new to the projectstatus: acceptedDisputed bug is accepted as valid or Feature accepted as desired to be added.Disputed bug is accepted as valid or Feature accepted as desired to be added.type: bugSomething doesn't work as it was intended to.Something doesn't work as it was intended to.
Type
Fields
Give feedbackNo fields configured for Bug.
Projects
Status
Done
Expected behavior
For pitch and yaw to be used when spawning, as with other entities.
Observed/Actual behavior
When spawning a display entity, pitch and yaw seem to be ignored and always become
0.Steps/models to reproduce
Running the above code will log the first location with the player's yaw and pitch, then the display's location with
0yaw and pitch, then show that they're not equal:Plugin and Datapack List
Paper version
Other
I understand that generally you'd use the built-in transformation and not the base yaw/pitch, but I believe there's still a benefit to fixing this if possible (e.g. custom entity systems with generic logic and whatnot).
Especially seeing as this works fine in vanilla commands:
/summon block_display ~ ~ ~ {Rotation:[50F,50F],block_state:{Name:"minecraft:grass_block"}}