mojira.dev
MCPE-93563

Thrown Eggs, Ender Pearls, Snowballs, Splash potions, Experience Bottles Render Right In Front Of The Player

When throwing an egg/ender pearl/snowball/splash potion/experience bottle, it renders immediately right in front of the camera, causing a white flash on screen for just a moment. This was previously considered normal, however this behavior has been changed in recent java versions. The snowball now has a slight delay on rendering, after being throw, so it doesn't cause the white flash:

How to reproduce:
1. On bedrock edition 1.16.1, Throw a bunch of snowballs straight ahead in quick succession, notice the white flash.
2. Repeat the above step, but on java 1.16.1. Notice the delay in rendering, removing the white flashes on screen.

Expected result:
Bedrock and java having the same throwing behavior/rendering.

Demo video:
https://youtu.be/fyq9EejRSYA?t=600

Linked issues

Comments 10

This has also been made to eggs and ender pearls on java.

It simply doesn't render the 2 first gameticks on Java Edition I believe

Affects 1.16.200.55 Beta.

affects 1.16.200.56

Still in 1.16.200 betas 

you can fix this by changing the billboard animation for projectiles. Here is what I used to correct the issue. To explain, this is only visual. The scale doesn't seem to be incrementally decreasing the longer the projectile lives in the vanilla resource pack, so this function decreases the scale the longer the projectile lives to give the illusion that its traveling faster, similar to how it looked in 1.14.

{
  "format_version": "1.8.0",
  "animations": {
    "animation.actor.billboard": {
      "loop": true,
      "bones": {
        "body": {
          "rotation": [ "query.camera_rotation(0)", "query.camera_rotation(1)", 0.0 ],
          "position": [ 0.0, 0.0, 1.0 ],
          "scale": "math.clamp(-0.13 * math.ln(query.anim_time) + 0.6, 0.5, 1.5)"
        }
      }
    }
  }
}

Still affects 1.21.100.20 version:

Though their rendering is now scaled and offset to be in parity with Java in 1.21.100.20 https://feedback.minecraft.net/hc/en-us/articles/37264366737421-Minecraft-Beta-Preview-1-21-100-20#:~:text=Certain%20sprites%20rendered,Bombs%20(Minecraft%20Education) it still seems to be rendered right in front of the player.

The wind charge projectile avoids this issue by using “part_visibility” in the render controller:

  "part_visibility": [ { "*": "query.life_time >= 0.2" } ],

You can fix this issue by adding the above line to the render controllers for egg, experience_bottle, item_sprite, lingering_potion, and splash_potion.

silentwisperer

(Unassigned)

388366

Confirmed

Multiple

windows 10

vanilla-parity

1.21.92 Hotfix, 1.21.100.20 Preview, 1.17.11 Hotfix, 1.16.230.56 Beta, 1.16.230.54 Beta, ..., 1.16.40 Hotfix, 1.16.201 Hotfix, 1.17.2 Hotfix, 1.19.63, 1.21.21 Hotfix

Retrieved