[BUG] Schematic World
- Dominant language
- Java
- Stars
- 310
- Forks
- 121
- PR merge metrics
- No merged PRs in 30d
Description
**Describe the bug**
When loading a world from a schematic like this:
```java
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:
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.
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.