diff options
Diffstat (limited to 'azalea/examples')
| -rw-r--r-- | azalea/examples/testbot.rs | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/azalea/examples/testbot.rs b/azalea/examples/testbot.rs index a304e2ce..1c8caad7 100644 --- a/azalea/examples/testbot.rs +++ b/azalea/examples/testbot.rs @@ -301,6 +301,12 @@ async fn handle(mut bot: Client, event: Event, _state: State) -> anyhow::Result< bot.chat("no chunk found"); } } + "debugblock" => { + // send the block that we're standing on + let block_pos = BlockPos::from(bot.position().down(0.1)); + let block = bot.world().read().get_block_state(&block_pos); + bot.chat(&format!("block: {block:?}")); + } "debugchunks" => { println!("shared:"); |
