Tintow Posted January 25, 2022 Posted January 25, 2022 I'm looking to recreate the beacon rendering effect to act as a visible waypoint marker. I have created the block, blockentity and blockentityrenderer all based on the vanilla beacon code. This works as expected and the light beam is rendered. However, it only renders whilst the source block is within the players 'viewport', if the player looks up to such a degree that the source block is below the line of sight, the beam stops rendering. It doesn't matter if the block is actually visible to the player, it can be hidden behind other blocks and still renders as long as the source block would be in the viewport of the player. I've also checked TheEndGatewayRenderer which calls the BeaconRenderer.renderBeaconBeam and I've tried implementing it this way but this also has the same problem. I'm running out of things to check and just wondered if there is something else that needs to be done to keep a block rendering even when it's not in view? Any pointers greatly appreciated. Example repo showing the issue Quote
Tintow Posted January 25, 2022 Author Posted January 25, 2022 On 1/25/2022 at 8:05 PM, diesieben07 said: In your BlockEntity override getRenderBoundingBox and return the correct AABB for your rendered shape Expand Many thanks diesieben07, this was the piece I was missing. It works like a charm after adding this, you're a star! Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.