XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Incomplete
    • None
    • Minecraft 1.8.1
    • None
    • PC
    • Unconfirmed

      In a world with the gamerule keepInventory set to true, I've got a command block setup which teleports players who just respawned after dying, teleport them into spawn area, set the keepInventory gamerule to false, kill the player and finally turn keepInventory back to true, all of this happening in a gametick.
      The player only drops the items, keeping the XP.
      When doing it "slowly", the player drops the items and the XP.

      Here is a set of command blocks which have to be hook up to a command block clock to reproduce the issue:
      – scoreboard players set @a[score_health=0] IsDead 1
      – scoreboard players set @p[score_IsDead_min=1,score_health_min=1] selected 1
      – tp @p[score_selected_min=1] 0 70 0
      – gamerule keepInventory false
      – kill @p[score_selected_min=1]
      – gamerule keepInventory true

      It looks like the code to drop the xp is too "slow", at least "slower" than the one to drop items.

            Unassigned Unassigned
            semleti roman seiler
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: