PrismarineJS/prismarine-chunk

Block entity support

rom1504 opened this issue · 5 comments

Block entity support

I don't remember the last status, but I think this was almost done by @u9g

The name of the property should be the same as the one created by mineflayer block at

Dump and load should put in internal storage
And get/set block should get/put in internal storage

#162 adds block entity read/writing for anvil provider through the .entity property. I don’t think .blockEntity can be used (like in mineflayer) since it returns simplified NBT data, which can’t be written back to disk later on. So to keep things api compatible both .entity and blockEntity could exist, the former being the un-simplified NBT and the latter being simplified (.blockEntity can be a getter to nbt.simplify(block.entity))