Question: how to use command blocks in minecraft java edition?
Answer: Place the Command Block. Before you can program and use the command block, you need to place the command block on the ground. ... 
Add a Redstone Device. Next, you need to add a redstone device next to the command block. ... 
Program the Command Block. ... 
Activate the Command Block.