nbted icon indicating copy to clipboard operation
nbted copied to clipboard

Unknown tag type minecraft:sandstone_wall_from_sandstone_stonecutting

Open GhostOps77 opened this issue 1 year ago • 1 comments

I've converted a level.dat file to .txt, edited it, and while converting it back to a .dat file, i got this error

Error: Unable to parse text file level.txt
        caused by: Unknown tag type minecraft:sandstone_wall_from_sandstone_stonecutting

This is the part that has that text

Compound ""
  Compound "Data"
    Compound "Player"
      Compound "recipeBook"
        List "tobeDisplayed" String 241
          ...
          "minecraft:sandstone_wall_from_sandstone_stonecutting"
          ...

GhostOps77 avatar May 19 '24 07:05 GhostOps77

To confirm could you send a test file that reproduces this?

Probably the issue is that the list length is wrong. In the nbted format you're required to specify the length of the list. If the length is smaller than the number of entries you've put in you'll get that error (it looks for the starting tag of the next element but instead finds a list element).

It would be nice to make specifying the list length optional, but I don't see any way to do so without it being a breaking change.

C4K3 avatar Mar 27 '25 12:03 C4K3