anvil-parser icon indicating copy to clipboard operation
anvil-parser copied to clipboard

1.18 breaks everything

Open JoshuaVandaele opened this issue 2 years ago • 5 comments

Title.

They moved chunk["Level"] to several other places, as seen in this change log under "WORLD DATA: CHUNK FORMAT": https://feedback.minecraft.net/hc/en-us/articles/4415128577293-Minecraft-Java-Edition-1-18

JoshuaVandaele avatar Dec 02 '21 18:12 JoshuaVandaele

It can be fixed, i think, by simply going to edit the chunk.py file and removing the square brackets from lines 55 and 58

DoomSkullDeadly avatar Dec 09 '21 16:12 DoomSkullDeadly

Immagine 2022-03-13 152223 In the lines 55- 58 there isn't any square brackets

biktoz avatar Mar 13 '22 14:03 biktoz

It can be fixed, i think, by simply going to edit the chunk.py file and removing the square brackets from lines 55 and 58

Could you share how the code needs to look after the modification? I am experiencing the ischue aswell and removing any square brackets from said lines would only result in syntax error.

image

MineAndDine96 avatar Apr 07 '22 17:04 MineAndDine96

You need to remove the entire ['Level'] and ['TileEntities']. They didn't mean to just remove just the brackets.

CMarkley78 avatar May 10 '22 00:05 CMarkley78

I forked the package and made some changes to make it 1.18+ compatible. Basic functionality is in place, although I'm working out some kinks. If anyone wants to use it, you can install it as anvil-new (pip install --upgrade anvil-new). Still figuring out Github and all, but hopefully I'll be able to upload my stuff via git to make it more open-source once I do figure it out.

Intergalactyc avatar Jul 02 '22 00:07 Intergalactyc