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

Data pack with overflowing salt value fails to validate

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • None
    • 1.19.2
    • None
    • Confirmed
    • Custom Worlds, Data Packs
    • Low
    • Platform

      I am developing a datapack (attached below), and discovered that the salt I had given one of my structure sets was causing the following error: 

      Failed to validate datapack
      java.util.concurrent.CompletionException: com.google.gson.JsonParseException: Error loading registry data: Value must be non-negative: -1075122312

      Through removing and re-adding literally every single file, I narrowed it down to one structure set, (plain_towers, if you want to take a look) and fiddled around with the values, eventually discovering that the problem was the salt number.

      The salt was 3219844984, though I have discovered this can be caused by other numbers as well.

      Reproduction:

      Load 1.19.2

      Attempt to load the datapack while creating a new world

      Check the game output for the error message

            Unassigned Unassigned
            Matthgeek Matthgeek
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              CHK: