Mojira Archive
MC-143474

Respawning causes your hotbar to reset to the first space

The Bug:

Hotbar selection resets to slot 0 upon death.

Steps to Reproduce:

  • Give yourself two different items held in different hotbar slots.
  • /item replace entity @s hotbar.0 with minecraft:dirt
    /item replace entity @s hotbar.1 with minecraft:deepslate
  • Hold the deepslate in your hand and set the "keepInventory" gamerule to "true".
  • /gamerule keepInventory true
  • Run the "/kill" command.
  • Take note as to whether or not hotbar selection resets to slot 0 upon death.

Observed Behavior:

Hotbar selection resets to slot 0 upon death.

Expected Behavior:

Hotbar selection would not reset to slot 0 upon death.

Unresolved

GreenPlanet669

2019-01-31, 10:02 PM

2024-12-25, 04:50 PM

7

3

Confirmed

UI

Minecraft 1.13.2 - 1.21.4Minecraft 1.13.2, Minecraft 19w05a, Minecraft 19w12b, Minecraft 19w13b, Minecraft 19w14a, Minecraft 19w14b, 20w30a, 20w51a, 21w03a, 1.16.5, 21w06a, 21w08b, 21w11a, 1.17.1, 21w43a, 1.18.2, 22w18a, 1.19, 1.19.2, 1.20.1, 1.20.4, 23w51b, 1.21.4

-