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

XpSeed defaults to 0 / XpSeed changes when loaded while 0

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • None
    • Minecraft 1.8.8, Minecraft 15w46a, Minecraft 1.10, Minecraft 17w06a, 1.15.2, 20w07a, 1.17
    • Confirmed
    • (Unassigned)

      The bug

      When creating a new world, the enchantment seed defaults to 0. When loading an XpSeed with value 0, it will be randomized, probably because the game assumes it hasn't been initialized yet. This is a problem in the following two ways:

      • If your enchantment seed is set to 0 randomly, it will change again once you reload the world. Admittedly, this is a rare occurrence, but it should be mentioned.
      • The enchantment seed changes when you reload the world for the first time.

      How to reproduce

      1. Create a new world in creative mode
      2. Place an enchantment table and put a book in it. Do not enchant it, but do take note of the enchantments that are shown when hovering over the 3 slots.
      3. Save and quit to title
      4. Reload the world
      5. Place the book in the enchantment table again and do enchant it this time
      6. Observe how the enchantments you receive (likely) do not include the ones you were promised in step 2.

            Unassigned Unassigned
            redstonehelper [Mod] redstonehelper
            Votes:
            3 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              CHK: