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.
Minecraft – Use /testfor to make a custom command
minecraft-commandsminecraft-java-edition
Best Answer
You can't test exactly for
/f map
, but you can do similar with/trigger
s.First, set up the trigger objective:
Then, when people type:
You can select them with
@a[score_fmap_min=1]
, or tell them something like:As a side note, creating a faction plugin with command blocks is a very ambitious goal, may be worth starting off with something simpler and smaller.