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

Scoreboard Objective does not increment when using a bed during day

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Invalid
    • None
    • 1.15 Pre-release 3
    • Unconfirmed
    • (Unassigned)

      Setting up a scoreboard objective to detect when a player interacts with a bed during the night AND day to change spawn point does not work; this has been tested with minecraft.used:minecraft.white_bed (and variant colors) and
      minecraft.custom:minecraft.sleep_in_bed, as well as using a custom resetting advancement to test via criteria minecraft:slept_in_bed (makes sense, that advancement criteria trigger defines past tense and we can't sleep during the day anyways).

      Expected behavior is that minecraft.custom:minecraft.sleep_in_bed or minecraft.used:minecraft.white_bed (and other variants) would increment when using a bed to reset spawn point during the day.
      Observed behavior is nothing happens.

      Steps to reproduce:

      1. Create new world, run the following commands:
        /scoreboard objectives add set_spawn minecraft.custom:minecraft.sleep_in_bed "Times Spawn was set"
        /scoreboard objectives setdisplay sidebar set_spawn
        /time set day
        /give @s minecraft:white_bed
      2. Place white bed down in world
      3. Right-click a white bed to use it

            Unassigned Unassigned
            akoimeexx Akoi Meexx
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: