How to Enter the Command
- Open the Chat Window. The easiest way to run a command in Minecraft is within the chat window.
- Type the Command. In this example, we are going to summon a villager in Minecraft Java Edition (PC/Mac) 1.18 with the following command: /summon villager.