Why is this command not working properly?

Why is this command not working properly? - Free stock photo of adult, afro, business

I'm working on a one command creation, Magical Weapons, and I'm currently working on a weapon called Black-Hole-In-A-Box. The idea is when you right-click with it, it clears all the blocks in a 5x5x5 box around you. So, I have this command (in a command block):

/execute @p ~ ~ ~ fill ~5 ~5 ~5 minecraft:air

but when I run it, I get this error message:

Failed to execute fill ~5 ~5 ~5 minecraft:air

But I don't know why it's not working. It should. I've worked for hours on this and I've tried tons of variations. What is the proper command to fill a 5x5x5 box around me with air?



Best Answer

try the command /fill ~5 ~5 ~5 ~ ~ ~ air




Pictures about "Why is this command not working properly?"

Why is this command not working properly? - Man and Woman Sitting on Chair Using Macbook
Why is this command not working properly? - Free stock photo of adult, auto, automobile
Why is this command not working properly? - Free stock photo of adult, appoint, artisan



Why does my command not work?

Restarting computer can sometimes help fix many minor computer issues. You can click Start -> Power -> Restart to reboot your Windows 10 computer. Then you can press Windows + R, type cmd, and press Enter (press Ctrl + Shift + Enter to open elevated Command Prompt) to see if you can open Command Prompt now.

Why commands are not working in cmd?

Are you running the command prompt as administrator? For some commands and options to work in the command line you must run the command line as administrator. To do this, right-click on the cmd icon and choose Run as administrator. Hope the above information helps.

How do I fix system commands?

How to repair Windows 10 with System File Checker
  • Open Start.
  • Search for Command Prompt, right-click the top result, and select the Run as administrator option.
  • Type the following command to repair the Windows 10 system files and press Enter: sfc /scannow.


  • How do I fix invalid command?

    Fix Invalid command line error
  • Check startup items in Task Manager.
  • Check Scheduled Tasks in Task Scheduler.
  • Perform System Restore.




  • How to Fix Command Prompt(CMD) Not Working/Opening in Windows 10




    Sources: Stack Exchange - This article follows the attribution requirements of Stack Exchange and is licensed under CC BY-SA 3.0.

    Images: Mikhail Nilov, Mikhail Nilov, Artem Podrez, Artem Podrez