Skip to content

Bug: unsupported litematica version 5,6,7 #307

Description

@rwonkensv2

What happened?

Can't use ;build to build my litematica structure, but litematica printer and litematica parses them just fine

https://abfielder.com/Products/ProductDetails.php?id=2411

What should have happened?

shoulda built i guess

Version

1.21.11

Log Output

No response

Activity

  1. added
    bugReports or fixes new or existing bugs
    triageRequires labelling or review
    on Jul 1, 2026
  2. beanbag44 commented on Jul 1, 2026

    @beanbag44
    Member

    yeah the build command system uses its own schematic-style structure system, which also happens to have support for some litematic versions. Its not something i plan to work on in the near future, so i'd just recommend using the printer module with litematica

  3. rwonkensv2 commented on Jul 2, 2026

    @rwonkensv2
    Author

    What do you mean "schematic-style structure system"? Does this mean no litematica files work or I should use schematic files instead? What has to be different/specific, also litematica printer is detected by AC's on servers

    Would pasting it into a different world, selecting it then re-saving it as a schematic fix this?

  4. beanbag44 commented on Jul 2, 2026

    @beanbag44
    Member

    im not sure tbh; i didnt write the specific litematic versions support we have currently. By schematic-style structure system, i mean that the build command, specifically, actually uses the minecraft structure storage system rather than litematics and we only have translation support for certain litematic types. Its a very underdeveloped way of building with lambda, which is why i recommend using the printer module. I dont mean litematica printer, lambda has its own printer module. This works directly with litematica, and doesnt have to deal with storing schematics, etc. Also, another thing to know about the build command: As it is underdeveloped, it simulates the entire schematic every tick, rather than just the area around you like the printer module does. It can be incredibly laggy, if not freezing your game entirely with big structures

  5. rwonkensv2 commented on Jul 2, 2026

    @rwonkensv2
    Author

    Alr, thanks man, appreciate it a bunch and good work. Also unrelated question, but when you mention built with GrimAC in mind does this apply for all modules? Eg killaura etc

  6. beanbag44 commented on Jul 2, 2026

    @beanbag44
    Member

    its not a guarantee with every module. There are ncp modes in speed i think, and others might be there just in case something gets unpatched in the future, or happens to work on other servers aside from 2b. But generally, all configs default to 2b2t's grim setup afaik

  7. emyfops commented on Jul 21, 2026

    @emyfops
    Contributor

    This is working as intended. Schemas 1 to 4 were simple enough to parse. However, newer versions uses a more complex approach that I was unable to replicate even by reading the source code of litematica (classic java oop hell). At first, when I wrote the code a year and a half ago, lambda was supposed to read and automatically converted all sponge and litematica files into nbt.

    when (val version = nbt.getInt("Version", 1)) {
    1, 2, 3, 4 -> readLitematicaV4(lookup, nbt)
    else -> throw IllegalStateException("Unsupported litematica version $version")
    }

  8. emyfops commented on Jul 21, 2026

    @emyfops
    Contributor

    There are two subsystems for structures. One which was abandoned in favor of using a soft dependency on litematica. The oldest one supports some sponge and litematica while the other supports all structure files

  9. emyfops commented on Aug 20, 2026

    @emyfops
    Contributor

    I'm so high chat

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugReports or fixes new or existing bugstriageRequires labelling or review

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions