Skip to content

[BUG] Schematic World #221

@Flash303

Description

@Flash303

Describe the bug
When loading a world from a schematic like this:

WorldFile file = factory.openWorldFile(BuiltInWorldFileType.SCHEMATIC, Path.of(schematicPath));
file.toWorld(factory, virtualWorld, 0, 100, 0);

block data is not loaded correctly.

For example, buttons lose their data: Image

The same problem happens with other blocks: diorite is transformed into stone, red carpet into white carpet, etc.

To Reproduce
Steps to reproduce the behavior:

  1. Load a schematic with BuiltInWorldFileType.SCHEMATIC that contains blocks with custom data (block states / metadata).
  2. Start the server and check whether these blocks keep their correct data.

Expected behavior
All blocks, including their block data (block states / metadata), should be placed correctly at the right positions.

Server Info (please complete the following information):

  • All Limbo plugins versions:
  • Limbo API latest version (it happens on "all" versions)

I tried to fix this with Copilot; it correctly patched the issue by editing MCEditSchematicFile and legacyblocks.json. However, I don’t find this solution very clean, as it requires manually adding each ID to the file.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions