Amulet-Team / Amulet-Map-Editor

A new Minecraft world editor and converter that supports all versions since Java 1.12 and Bedrock 1.7.
https://www.amuletmc.com/
1.73k stars 122 forks source link

Hey, I can´t import schems #1022

Open TomatoChips123 opened 7 months ago

TomatoChips123 commented 7 months ago

I can´t import schems to a world. Help. 2024-02-10 19_12_10-Window

IJuanTM commented 7 months ago

Same issue here, same error as well. It's a .schem file generated from WorldEdit.

gentlegiantJGC commented 7 months ago

Can you provide more info. Is this a sponge schematic or a legacy schematic? Upload the file so I can look at it.

IJuanTM commented 7 months ago

I don't know what type of schematic WorldEdit generates, sponge or legacy. I use the command //schem save [name] and it gives me a .schem file as output. When I try to import it in Amulet it get the same error as TomatoChips123.

Here is the file: https://we.tl/t-XVqZyzpyZl

Using Amulet to export a .construction file and import that, it works fine btw.

gentlegiantJGC commented 7 months ago

Looks like version 3 of the sponge schematic format changed the structure of the block data. I will need to update the code to support that.

Djaytan commented 1 month ago

Hello, I encountered the same issue as well with Sponge 3 schematic files generated from WorldEdit. Falling back to v2 format was fine on my side.

gentlegiantJGC commented 4 weeks ago

Pull request welcome. https://github.com/Amulet-Team/Amulet-Core/tree/1.0/amulet/level/formats/sponge_schem