A quick introduction: So I have an entity. Basically, it is supposed to form a wall of blocks. Since the wall is not square, however, I need 5 entities in a row to form the correct shape. This is all going very well and you can create 5-block-wide walls.
Unfortunately, for some reason, Minecraft sometimes doesn't want to render the wall segments when you look in a certain direction. It's probably due to the weird bounding box size (currently 0.9x5 for each segment).
Correctly displaying the wall. Everything is rendering properly.
For some reason, the segments are all culled. I think the reason that only the middle one is left is because it has a much smaller bounding box. Note: Wall segment bounding boxes are automatically calculated if there is air below them.
Here is what I know and have tried:
- Set ignoreFrustumCheck=true in entity's onUpdate() method
- Override entity's isInRangeToRenderDist and always return true
- Override renderer's shouldRender method and always return true