mojira.dev
MC-278464

Block entities render twice if shouldRenderOffScreen returns true and the block entity is in view

If a block entity is set to render even if its off screen (shouldRenderOffScreen returns true / block entity is contained in LevelRenderer globalBlockEntities), it will also be rendered by the iteration through block entities in visible render sections.
This means that if a block entity is in a visible render section and also should render off screen it will render twice.

I noticed this while trying to render a large transparent box around a block entity, as it was too opaque until I moved my camera away from the block entity.

Linked issues

Comments 3

Is this just a more general case of MC-112730?

Thank you for your report!
We're tracking this issue in MC-112730, so this ticket is being resolved and linked as a duplicate.

If you would like to add a vote and any extra information to the main ticket it would be appreciated.

If you haven't already, you might like to make use of the search feature to see if the issue has already been mentioned.

Quick Links:
📓 Bug Tracker Guidelines – 💬 Community Support – 📧 Mojang Support (Technical Issues) – 📧 Microsoft Support (Account Issues)
📓 Project Summary – ✍️ Feedback and Suggestions – 📖 Game Wiki
-- I am a bot. This action was performed automatically! The ticket was resolved by one of our moderators, and I left this message to give more information to you.

KaboomRoads

(Unassigned)

Plausible

Platform

Normal

Rendering

BlockEntity, LevelRenderer, Rendering

1.21.3

Retrieved