Can somebody help me with the execute commands in Minecraft?Minecraft disconnection timeout, aiding bad connection playersCommand block problem detecting armourWhat's wrong with this Minecraft /give command?How to colour item text in Vanilla minecraft?My command for minecraft executing a command at an entity won't workTestfor selected item?Is there a MC PC Commands to MC Bedrock Edition Commands?Armor stand help! Minecraft 1.13(Java Minecraft 1.13) Can I remove the shadow on an item's name?How do I create tools that only break certain blocks, and also have a colored name?

Do items with curse of vanishing disappear from shulker boxes?

Are athletes' college degrees discounted by employers and graduate school admissions?

The last tree in the Universe

How to remove multiple elements from Set/Map AND knowing which ones were removed?

Background for black and white chart

A Tale of Snake and Coffee

Fastest path on a snakes and ladders board

How do credit card companies know what type of business I'm paying for?

Will users know a CardView is clickable

How many times to repeat an event with known probability before it has occurred a number of times

How to know whether to write accidentals as sharps or flats?

Can I appeal credit ding if ex-wife is responsible for paying mortgage?

Someone who is granted access to information but not expected to read it

Is it a good security practice to force employees hide their employer to avoid being targeted?

Are soroban (Japanese abacus) classes worth doing?

Reflecting Telescope Blind Spot?

What is the difference between state-based effects and effects on the stack?

Threading data on TimeSeries

The title "Mord mit Aussicht" explained

Struggling to present results from long papers in short time slots

What is the context for Napoleon's quote "[the Austrians] did not know the value of five minutes"?

Manager wants to hire me; HR does not. How to proceed?

Cant bend fingertip when finger is straight

Converting 3x7 to a 1x7. Is it possible with only existing parts?



Can somebody help me with the execute commands in Minecraft?


Minecraft disconnection timeout, aiding bad connection playersCommand block problem detecting armourWhat's wrong with this Minecraft /give command?How to colour item text in Vanilla minecraft?My command for minecraft executing a command at an entity won't workTestfor selected item?Is there a MC PC Commands to MC Bedrock Edition Commands?Armor stand help! Minecraft 1.13(Java Minecraft 1.13) Can I remove the shadow on an item's name?How do I create tools that only break certain blocks, and also have a colored name?






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








2















Recently, Minecraft had removed the /testfor command, which broke these sets of commands that I was trying to execute today.



/testfor @p[r=10] SelectedItem:id:"minecraft:feather",tag:display:Name:"Roc's Feather",Lore:[Jump higher using this feather.]`


Now normally, from Minecraft 1.13 onwards, the new /execute command would've been the replacement for the /testfor command, but as I soon found out, the command failed to detect my Roc's Feather and thus could not execute an /effect command that gave me a Jump Boost, for 1 second, at level 3.



I tried remaking my feather from scratch with this command here:



/give @p minecraft:featherdisplay:Name:""text":"Roc's Feather","color":"light_purple","bold":true,"italic":true,"underlined":false,"strikethrough":false,"obfuscated":false",Lore:[""text":"Jump higher using this feather.","bold":false,"italic":true,"underlined":false,"strikethrough":false,"obfuscated":false"] 1


But the execute command I placed did not detect this type of uniqueness.



/execute if entity @p[distance=10,nbt=SelectedItem:id:"minecraft:feather",Count:1b,tag:display:Name:""text":"Roc's Feather","color":"light_purple","bold":true,"italic":true,"underlined":false,"strikethrough":false,"obfuscated":false",Lore:[""text":"Jump higher using this feather.","bold":false,"italic":true,"underlined":false,"strikethrough":false,"obfuscated":false"]] run effect give @s minecraft:jump_boost 1 3 true


Can somebody tell me what I'm doing wrong here because I cannot even tell what's the issue.










share|improve this question
























  • Why would you want to use r=10000000000? I'm pretty sure the lore also previously had to be in quotation marks. Can you reduce the command to the minimum reproduction example, please? It's extremely long, with such a length a simple typo is the most likely cause for every error.

    – Fabian Röling
    Mar 26 at 21:30












  • Lowered the distance numbers for you.

    – Scorbunny
    Mar 27 at 2:52











  • Just out of curiosity, how were you targeting the player that is holding the feather, or was this intended to be single player only? I ask because I previously would have done this with scoreboard tags, and that method, for the most part, would not need to be changed with 1.13. Also, I have a general distaste for using testfor.

    – MBraedley
    Mar 27 at 14:45












  • Zelda map. Nice.

    – inakilbss
    Apr 2 at 13:26

















2















Recently, Minecraft had removed the /testfor command, which broke these sets of commands that I was trying to execute today.



/testfor @p[r=10] SelectedItem:id:"minecraft:feather",tag:display:Name:"Roc's Feather",Lore:[Jump higher using this feather.]`


Now normally, from Minecraft 1.13 onwards, the new /execute command would've been the replacement for the /testfor command, but as I soon found out, the command failed to detect my Roc's Feather and thus could not execute an /effect command that gave me a Jump Boost, for 1 second, at level 3.



I tried remaking my feather from scratch with this command here:



/give @p minecraft:featherdisplay:Name:""text":"Roc's Feather","color":"light_purple","bold":true,"italic":true,"underlined":false,"strikethrough":false,"obfuscated":false",Lore:[""text":"Jump higher using this feather.","bold":false,"italic":true,"underlined":false,"strikethrough":false,"obfuscated":false"] 1


But the execute command I placed did not detect this type of uniqueness.



/execute if entity @p[distance=10,nbt=SelectedItem:id:"minecraft:feather",Count:1b,tag:display:Name:""text":"Roc's Feather","color":"light_purple","bold":true,"italic":true,"underlined":false,"strikethrough":false,"obfuscated":false",Lore:[""text":"Jump higher using this feather.","bold":false,"italic":true,"underlined":false,"strikethrough":false,"obfuscated":false"]] run effect give @s minecraft:jump_boost 1 3 true


Can somebody tell me what I'm doing wrong here because I cannot even tell what's the issue.










share|improve this question
























  • Why would you want to use r=10000000000? I'm pretty sure the lore also previously had to be in quotation marks. Can you reduce the command to the minimum reproduction example, please? It's extremely long, with such a length a simple typo is the most likely cause for every error.

    – Fabian Röling
    Mar 26 at 21:30












  • Lowered the distance numbers for you.

    – Scorbunny
    Mar 27 at 2:52











  • Just out of curiosity, how were you targeting the player that is holding the feather, or was this intended to be single player only? I ask because I previously would have done this with scoreboard tags, and that method, for the most part, would not need to be changed with 1.13. Also, I have a general distaste for using testfor.

    – MBraedley
    Mar 27 at 14:45












  • Zelda map. Nice.

    – inakilbss
    Apr 2 at 13:26













2












2








2








Recently, Minecraft had removed the /testfor command, which broke these sets of commands that I was trying to execute today.



/testfor @p[r=10] SelectedItem:id:"minecraft:feather",tag:display:Name:"Roc's Feather",Lore:[Jump higher using this feather.]`


Now normally, from Minecraft 1.13 onwards, the new /execute command would've been the replacement for the /testfor command, but as I soon found out, the command failed to detect my Roc's Feather and thus could not execute an /effect command that gave me a Jump Boost, for 1 second, at level 3.



I tried remaking my feather from scratch with this command here:



/give @p minecraft:featherdisplay:Name:""text":"Roc's Feather","color":"light_purple","bold":true,"italic":true,"underlined":false,"strikethrough":false,"obfuscated":false",Lore:[""text":"Jump higher using this feather.","bold":false,"italic":true,"underlined":false,"strikethrough":false,"obfuscated":false"] 1


But the execute command I placed did not detect this type of uniqueness.



/execute if entity @p[distance=10,nbt=SelectedItem:id:"minecraft:feather",Count:1b,tag:display:Name:""text":"Roc's Feather","color":"light_purple","bold":true,"italic":true,"underlined":false,"strikethrough":false,"obfuscated":false",Lore:[""text":"Jump higher using this feather.","bold":false,"italic":true,"underlined":false,"strikethrough":false,"obfuscated":false"]] run effect give @s minecraft:jump_boost 1 3 true


Can somebody tell me what I'm doing wrong here because I cannot even tell what's the issue.










share|improve this question
















Recently, Minecraft had removed the /testfor command, which broke these sets of commands that I was trying to execute today.



/testfor @p[r=10] SelectedItem:id:"minecraft:feather",tag:display:Name:"Roc's Feather",Lore:[Jump higher using this feather.]`


Now normally, from Minecraft 1.13 onwards, the new /execute command would've been the replacement for the /testfor command, but as I soon found out, the command failed to detect my Roc's Feather and thus could not execute an /effect command that gave me a Jump Boost, for 1 second, at level 3.



I tried remaking my feather from scratch with this command here:



/give @p minecraft:featherdisplay:Name:""text":"Roc's Feather","color":"light_purple","bold":true,"italic":true,"underlined":false,"strikethrough":false,"obfuscated":false",Lore:[""text":"Jump higher using this feather.","bold":false,"italic":true,"underlined":false,"strikethrough":false,"obfuscated":false"] 1


But the execute command I placed did not detect this type of uniqueness.



/execute if entity @p[distance=10,nbt=SelectedItem:id:"minecraft:feather",Count:1b,tag:display:Name:""text":"Roc's Feather","color":"light_purple","bold":true,"italic":true,"underlined":false,"strikethrough":false,"obfuscated":false",Lore:[""text":"Jump higher using this feather.","bold":false,"italic":true,"underlined":false,"strikethrough":false,"obfuscated":false"]] run effect give @s minecraft:jump_boost 1 3 true


Can somebody tell me what I'm doing wrong here because I cannot even tell what's the issue.







minecraft minecraft-commands






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Mar 27 at 2:49







Scorbunny

















asked Mar 26 at 21:15









ScorbunnyScorbunny

112




112












  • Why would you want to use r=10000000000? I'm pretty sure the lore also previously had to be in quotation marks. Can you reduce the command to the minimum reproduction example, please? It's extremely long, with such a length a simple typo is the most likely cause for every error.

    – Fabian Röling
    Mar 26 at 21:30












  • Lowered the distance numbers for you.

    – Scorbunny
    Mar 27 at 2:52











  • Just out of curiosity, how were you targeting the player that is holding the feather, or was this intended to be single player only? I ask because I previously would have done this with scoreboard tags, and that method, for the most part, would not need to be changed with 1.13. Also, I have a general distaste for using testfor.

    – MBraedley
    Mar 27 at 14:45












  • Zelda map. Nice.

    – inakilbss
    Apr 2 at 13:26

















  • Why would you want to use r=10000000000? I'm pretty sure the lore also previously had to be in quotation marks. Can you reduce the command to the minimum reproduction example, please? It's extremely long, with such a length a simple typo is the most likely cause for every error.

    – Fabian Röling
    Mar 26 at 21:30












  • Lowered the distance numbers for you.

    – Scorbunny
    Mar 27 at 2:52











  • Just out of curiosity, how were you targeting the player that is holding the feather, or was this intended to be single player only? I ask because I previously would have done this with scoreboard tags, and that method, for the most part, would not need to be changed with 1.13. Also, I have a general distaste for using testfor.

    – MBraedley
    Mar 27 at 14:45












  • Zelda map. Nice.

    – inakilbss
    Apr 2 at 13:26
















Why would you want to use r=10000000000? I'm pretty sure the lore also previously had to be in quotation marks. Can you reduce the command to the minimum reproduction example, please? It's extremely long, with such a length a simple typo is the most likely cause for every error.

– Fabian Röling
Mar 26 at 21:30






Why would you want to use r=10000000000? I'm pretty sure the lore also previously had to be in quotation marks. Can you reduce the command to the minimum reproduction example, please? It's extremely long, with such a length a simple typo is the most likely cause for every error.

– Fabian Röling
Mar 26 at 21:30














Lowered the distance numbers for you.

– Scorbunny
Mar 27 at 2:52





Lowered the distance numbers for you.

– Scorbunny
Mar 27 at 2:52













Just out of curiosity, how were you targeting the player that is holding the feather, or was this intended to be single player only? I ask because I previously would have done this with scoreboard tags, and that method, for the most part, would not need to be changed with 1.13. Also, I have a general distaste for using testfor.

– MBraedley
Mar 27 at 14:45






Just out of curiosity, how were you targeting the player that is holding the feather, or was this intended to be single player only? I ask because I previously would have done this with scoreboard tags, and that method, for the most part, would not need to be changed with 1.13. Also, I have a general distaste for using testfor.

– MBraedley
Mar 27 at 14:45














Zelda map. Nice.

– inakilbss
Apr 2 at 13:26





Zelda map. Nice.

– inakilbss
Apr 2 at 13:26










3 Answers
3






active

oldest

votes


















3














One thing you might try in that final command is to change it from saying @a[distance=10] to @a[distance=..10] because in 1.13 they changed it so that ..10 is less than 10, 10 is exactly 10, and 10.. is greater than ten, with 1..10 being between 1 and 10. So unless you are exactly 10 blocks away nothing will happen.






share|improve this answer
































    1














    there are three things actually;



    1. keep in mind that you also need quotes around your text formatting, eg; "bold":"true".

    2. you don't necessarily need to add formatting if they're false; those tags don't exist if they're false, really, and just clog up your text.

    3. currently, saying distance=10 is looking for everyone at exactly 10 blocks. if you want people at more than 10, you need 10.., and for less, ..10.

    hope this helps!






    share|improve this answer























    • I tried your method. Unfortunately the command block wasn't able to detect my feather despite the changes I made that I followed.

      – Scorbunny
      Apr 22 at 12:47


















    0














    I was pretty obsessed with this problem so I did some tinkering.



    I eventually whittled down to the command:



    /execute as @p[distance=..10,nbt=SelectedItem:id:"minecraft:feather"] run effect give @s minecraft:jump_boost 1 3 true



    This includes suggestions from the other answers, but there are a few notable changes here.
    Firstly note that I'm not using the complete name of the item, for the sake of quick debugging.



    Nextly, I wasn't sure what a count:1b meant, rather than 1, so I eliminated it. I'd love to know.



    Most importantly, I changed from execute if entity @p[...] to execute as @p[...]. I did this because I noticed that in the latter half of the execute command (run effect give @s ...), that there is the @s target. This fails because the executor of the command is the command block, not the player. As @s gives the effect to the caster (here the command block), no player receives the effect. I changed the former half of the command (execute if entity ...) to execute as @p[...] here to make the player into the caster, effectively making @s the player.



    I was further tempted to then try the simplified command, which was successful:



    /effect give @p[distance=..10,nbt=SelectedItem:id:"minecraft:feather"] minecraft:jump_boost 1 3 true



    The distance constraint seems excessive at this point, but I left it for creator's sake.



    Thank you for loving one of my favourite games, Link's Awakening, and for inspiring me to help bring the spirit of LA into my Minecraft world. I hope to see great content from you in the future.






    share|improve this answer








    New contributor



    Samuel Waggoner is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
    Check out our Code of Conduct.



















    • After more research, I've learned a few more things: For the count, 1b is the formally correct way to specify a count of 1. The 'b' indicates that the number is in the bytes format, rather than an integer.

      – Samuel Waggoner
      20 mins ago











    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%2f348233%2fcan-somebody-help-me-with-the-execute-commands-in-minecraft%23new-answer', 'question_page');

    );

    Post as a guest















    Required, but never shown

























    3 Answers
    3






    active

    oldest

    votes








    3 Answers
    3






    active

    oldest

    votes









    active

    oldest

    votes






    active

    oldest

    votes









    3














    One thing you might try in that final command is to change it from saying @a[distance=10] to @a[distance=..10] because in 1.13 they changed it so that ..10 is less than 10, 10 is exactly 10, and 10.. is greater than ten, with 1..10 being between 1 and 10. So unless you are exactly 10 blocks away nothing will happen.






    share|improve this answer





























      3














      One thing you might try in that final command is to change it from saying @a[distance=10] to @a[distance=..10] because in 1.13 they changed it so that ..10 is less than 10, 10 is exactly 10, and 10.. is greater than ten, with 1..10 being between 1 and 10. So unless you are exactly 10 blocks away nothing will happen.






      share|improve this answer



























        3












        3








        3







        One thing you might try in that final command is to change it from saying @a[distance=10] to @a[distance=..10] because in 1.13 they changed it so that ..10 is less than 10, 10 is exactly 10, and 10.. is greater than ten, with 1..10 being between 1 and 10. So unless you are exactly 10 blocks away nothing will happen.






        share|improve this answer















        One thing you might try in that final command is to change it from saying @a[distance=10] to @a[distance=..10] because in 1.13 they changed it so that ..10 is less than 10, 10 is exactly 10, and 10.. is greater than ten, with 1..10 being between 1 and 10. So unless you are exactly 10 blocks away nothing will happen.







        share|improve this answer














        share|improve this answer



        share|improve this answer








        edited Mar 27 at 14:38









        MBraedley

        13.3k1788138




        13.3k1788138










        answered Mar 27 at 4:13









        Ethan SorensenEthan Sorensen

        311




        311























            1














            there are three things actually;



            1. keep in mind that you also need quotes around your text formatting, eg; "bold":"true".

            2. you don't necessarily need to add formatting if they're false; those tags don't exist if they're false, really, and just clog up your text.

            3. currently, saying distance=10 is looking for everyone at exactly 10 blocks. if you want people at more than 10, you need 10.., and for less, ..10.

            hope this helps!






            share|improve this answer























            • I tried your method. Unfortunately the command block wasn't able to detect my feather despite the changes I made that I followed.

              – Scorbunny
              Apr 22 at 12:47















            1














            there are three things actually;



            1. keep in mind that you also need quotes around your text formatting, eg; "bold":"true".

            2. you don't necessarily need to add formatting if they're false; those tags don't exist if they're false, really, and just clog up your text.

            3. currently, saying distance=10 is looking for everyone at exactly 10 blocks. if you want people at more than 10, you need 10.., and for less, ..10.

            hope this helps!






            share|improve this answer























            • I tried your method. Unfortunately the command block wasn't able to detect my feather despite the changes I made that I followed.

              – Scorbunny
              Apr 22 at 12:47













            1












            1








            1







            there are three things actually;



            1. keep in mind that you also need quotes around your text formatting, eg; "bold":"true".

            2. you don't necessarily need to add formatting if they're false; those tags don't exist if they're false, really, and just clog up your text.

            3. currently, saying distance=10 is looking for everyone at exactly 10 blocks. if you want people at more than 10, you need 10.., and for less, ..10.

            hope this helps!






            share|improve this answer













            there are three things actually;



            1. keep in mind that you also need quotes around your text formatting, eg; "bold":"true".

            2. you don't necessarily need to add formatting if they're false; those tags don't exist if they're false, really, and just clog up your text.

            3. currently, saying distance=10 is looking for everyone at exactly 10 blocks. if you want people at more than 10, you need 10.., and for less, ..10.

            hope this helps!







            share|improve this answer












            share|improve this answer



            share|improve this answer










            answered Apr 4 at 1:15









            EarthToAccessEarthToAccess

            56513




            56513












            • I tried your method. Unfortunately the command block wasn't able to detect my feather despite the changes I made that I followed.

              – Scorbunny
              Apr 22 at 12:47

















            • I tried your method. Unfortunately the command block wasn't able to detect my feather despite the changes I made that I followed.

              – Scorbunny
              Apr 22 at 12:47
















            I tried your method. Unfortunately the command block wasn't able to detect my feather despite the changes I made that I followed.

            – Scorbunny
            Apr 22 at 12:47





            I tried your method. Unfortunately the command block wasn't able to detect my feather despite the changes I made that I followed.

            – Scorbunny
            Apr 22 at 12:47











            0














            I was pretty obsessed with this problem so I did some tinkering.



            I eventually whittled down to the command:



            /execute as @p[distance=..10,nbt=SelectedItem:id:"minecraft:feather"] run effect give @s minecraft:jump_boost 1 3 true



            This includes suggestions from the other answers, but there are a few notable changes here.
            Firstly note that I'm not using the complete name of the item, for the sake of quick debugging.



            Nextly, I wasn't sure what a count:1b meant, rather than 1, so I eliminated it. I'd love to know.



            Most importantly, I changed from execute if entity @p[...] to execute as @p[...]. I did this because I noticed that in the latter half of the execute command (run effect give @s ...), that there is the @s target. This fails because the executor of the command is the command block, not the player. As @s gives the effect to the caster (here the command block), no player receives the effect. I changed the former half of the command (execute if entity ...) to execute as @p[...] here to make the player into the caster, effectively making @s the player.



            I was further tempted to then try the simplified command, which was successful:



            /effect give @p[distance=..10,nbt=SelectedItem:id:"minecraft:feather"] minecraft:jump_boost 1 3 true



            The distance constraint seems excessive at this point, but I left it for creator's sake.



            Thank you for loving one of my favourite games, Link's Awakening, and for inspiring me to help bring the spirit of LA into my Minecraft world. I hope to see great content from you in the future.






            share|improve this answer








            New contributor



            Samuel Waggoner is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
            Check out our Code of Conduct.



















            • After more research, I've learned a few more things: For the count, 1b is the formally correct way to specify a count of 1. The 'b' indicates that the number is in the bytes format, rather than an integer.

              – Samuel Waggoner
              20 mins ago















            0














            I was pretty obsessed with this problem so I did some tinkering.



            I eventually whittled down to the command:



            /execute as @p[distance=..10,nbt=SelectedItem:id:"minecraft:feather"] run effect give @s minecraft:jump_boost 1 3 true



            This includes suggestions from the other answers, but there are a few notable changes here.
            Firstly note that I'm not using the complete name of the item, for the sake of quick debugging.



            Nextly, I wasn't sure what a count:1b meant, rather than 1, so I eliminated it. I'd love to know.



            Most importantly, I changed from execute if entity @p[...] to execute as @p[...]. I did this because I noticed that in the latter half of the execute command (run effect give @s ...), that there is the @s target. This fails because the executor of the command is the command block, not the player. As @s gives the effect to the caster (here the command block), no player receives the effect. I changed the former half of the command (execute if entity ...) to execute as @p[...] here to make the player into the caster, effectively making @s the player.



            I was further tempted to then try the simplified command, which was successful:



            /effect give @p[distance=..10,nbt=SelectedItem:id:"minecraft:feather"] minecraft:jump_boost 1 3 true



            The distance constraint seems excessive at this point, but I left it for creator's sake.



            Thank you for loving one of my favourite games, Link's Awakening, and for inspiring me to help bring the spirit of LA into my Minecraft world. I hope to see great content from you in the future.






            share|improve this answer








            New contributor



            Samuel Waggoner is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
            Check out our Code of Conduct.



















            • After more research, I've learned a few more things: For the count, 1b is the formally correct way to specify a count of 1. The 'b' indicates that the number is in the bytes format, rather than an integer.

              – Samuel Waggoner
              20 mins ago













            0












            0








            0







            I was pretty obsessed with this problem so I did some tinkering.



            I eventually whittled down to the command:



            /execute as @p[distance=..10,nbt=SelectedItem:id:"minecraft:feather"] run effect give @s minecraft:jump_boost 1 3 true



            This includes suggestions from the other answers, but there are a few notable changes here.
            Firstly note that I'm not using the complete name of the item, for the sake of quick debugging.



            Nextly, I wasn't sure what a count:1b meant, rather than 1, so I eliminated it. I'd love to know.



            Most importantly, I changed from execute if entity @p[...] to execute as @p[...]. I did this because I noticed that in the latter half of the execute command (run effect give @s ...), that there is the @s target. This fails because the executor of the command is the command block, not the player. As @s gives the effect to the caster (here the command block), no player receives the effect. I changed the former half of the command (execute if entity ...) to execute as @p[...] here to make the player into the caster, effectively making @s the player.



            I was further tempted to then try the simplified command, which was successful:



            /effect give @p[distance=..10,nbt=SelectedItem:id:"minecraft:feather"] minecraft:jump_boost 1 3 true



            The distance constraint seems excessive at this point, but I left it for creator's sake.



            Thank you for loving one of my favourite games, Link's Awakening, and for inspiring me to help bring the spirit of LA into my Minecraft world. I hope to see great content from you in the future.






            share|improve this answer








            New contributor



            Samuel Waggoner is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
            Check out our Code of Conduct.









            I was pretty obsessed with this problem so I did some tinkering.



            I eventually whittled down to the command:



            /execute as @p[distance=..10,nbt=SelectedItem:id:"minecraft:feather"] run effect give @s minecraft:jump_boost 1 3 true



            This includes suggestions from the other answers, but there are a few notable changes here.
            Firstly note that I'm not using the complete name of the item, for the sake of quick debugging.



            Nextly, I wasn't sure what a count:1b meant, rather than 1, so I eliminated it. I'd love to know.



            Most importantly, I changed from execute if entity @p[...] to execute as @p[...]. I did this because I noticed that in the latter half of the execute command (run effect give @s ...), that there is the @s target. This fails because the executor of the command is the command block, not the player. As @s gives the effect to the caster (here the command block), no player receives the effect. I changed the former half of the command (execute if entity ...) to execute as @p[...] here to make the player into the caster, effectively making @s the player.



            I was further tempted to then try the simplified command, which was successful:



            /effect give @p[distance=..10,nbt=SelectedItem:id:"minecraft:feather"] minecraft:jump_boost 1 3 true



            The distance constraint seems excessive at this point, but I left it for creator's sake.



            Thank you for loving one of my favourite games, Link's Awakening, and for inspiring me to help bring the spirit of LA into my Minecraft world. I hope to see great content from you in the future.







            share|improve this answer








            New contributor



            Samuel Waggoner is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
            Check out our Code of Conduct.








            share|improve this answer



            share|improve this answer






            New contributor



            Samuel Waggoner is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
            Check out our Code of Conduct.








            answered 58 mins ago









            Samuel WaggonerSamuel Waggoner

            1




            1




            New contributor



            Samuel Waggoner is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
            Check out our Code of Conduct.




            New contributor




            Samuel Waggoner is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
            Check out our Code of Conduct.














            • After more research, I've learned a few more things: For the count, 1b is the formally correct way to specify a count of 1. The 'b' indicates that the number is in the bytes format, rather than an integer.

              – Samuel Waggoner
              20 mins ago

















            • After more research, I've learned a few more things: For the count, 1b is the formally correct way to specify a count of 1. The 'b' indicates that the number is in the bytes format, rather than an integer.

              – Samuel Waggoner
              20 mins ago
















            After more research, I've learned a few more things: For the count, 1b is the formally correct way to specify a count of 1. The 'b' indicates that the number is in the bytes format, rather than an integer.

            – Samuel Waggoner
            20 mins ago





            After more research, I've learned a few more things: For the count, 1b is the formally correct way to specify a count of 1. The 'b' indicates that the number is in the bytes format, rather than an integer.

            – Samuel Waggoner
            20 mins ago

















            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%2f348233%2fcan-somebody-help-me-with-the-execute-commands-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. јануар Садржај Догађаји Рођења Смрти Празници и дани сећања Види још Референце Мени за навигацијуу