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

Large models that cross multiple blocks do not light up model partially based on each block's light level

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Works As Intended
    • None
    • 1.20.1, 23w32a
    • None
    • Confirmed
    • Lighting, Rendering

      The bug

      When you have a large model that is bigger than a single block space (for example using a block/item display entity with large scale), the model is only lit up in its entirety based on the light level at the origin of the model; it doesn't get lit partially per block.

      Steps to reproduce

      Block display entity

      1. Create a superflat world
      2. /time set midnight
        /execute align xyz summon minecraft:block_display run data merge entity @s {block_state:{Name:"stone"},transformation:{scale:[15.0,15.0,15.0]}}
        /setblock ~ ~ ~ light
      3. Observe how the block display is fully lit
      4. /setblock ~ ~ ~ air
        /setblock ~15 ~ ~15 light
      5. Observe how the block display is entirely dark

      Banner (other 2 tall blocks are actually 2 separate blocks)

      1. /fill ~-14 ~10 ~-14 ~14 ~10 ~14 stone
        /setblock ~ ~ ~ white_banner
        /setblock ~ ~1 ~ light[level=1]
      2. Observe how the model doesn't get brighter where you placed the light block (note, your player model does light up slightly as it takes the highest light level of all blocks the entity is in)
      3. /setblock ~ ~ ~ light[level=2]
      4. Observe how the whole model gets brighter, not just the corner you placed a light block in.

      Notice

      I realize this comes off as a bit of a change request, but fixing this will allow map makers to model entire areas in detail without having to create hundreds of model files to replace individual blocks.

        1. 2023-08-11_09.26.29.png
          1007 kB
          user-f2760
        2. 2023-08-11_09.26.31.png
          1011 kB
          user-f2760
        3. 2023-08-11_09.26.35.png
          1011 kB
          user-f2760
        4. 2023-08-11_09.18.36.png
          1.00 MB
          user-f2760
        5. 2023-08-11_09.26.38.png
          1010 kB
          user-f2760
        6. 2023-08-11_09.17.59.png
          1.45 MB
          user-f2760

            Unassigned Unassigned
            jirauser71590 user-f2760 (Inactive)
            Votes:
            4 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved:
              CHK: