how to get a command block in minecraft code?
To get a command block using cheats, type /give @s minecraft:command_block <amount> , /give @p minecraft:command_block <amount> or /give <username> minecraft:command_block <amount> .