minetestworld 0.6.1

Read and modify Minetest worlds
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
use futures::TryStreamExt;
use minetestworld::World;

#[tokio::main(flavor = "current_thread")]
async fn main() {
    let world = World::open("TestWorld");
    let data = world.get_map_data().await.unwrap();
    let mut positions = data.all_mapblock_positions().await;
    while let Some(pos) = positions.try_next().await.unwrap() {
        println!("{pos:?}");
    }
}