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

The --dev argument for the data generators no longer converts NBT to SNBT properly

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • 1.19 Pre-release 1
    • 22w19a
    • None
    • Confirmed
    • Dedicated Server
    • Normal

      Steps to reproduce:

      1. Download the below nbt file. (An end city structure template file.)
      2. Download the 22w19a server jar from this link.
      3. Put both of them in the same folder.
      4. Run the data generator using the below command:
      java -DbundlerMainClass="net.minecraft.data.Main" -jar server.jar --dev --input <path>
      

      ...where <path> is the folder in which you placed the nbt file.

      You should see the following log:

      Starting net.minecraft.data.Main
      [16:09:26] [ServerMain/INFO]: Building unoptimized datafixer
      [16:09:26] [ServerMain/INFO]: Starting provider: NBT to SNBT
      [16:09:27] [ServerMain/INFO]: Converted fat_tower_base from NBT to SNBT
      [16:09:27] [ServerMain/INFO]: NBT to SNBT finished after 49 ms
      [16:09:27] [ServerMain/INFO]: All providers took: 50 ms
      [16:09:27] [ServerMain/INFO]: Caching: total files: 1, old count: 0, new count: 1, removed stale: 1, written: 0
      

      If you check the generated folder, nothing but the cache file will be there, instead of the snbt version of fat_tower_base and the cache.

      The last line,

      [16:09:27] [ServerMain/INFO]: Caching: total files: 1, old count: 0, new count: 1, removed stale: 1, written: 0
      

      Did not exist before 1.19 snapshots, and I suspect that the

      removed stale:

      portion has something to do with this.

            boq [Mojang] Bartosz Bok
            CreeperMagnet_ CreeperMagnet_
            Votes:
            4 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved:
              CHK: