mojira.dev
MC-201565

"Times Slept in a Bed" statistic increases by just laying in bed and even when not skipping the night

The bug

I am trying to make a datapack, so I used minecraft.custom:minecraft.sleep_in_bed. When I sleep in bed, the point will add 1 before I pass the night. So each time I sleep in the bed and get up manually, I will add 1 point.

How to reproduce

  1. Run the following commands:

    /scoreboard objectives add Slept minecraft.custom:minecraft.sleep_in_bed
    /scoreboard objectives setdisplay sidebar Slept
  2. Enter a bed, and then leave it
    → ❌ The score increases, even though the night was not skipped

Attachments

Comments 11

I can confirm for 20w46a.

I can confirm fro 20w48a

Can confirm in 21w03a. Here are some steps to reproduce this issue:

Steps to Reproduce:

  • Run the following commands:

/scoreboard objectives add Slept minecraft.custom:minecraft.sleep_in_bed
/scoreboard objectives setdisplay sidebar Slept
  • Enter a bed.

  • Quickly leave it.
    → ❌  Notice how the score increases despite you just laying in the bed.

Can confirm in 21w13a.

Can confirm in 21w14a.

1 more comments

Can confirm in 1.17.

Can confirm in 1.17.1.

Can confirm in 1.18.2.

Can confirm in 1.19.2.

Jacky Choy

(Unassigned)

Confirmed

Statistics

1.16.3, 1.16.4, 20w46a, 20w48a, 21w03a, ..., 1.19.2, 1.19.4, 23w16a, 1.20.4, 1.21.3

Retrieved