mc-zuri/prismarine-chunk ? reverse-engineered prompt

Reverse engineered prompt

Build me a JavaScript library for holding and editing Minecraft chunk data, like the kind used by bots and world tools.

I want it to work for both Java edition and Bedrock edition across the versions listed in the README, and let me create a chunk, read blocks, change block types and state data, edit light and sky light, and set biome data. It should also support block entities, loading and saving chunk data to JSON, and for Java edition be able to load and dump raw chunk data and light data too.

Please make the API feel simple, so I can do things like get a block at a position, set a block, and initialize a whole chunk with a function. Keep the version specific behavior in place, and make sure the tests still cover the chunk read and write behavior. If you need to check current Minecraft format details, look up the latest docs online.

Are you gonna build this?

make sure you review the code using coderabbit

Try freeSponsored — opens CodeRabbit in a new tab