Question: how do you get a command block in your minecraft world?
Answer: Create a world that enables cheats. If you start your world in Creative mode, cheats are enabled by default. ...  Clear out a space in the inventory. ...  Open the chat menu. ...  Type/give <your username> command_block. ...  Press Enter.