tryashtar / image-map

Converts image to maps for Minecraft Java and Bedrock
244 stars 36 forks source link

Add support for old bedrock edition worlds #105

Closed Max-RM closed 2 years ago

Max-RM commented 2 years ago

old worlds have a different id for map item. this means that if you use Image Map for old worlds, then the frames with maps will be empty. At the moment bedrock edition and Image Map use id: minecraft:filled_map, but older versions of Bedrock edition use 358 and minecraft:map.

I fixed the error by replacing the line of code in Image Map with new NbtShort("id", 358), now there is no error and there is compatibility with all versions of bedrock edition, because if load the structure with the old id 358 at item map in the new world, the game will just automatically update it to minecraft:map or minecraft:filled_map

tryashtar commented 2 years ago

Thanks