Skip to main content

set_block

Function set_block 

Source
fn set_block(
    context: &CommandContext<CommandSource, SteelCommandRuntime>,
    mode: SetBlockMode,
) -> Result<i32, CommandSyntaxError>
Expand description

Set a block in the desired position with a mode (destroy, keep, replace, strict), and return 1 if the block is placed, 0 else.