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