feat(client): bring a few commands from v0.1.0

This commit is contained in:
2025-02-21 23:00:29 -05:00
parent 08b9fbbc1e
commit 70c1a83eb2
3 changed files with 54 additions and 1 deletions

View File

@@ -72,7 +72,10 @@ impl UserData for Client {
m.add_method("get_fluid_state", world::get_fluid_state);
m.add_method("set_held_slot", container::set_held_slot);
m.add_method("set_mining", interaction::set_mining);
m.add_method("set_sneaking", movement::set_sneaking);
m.add_method("stop_pathfinding", movement::stop_pathfinding);
m.add_method("stop_sleeping", movement::stop_sleeping);
m.add_method("use_item", interaction::use_item);
m.add_method_mut("block_interact", interaction::block_interact);
m.add_method_mut("jump", movement::jump);
m.add_method_mut("open_inventory", container::open_inventory);