mojira.dev
MCPE-153880

Projectile offset does not rotate with player orientation

Currently if the player has an item that shoots a projectile entity, it won't shoot/spawn directly in front of the player. Instead, it will use the world position as anchor. That means that it won't rotate with the player and summon on the right or left side when face the x anchor. The same happens to normal projectiles, it's just really subtle so you probably wont notice it much, but for custom projectiles, this is a major issue since there's no fix for it. Please fix this!

Example offset is [-1,2,0] (basicaly the offset here is fixed, but without offset it will act as if the offset would not be fixed)

Observed Behavior
Offset is always toward the West (negative X)

Expected Behavior
Offset is to the Right (in first-person view)

facing north:

[media]

facing west:

[media]

facing south (how it should be everywhere):

[media]

facing ast:

[media]

Here's an test pack with the offset 4,0,0:[^StarWars[BP.zip][^StarWars[RP.zip]

 

Attachments

Comments 8

[media][media][media][media]

[^StarWars[BP.zip]
[^StarWars[RP.zip]

⚠️ Please do not mark Unreleased Versions as affected. You don't have access to them yet.

-- I am a bot. This action was performed automatically! If you think it was incorrect, please notify us on Discord or Reddit

Your report does not contain enough information to fully understand or reproduce the problem.
Please Edit the Description section above, using this format:
Steps to Reproduce:
1. (list every step exactly, so someone else can reproduce the issue, and try following your list to make sure you can still reproduce the issue yourself)
2.
3.
Observed Results:
(briefly describe what actually happens, including exact message(s) shown)
Expected Results:
(briefly describe what should happen)

(add screenshots or video to help explain the issue)

This report has been temporarily closed as Awaiting Response. It will automatically reopen when you add information. Please follow the format shown and include all sections (steps, observed, expected). Reports that do not contain all of the requested information and complete steps to reproduce the issue may be closed as Incomplete. For more information please read the Bug Tracker Guidelines.

You might also try searching for "projectile offset" to see if any of the existing reports match your issue.

You may find this Report Creation Form helpful for any future reports you create.

It would be helpful if you would provide the resource pack. This makes it easier to quickly confirm and test.

I added an resource and behavior pack of an addon of mine where you can see it very good currently, you just need to use the item called DC15s

Confirm with vanilla snowballs using offset [ 1, -0.1, 0 ]. This makes snowballs shoot as if from the left hand of snow golems, but from east of the player.

Now the offset component is fixed, but the projectile itself now got the issue which the projectile offset got before

ID-Production

(Unassigned)

771540

Confirmed

Multiple

All

1.19.0.21 Preview, 1.19.0.20 Beta, 1.18.12 Hotfix

1.19.10.22 Preview, 1.19.10

Retrieved