Uploaded image for project: 'Minecraft: Java Edition'
  1. Minecraft: Java Edition
  2. MC-239399

Light block textures coincide when switching light levels, making them difficult to read

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • None
    • 21w42a
    • None
    • Confirmed
    • Rendering

      The bug

      When switching the intensity of the light block, the texture displayed will overlap with its previous version.

      This bug is a direct product of MC-47660, as since the particles do not immediately disappear, they are allowed to coincide like this. MC-238261, which is considered Won't Fix (but in light of this is probabyl worth reopening), may also be considered partially at fault as more than one texture is allowed to coincide as a result.

      How to reproduce

      1. Obtain a light block: /give @s light
      2. Place down the light block and wait for it to show itself via the particle
      3. Right click on the light block in order to change its light level
        Overlapping textures are shown, giving a nonsensical result

      Expected result

      Right clicking would change the texture to the actual light level, and that only

      Actual result

      Overlapping occurs, which causes an ugly and hard to read combination of particles to appear

      How to fix

      According to JellySquid in the Sodium discord, it is not possible for a block to test for the existence of a particle in a given area, and as such the game simply spawns the particles randomly, giving rise to this bug, MC-47660 and MC-238261. It may be advisable to ditch the particle approach entirely (although maybe keeping block_marker for mapmaking purposes), and use an alternate method of revealing these blocks when held.

      Solution 1

      The ability for blocks to check for the existence of particles could be added. With this, particle could be made to appear and disappear immediately depending on the held item, and for only a single particle to be able to exist per block. This would match Bedrock Edition's behaviour.

      Solution 2

      Light blocks and barriers could be made to render the same way all invisible blocks do when structure blocks are set to display invisible blocks. Light blocks could possibly be distinguished by using darker shades of yellow for lower light levels.

      Solution 3

      Models. My personal favorite solution, listed in MC-238261 but will be rewritten and improved here.

        1. 2021-10-20_16.30.05.png
          205 kB
          Connor Steppie
        2. 2021-10-20_16.30.06.png
          154 kB
          Connor Steppie
        3. 2021-10-20_16.30.07.png
          155 kB
          Connor Steppie
        4. 2021-10-20_16.30.08.png
          160 kB
          Connor Steppie
        5. 2021-10-20_16.30.10.png
          170 kB
          Connor Steppie

            Unassigned Unassigned
            Awesoman3000 Connor Steppie
            Votes:
            4 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved:
              CHK: