fastnbt icon indicating copy to clipboard operation
fastnbt copied to clipboard

[Feature Request] Add a simple get_block(x, y, z) API

Open Badel2 opened this issue 4 years ago • 1 comments

As a user of fastanvil, I find myself converting between block coords, chunk coords and region coords fairly often. To avoid any mistakes that could happen because of this conversions, I think it would be a good idea to provide an API that abstracts away the region and chunk logic.

Here I made a proof of concept, but I'm not happy with it:

https://github.com/Badel2/slime_seed_finder/blob/196b4a8bf6923432c8bdf7904af0e1ed034bd987/src/fastanvil_ext.rs

Badel2 avatar Nov 01 '20 15:11 Badel2

Hi, I like this idea. Some abstraction on the level on dimension would be very useful.

owengage avatar Nov 01 '20 16:11 owengage