How to effect players that triggered a command in Minecraft?What can I use the /testfor command In MinecraftHow to set a command with a comand block?Is there a command to stop fire damage in minecraft?Choosing players for command executionHow can I make players share damage using command blocks?How do I use testfor to testfor players nearby?is there a command that sends a redstone signal when a mob attacks a player?Minecraft: How to teleport players using a distant command blockIs there a command that makes food restore healthHow to Have Minecraft Command Blocks output comparator signal in 1.13

Robbers: The Hidden OEIS Substring

Managing and organizing the massively increased number of classes after switching to SOLID?

During copyediting, journal disagrees about spelling of paper's main topic

Why does the U.S. tolerate foreign influence from Saudi Arabia and Israel on its domestic policies while not tolerating that from China or Russia?

Does Google Maps take into account hills/inclines for route times?

Double-sided action figure, early 80s?

Storming Area 51

For a hashing function like MD5, how similar can two plaintext strings be and still generate the same hash?

What was the definition of "set" that resulted in Russell's Paradox

Why do Americans say "less than five people"?

Is there a word for a message that is intended to be intercepted by an adversary?

Did any of the founding fathers anticipate Lysander Spooner's criticism of the constitution?

What's the maximum time an interrupt service routine can take to execute on atmega328p?

How do Windows version numbers work?

<schwitz>, <zwinker> etc. Does German always use 2nd Person Singular Imperative verbs for emoticons? If so, why?

If the railway suggests a 5-min connection window for changing trains in the Netherlands, does that mean it's definitely doable?

Supporting developers who insist on using their pet language

How can an advanced civilization forget how to manufacture its technology?

What is this welding tool I found in my attic?

Does throwing a penny at a train stop the train?

Was the Ford Model T black because of the speed black paint dries?

How can I get a player to accept that they should stop trying to pull stunts without thinking them through first?

Why isn't there research to build a standard lunar, or Martian mobility platform?

Why does Hellboy file down his horns?



How to effect players that triggered a command in Minecraft?


What can I use the /testfor command In MinecraftHow to set a command with a comand block?Is there a command to stop fire damage in minecraft?Choosing players for command executionHow can I make players share damage using command blocks?How do I use testfor to testfor players nearby?is there a command that sends a redstone signal when a mob attacks a player?Minecraft: How to teleport players using a distant command blockIs there a command that makes food restore healthHow to Have Minecraft Command Blocks output comparator signal in 1.13






.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty margin-bottom:0;








-2















I want to do a /testfor command for burning players, and then instantly heal them, what is the command for that?










share|improve this question
























  • Have you tried anything yourself? Or have you tried looking up how to do this?

    – Robotnik
    Jul 16 '15 at 13:47

















-2















I want to do a /testfor command for burning players, and then instantly heal them, what is the command for that?










share|improve this question
























  • Have you tried anything yourself? Or have you tried looking up how to do this?

    – Robotnik
    Jul 16 '15 at 13:47













-2












-2








-2








I want to do a /testfor command for burning players, and then instantly heal them, what is the command for that?










share|improve this question
















I want to do a /testfor command for burning players, and then instantly heal them, what is the command for that?







minecraft minecraft-commands






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Jul 16 '15 at 13:47









Robotnik

27.4k43 gold badges132 silver badges232 bronze badges




27.4k43 gold badges132 silver badges232 bronze badges










asked Jul 16 '15 at 13:43









Melvin JunodMelvin Junod

1




1












  • Have you tried anything yourself? Or have you tried looking up how to do this?

    – Robotnik
    Jul 16 '15 at 13:47

















  • Have you tried anything yourself? Or have you tried looking up how to do this?

    – Robotnik
    Jul 16 '15 at 13:47
















Have you tried anything yourself? Or have you tried looking up how to do this?

– Robotnik
Jul 16 '15 at 13:47





Have you tried anything yourself? Or have you tried looking up how to do this?

– Robotnik
Jul 16 '15 at 13:47










2 Answers
2






active

oldest

votes


















2














First, add an objective to track if a player is burning:



/scoreboard objectives add isBurning dummy


On a clock, run the following commands in this order:



/scoreboard players set @a isBurning 1 
/scoreboard players set @a isBurning 0 Fire:-20s
/effect @a[score_isBurning_min=1] instant_health 20 20


The way this works is that, first, everybody's isBurning score is set to 1. When not burning, a player's Fire tag is at -20s, so the isBurning score for those with a Fire tag at -20s is then set to 0, leaving only those who are burning still with an isBurning score of 1. The instant_health potion effect can then be applied to the players that are burning.




As a general tip, the /testfor command is a lot less useful than people seem to think. When using /testfor, you are essentially just asking "Does this entity exist?" and getting a yes/no answer without being able to do anything with the entity matched your query. If you want to be doing something with the entity (healing, killing, teleporting, etc.), you shouldn't use /testfor.






share|improve this answer

























  • +1 for the general tip. Typically, execute is better suited. testfor has niche functionality for adventure maps, and is largely incompatible with fill clocks.

    – MrLemon
    Jul 18 '15 at 11:57











  • You should explicitly mention fill clocks, as the scoreboard commands need to run simultaneously but in order, so that the wscores don't fluctuate

    – MrLemon
    Jul 18 '15 at 12:00











  • @MrLemon It should be fine if they're not run simultaneously, so long as they're run in order.

    – SirBenet
    Jul 18 '15 at 13:21


















0














This can be done in just one command in Minecraft 1.13:



/effect give @a[nbt=!Fire:-20s] instant_health 20 20





share|improve this answer

























    Your Answer








    StackExchange.ready(function()
    var channelOptions =
    tags: "".split(" "),
    id: "41"
    ;
    initTagRenderer("".split(" "), "".split(" "), channelOptions);

    StackExchange.using("externalEditor", function()
    // Have to fire editor after snippets, if snippets enabled
    if (StackExchange.settings.snippets.snippetsEnabled)
    StackExchange.using("snippets", function()
    createEditor();
    );

    else
    createEditor();

    );

    function createEditor()
    StackExchange.prepareEditor(
    heartbeatType: 'answer',
    autoActivateHeartbeat: false,
    convertImagesToLinks: false,
    noModals: true,
    showLowRepImageUploadWarning: true,
    reputationToPostImages: null,
    bindNavPrevention: true,
    postfix: "",
    imageUploader:
    brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
    contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
    allowUrls: true
    ,
    noCode: true, onDemand: true,
    discardSelector: ".discard-answer"
    ,immediatelyShowMarkdownHelp:true
    );



    );













    draft saved

    draft discarded


















    StackExchange.ready(
    function ()
    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fgaming.stackexchange.com%2fquestions%2f228198%2fhow-to-effect-players-that-triggered-a-command-in-minecraft%23new-answer', 'question_page');

    );

    Post as a guest















    Required, but never shown

























    2 Answers
    2






    active

    oldest

    votes








    2 Answers
    2






    active

    oldest

    votes









    active

    oldest

    votes






    active

    oldest

    votes









    2














    First, add an objective to track if a player is burning:



    /scoreboard objectives add isBurning dummy


    On a clock, run the following commands in this order:



    /scoreboard players set @a isBurning 1 
    /scoreboard players set @a isBurning 0 Fire:-20s
    /effect @a[score_isBurning_min=1] instant_health 20 20


    The way this works is that, first, everybody's isBurning score is set to 1. When not burning, a player's Fire tag is at -20s, so the isBurning score for those with a Fire tag at -20s is then set to 0, leaving only those who are burning still with an isBurning score of 1. The instant_health potion effect can then be applied to the players that are burning.




    As a general tip, the /testfor command is a lot less useful than people seem to think. When using /testfor, you are essentially just asking "Does this entity exist?" and getting a yes/no answer without being able to do anything with the entity matched your query. If you want to be doing something with the entity (healing, killing, teleporting, etc.), you shouldn't use /testfor.






    share|improve this answer

























    • +1 for the general tip. Typically, execute is better suited. testfor has niche functionality for adventure maps, and is largely incompatible with fill clocks.

      – MrLemon
      Jul 18 '15 at 11:57











    • You should explicitly mention fill clocks, as the scoreboard commands need to run simultaneously but in order, so that the wscores don't fluctuate

      – MrLemon
      Jul 18 '15 at 12:00











    • @MrLemon It should be fine if they're not run simultaneously, so long as they're run in order.

      – SirBenet
      Jul 18 '15 at 13:21















    2














    First, add an objective to track if a player is burning:



    /scoreboard objectives add isBurning dummy


    On a clock, run the following commands in this order:



    /scoreboard players set @a isBurning 1 
    /scoreboard players set @a isBurning 0 Fire:-20s
    /effect @a[score_isBurning_min=1] instant_health 20 20


    The way this works is that, first, everybody's isBurning score is set to 1. When not burning, a player's Fire tag is at -20s, so the isBurning score for those with a Fire tag at -20s is then set to 0, leaving only those who are burning still with an isBurning score of 1. The instant_health potion effect can then be applied to the players that are burning.




    As a general tip, the /testfor command is a lot less useful than people seem to think. When using /testfor, you are essentially just asking "Does this entity exist?" and getting a yes/no answer without being able to do anything with the entity matched your query. If you want to be doing something with the entity (healing, killing, teleporting, etc.), you shouldn't use /testfor.






    share|improve this answer

























    • +1 for the general tip. Typically, execute is better suited. testfor has niche functionality for adventure maps, and is largely incompatible with fill clocks.

      – MrLemon
      Jul 18 '15 at 11:57











    • You should explicitly mention fill clocks, as the scoreboard commands need to run simultaneously but in order, so that the wscores don't fluctuate

      – MrLemon
      Jul 18 '15 at 12:00











    • @MrLemon It should be fine if they're not run simultaneously, so long as they're run in order.

      – SirBenet
      Jul 18 '15 at 13:21













    2












    2








    2







    First, add an objective to track if a player is burning:



    /scoreboard objectives add isBurning dummy


    On a clock, run the following commands in this order:



    /scoreboard players set @a isBurning 1 
    /scoreboard players set @a isBurning 0 Fire:-20s
    /effect @a[score_isBurning_min=1] instant_health 20 20


    The way this works is that, first, everybody's isBurning score is set to 1. When not burning, a player's Fire tag is at -20s, so the isBurning score for those with a Fire tag at -20s is then set to 0, leaving only those who are burning still with an isBurning score of 1. The instant_health potion effect can then be applied to the players that are burning.




    As a general tip, the /testfor command is a lot less useful than people seem to think. When using /testfor, you are essentially just asking "Does this entity exist?" and getting a yes/no answer without being able to do anything with the entity matched your query. If you want to be doing something with the entity (healing, killing, teleporting, etc.), you shouldn't use /testfor.






    share|improve this answer















    First, add an objective to track if a player is burning:



    /scoreboard objectives add isBurning dummy


    On a clock, run the following commands in this order:



    /scoreboard players set @a isBurning 1 
    /scoreboard players set @a isBurning 0 Fire:-20s
    /effect @a[score_isBurning_min=1] instant_health 20 20


    The way this works is that, first, everybody's isBurning score is set to 1. When not burning, a player's Fire tag is at -20s, so the isBurning score for those with a Fire tag at -20s is then set to 0, leaving only those who are burning still with an isBurning score of 1. The instant_health potion effect can then be applied to the players that are burning.




    As a general tip, the /testfor command is a lot less useful than people seem to think. When using /testfor, you are essentially just asking "Does this entity exist?" and getting a yes/no answer without being able to do anything with the entity matched your query. If you want to be doing something with the entity (healing, killing, teleporting, etc.), you shouldn't use /testfor.







    share|improve this answer














    share|improve this answer



    share|improve this answer








    edited Jul 18 '15 at 10:32

























    answered Jul 18 '15 at 10:27









    SirBenetSirBenet

    25.5k3 gold badges51 silver badges81 bronze badges




    25.5k3 gold badges51 silver badges81 bronze badges












    • +1 for the general tip. Typically, execute is better suited. testfor has niche functionality for adventure maps, and is largely incompatible with fill clocks.

      – MrLemon
      Jul 18 '15 at 11:57











    • You should explicitly mention fill clocks, as the scoreboard commands need to run simultaneously but in order, so that the wscores don't fluctuate

      – MrLemon
      Jul 18 '15 at 12:00











    • @MrLemon It should be fine if they're not run simultaneously, so long as they're run in order.

      – SirBenet
      Jul 18 '15 at 13:21

















    • +1 for the general tip. Typically, execute is better suited. testfor has niche functionality for adventure maps, and is largely incompatible with fill clocks.

      – MrLemon
      Jul 18 '15 at 11:57











    • You should explicitly mention fill clocks, as the scoreboard commands need to run simultaneously but in order, so that the wscores don't fluctuate

      – MrLemon
      Jul 18 '15 at 12:00











    • @MrLemon It should be fine if they're not run simultaneously, so long as they're run in order.

      – SirBenet
      Jul 18 '15 at 13:21
















    +1 for the general tip. Typically, execute is better suited. testfor has niche functionality for adventure maps, and is largely incompatible with fill clocks.

    – MrLemon
    Jul 18 '15 at 11:57





    +1 for the general tip. Typically, execute is better suited. testfor has niche functionality for adventure maps, and is largely incompatible with fill clocks.

    – MrLemon
    Jul 18 '15 at 11:57













    You should explicitly mention fill clocks, as the scoreboard commands need to run simultaneously but in order, so that the wscores don't fluctuate

    – MrLemon
    Jul 18 '15 at 12:00





    You should explicitly mention fill clocks, as the scoreboard commands need to run simultaneously but in order, so that the wscores don't fluctuate

    – MrLemon
    Jul 18 '15 at 12:00













    @MrLemon It should be fine if they're not run simultaneously, so long as they're run in order.

    – SirBenet
    Jul 18 '15 at 13:21





    @MrLemon It should be fine if they're not run simultaneously, so long as they're run in order.

    – SirBenet
    Jul 18 '15 at 13:21













    0














    This can be done in just one command in Minecraft 1.13:



    /effect give @a[nbt=!Fire:-20s] instant_health 20 20





    share|improve this answer



























      0














      This can be done in just one command in Minecraft 1.13:



      /effect give @a[nbt=!Fire:-20s] instant_health 20 20





      share|improve this answer

























        0












        0








        0







        This can be done in just one command in Minecraft 1.13:



        /effect give @a[nbt=!Fire:-20s] instant_health 20 20





        share|improve this answer













        This can be done in just one command in Minecraft 1.13:



        /effect give @a[nbt=!Fire:-20s] instant_health 20 20






        share|improve this answer












        share|improve this answer



        share|improve this answer










        answered 59 mins ago









        ppperypppery

        8515 silver badges17 bronze badges




        8515 silver badges17 bronze badges



























            draft saved

            draft discarded
















































            Thanks for contributing an answer to Arqade!


            • Please be sure to answer the question. Provide details and share your research!

            But avoid


            • Asking for help, clarification, or responding to other answers.

            • Making statements based on opinion; back them up with references or personal experience.

            To learn more, see our tips on writing great answers.




            draft saved


            draft discarded














            StackExchange.ready(
            function ()
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fgaming.stackexchange.com%2fquestions%2f228198%2fhow-to-effect-players-that-triggered-a-command-in-minecraft%23new-answer', 'question_page');

            );

            Post as a guest















            Required, but never shown





















































            Required, but never shown














            Required, but never shown












            Required, but never shown







            Required, but never shown

































            Required, but never shown














            Required, but never shown












            Required, but never shown







            Required, but never shown







            Popular posts from this blog

            ParseJSON using SSJSUsing AMPscript with SSJS ActivitiesHow to resubscribe a user in Marketing cloud using SSJS?Pulling Subscriber Status from Lists using SSJSRetrieving Emails using SSJSProblem in updating DE using SSJSUsing SSJS to send single email in Marketing CloudError adding EmailSendDefinition using SSJS

            Кампала Садржај Географија Географија Историја Становништво Привреда Партнерски градови Референце Спољашње везе Мени за навигацију0°11′ СГШ; 32°20′ ИГД / 0.18° СГШ; 32.34° ИГД / 0.18; 32.340°11′ СГШ; 32°20′ ИГД / 0.18° СГШ; 32.34° ИГД / 0.18; 32.34МедијиПодациЗванични веб-сајту

            19. јануар Садржај Догађаји Рођења Смрти Празници и дани сећања Види још Референце Мени за навигацијуу