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

Sleeping in a custom dimension with "natural" set to false causes crash

XMLWordPrintable

    • Confirmed
    • Crash, Custom Worlds
    • Important

      The bug

      When creating a custom dimension in a datapack, setting "natural" to false and "bed_works" to true causes a fatal error to console when a player tries to sleep. Despite it being logged as a fatal error, the game doesn't crash, but players are unable to sleep.

      Attached is a world that demonstrates the issue, and a datapack that adds a dimension affected by it.

      Code analysis

      Code analysis by apple502j can be found in this comment.

        1. Screenshot from 2021-08-22 11-11-41.png
          56 kB
          Vivian Jones

            gegy1000 [Mojang] Gegy
            PrismaticVoid Vivian Jones
            Votes:
            5 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved:
              CHK: