Use /testfor to make a custom command

Use /testfor to make a custom command - Content female customer with long curly hair wearing casual outfit sitting at wooden table with netbook in classic interior restaurant while making online order

Basically, I'm trying to recreate the Faction plugins /f map in my single-player without mods as my PC doesn't run them very well. (I know it sounds strange.) I am trying to use the /testfor to test if I have written '/f map' in chat, and if I have, it would show me a custom generated map. I don't know how to word this better xD Essentially what I want is for it to test if I have written a command in chat, and if I have, display something.






Pictures about "Use /testfor to make a custom command"

Use /testfor to make a custom command - Crop hacker silhouette typing on computer keyboard while hacking system
Use /testfor to make a custom command - Happy young couple doing purchase on Internet together at home
Use /testfor to make a custom command - From above of crop anonymous male hacker typing on netbook with data on screen while sitting at desk



How do you make a Testfor command?

How to Enter the Command
  • Test if Players are within 10 blocks. In this example, we will test to see if there are any players within a 10 block radius with the following command: /testfor @a[r=10] ...
  • Test if Mooshrooms are within 50 blocks. ...
  • Test if Nearest Player is at Level 20 experience.


  • How do you Testfor a command block?

    The /testfor command became obsolete in Minecraft 1.13, and has been replaced by the /execute command*. It will do the same as typing /testfor @e {SelectedItem:{id:"<item>"}} and then putting a comparator to the command block with the command, and then running the command which you wanna run.



    Minecraft Redstone Tutorial | How to use testfor commands in MCPE!




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

    Images: Yan Krukov, Anete Lusina, Andrea Piacquadio, Sora Shimazaki