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

singleplayer datapack load without player in world

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • None
    • 1.18.2, 22w12a
    • None
    • Unconfirmed
    • (Unassigned)

      Description:
      When loading a singleplayer world the load function from a datapacks is executed without the player.

      How to reproduce:
      1. create a world
      2. leave world
      3. add datapack that tests if a player exists on load (example in attachments)
      4. join world
      5. look into the logs

      Expected:
      The datapack finds the player

      Reality:
      The datapack doesn't find the player

      Additional note:
      The first ticks are also executed before the player is in the world

            Unassigned Unassigned
            Sertonix Sertonix
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: