minetestworld 0.6.1

Read and modify Minetest worlds
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
use minetestworld::{Position, World};

#[tokio::main(flavor = "current_thread")]
async fn main() {
    let world = World::open("TestWorld");
    let mut vm = world.get_voxel_manip(true).await.unwrap();
    for y in 10..20 {
        vm.set_content(Position { x: 0, y, z: 0 }, b"default:diamondblock")
            .await
            .unwrap();
    }
    vm.commit().await.unwrap();
}