How do I detect an entity with a certain name and replace it with a multi-block structure?












-2














I'm building a map in which the player needs to take a raft. The player is meant to place down a birch boat named "Raft" and when it's placed down, the boat is removed and replaced with an actual raft made of yellow wool. How would I go about doing this?










share|improve this question









New contributor




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
















  • 1




    What have you tried so far? Or is this a "do my project for me" question?
    – Fabian Röling
    Jan 5 at 10:58










  • I have tried using scoreboards, but I can't figure out how to get the coordinates of the entity and place a block there. Also, please stop being so conclusive.
    – Aiden cook
    Jan 5 at 21:11










  • "conclusive"? How can that word describe a person? Anyway, saying "I tried using scoreboards" is like answering "a black one" to the question what computer you have. It's not wrong, but also not helpful. Scoreboards are a tool, not a plan or a solution on their own. What is your plan? What have you researched, tried, considered, …? I recommend reading the tour and a bit of the [help center], where it says that askers are supposed to put effort into their question, for example reducing their problem to exactly the thing they have problems with and what they tried so far.
    – Fabian Röling
    Jan 5 at 23:10










  • I figured it out. I used testfor, execute, and clone commands. It's not flawless, but it works nicely. It took me several hours of research and work, before and after your message, but I'm happy with the result that I fully came up with, without asking someone to "do my project for me." Thanks for your help.
    – Aiden cook
    2 days ago








  • 1




    Then you can write an answer, that way people in the future can find it if they have the same problem.
    – Fabian Röling
    2 days ago
















-2














I'm building a map in which the player needs to take a raft. The player is meant to place down a birch boat named "Raft" and when it's placed down, the boat is removed and replaced with an actual raft made of yellow wool. How would I go about doing this?










share|improve this question









New contributor




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
















  • 1




    What have you tried so far? Or is this a "do my project for me" question?
    – Fabian Röling
    Jan 5 at 10:58










  • I have tried using scoreboards, but I can't figure out how to get the coordinates of the entity and place a block there. Also, please stop being so conclusive.
    – Aiden cook
    Jan 5 at 21:11










  • "conclusive"? How can that word describe a person? Anyway, saying "I tried using scoreboards" is like answering "a black one" to the question what computer you have. It's not wrong, but also not helpful. Scoreboards are a tool, not a plan or a solution on their own. What is your plan? What have you researched, tried, considered, …? I recommend reading the tour and a bit of the [help center], where it says that askers are supposed to put effort into their question, for example reducing their problem to exactly the thing they have problems with and what they tried so far.
    – Fabian Röling
    Jan 5 at 23:10










  • I figured it out. I used testfor, execute, and clone commands. It's not flawless, but it works nicely. It took me several hours of research and work, before and after your message, but I'm happy with the result that I fully came up with, without asking someone to "do my project for me." Thanks for your help.
    – Aiden cook
    2 days ago








  • 1




    Then you can write an answer, that way people in the future can find it if they have the same problem.
    – Fabian Röling
    2 days ago














-2












-2








-2







I'm building a map in which the player needs to take a raft. The player is meant to place down a birch boat named "Raft" and when it's placed down, the boat is removed and replaced with an actual raft made of yellow wool. How would I go about doing this?










share|improve this question









New contributor




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











I'm building a map in which the player needs to take a raft. The player is meant to place down a birch boat named "Raft" and when it's placed down, the boat is removed and replaced with an actual raft made of yellow wool. How would I go about doing this?







minecraft






share|improve this question









New contributor




Aiden cook 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 question









New contributor




Aiden cook 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 question




share|improve this question








edited Jan 5 at 6:29







Aiden cook













New contributor




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









asked Jan 5 at 1:45









Aiden cookAiden cook

13




13




New contributor




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





New contributor





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






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








  • 1




    What have you tried so far? Or is this a "do my project for me" question?
    – Fabian Röling
    Jan 5 at 10:58










  • I have tried using scoreboards, but I can't figure out how to get the coordinates of the entity and place a block there. Also, please stop being so conclusive.
    – Aiden cook
    Jan 5 at 21:11










  • "conclusive"? How can that word describe a person? Anyway, saying "I tried using scoreboards" is like answering "a black one" to the question what computer you have. It's not wrong, but also not helpful. Scoreboards are a tool, not a plan or a solution on their own. What is your plan? What have you researched, tried, considered, …? I recommend reading the tour and a bit of the [help center], where it says that askers are supposed to put effort into their question, for example reducing their problem to exactly the thing they have problems with and what they tried so far.
    – Fabian Röling
    Jan 5 at 23:10










  • I figured it out. I used testfor, execute, and clone commands. It's not flawless, but it works nicely. It took me several hours of research and work, before and after your message, but I'm happy with the result that I fully came up with, without asking someone to "do my project for me." Thanks for your help.
    – Aiden cook
    2 days ago








  • 1




    Then you can write an answer, that way people in the future can find it if they have the same problem.
    – Fabian Röling
    2 days ago














  • 1




    What have you tried so far? Or is this a "do my project for me" question?
    – Fabian Röling
    Jan 5 at 10:58










  • I have tried using scoreboards, but I can't figure out how to get the coordinates of the entity and place a block there. Also, please stop being so conclusive.
    – Aiden cook
    Jan 5 at 21:11










  • "conclusive"? How can that word describe a person? Anyway, saying "I tried using scoreboards" is like answering "a black one" to the question what computer you have. It's not wrong, but also not helpful. Scoreboards are a tool, not a plan or a solution on their own. What is your plan? What have you researched, tried, considered, …? I recommend reading the tour and a bit of the [help center], where it says that askers are supposed to put effort into their question, for example reducing their problem to exactly the thing they have problems with and what they tried so far.
    – Fabian Röling
    Jan 5 at 23:10










  • I figured it out. I used testfor, execute, and clone commands. It's not flawless, but it works nicely. It took me several hours of research and work, before and after your message, but I'm happy with the result that I fully came up with, without asking someone to "do my project for me." Thanks for your help.
    – Aiden cook
    2 days ago








  • 1




    Then you can write an answer, that way people in the future can find it if they have the same problem.
    – Fabian Röling
    2 days ago








1




1




What have you tried so far? Or is this a "do my project for me" question?
– Fabian Röling
Jan 5 at 10:58




What have you tried so far? Or is this a "do my project for me" question?
– Fabian Röling
Jan 5 at 10:58












I have tried using scoreboards, but I can't figure out how to get the coordinates of the entity and place a block there. Also, please stop being so conclusive.
– Aiden cook
Jan 5 at 21:11




I have tried using scoreboards, but I can't figure out how to get the coordinates of the entity and place a block there. Also, please stop being so conclusive.
– Aiden cook
Jan 5 at 21:11












"conclusive"? How can that word describe a person? Anyway, saying "I tried using scoreboards" is like answering "a black one" to the question what computer you have. It's not wrong, but also not helpful. Scoreboards are a tool, not a plan or a solution on their own. What is your plan? What have you researched, tried, considered, …? I recommend reading the tour and a bit of the [help center], where it says that askers are supposed to put effort into their question, for example reducing their problem to exactly the thing they have problems with and what they tried so far.
– Fabian Röling
Jan 5 at 23:10




"conclusive"? How can that word describe a person? Anyway, saying "I tried using scoreboards" is like answering "a black one" to the question what computer you have. It's not wrong, but also not helpful. Scoreboards are a tool, not a plan or a solution on their own. What is your plan? What have you researched, tried, considered, …? I recommend reading the tour and a bit of the [help center], where it says that askers are supposed to put effort into their question, for example reducing their problem to exactly the thing they have problems with and what they tried so far.
– Fabian Röling
Jan 5 at 23:10












I figured it out. I used testfor, execute, and clone commands. It's not flawless, but it works nicely. It took me several hours of research and work, before and after your message, but I'm happy with the result that I fully came up with, without asking someone to "do my project for me." Thanks for your help.
– Aiden cook
2 days ago






I figured it out. I used testfor, execute, and clone commands. It's not flawless, but it works nicely. It took me several hours of research and work, before and after your message, but I'm happy with the result that I fully came up with, without asking someone to "do my project for me." Thanks for your help.
– Aiden cook
2 days ago






1




1




Then you can write an answer, that way people in the future can find it if they have the same problem.
– Fabian Röling
2 days ago




Then you can write an answer, that way people in the future can find it if they have the same problem.
– Fabian Röling
2 days ago










1 Answer
1






active

oldest

votes


















0














In order to make this task possible you will need two command blocks in a chain. The first one repeating always active and the second one chain always active and conditional.



The first command block could be “redstone active” or “always active” it will be set to repeating meaning it will happen 20 times every second or once every .05 seconds. Next put it on unconditional because there is no command block before it. Write the command /execute @e[type=boat,name=raft] ~ ~ ~ fill ~5 ~ ~5 ~-5 ~ ~-5 wool 4



The second command block could be both as well but must be powered when the top one is and vise versa. As for command block type it must be chain so it will activate after the repeating command block if powered. Last setting is the “conditional/unconditional” turn it to conditional so it will only work if the first one works. Set the command to /kill @e[type=boat,name=raft]




SUMMARY: First command block find “raft” and makes a 5 by 5 platform of yellow wool. Second command kills the “raft(s)” found.






share








New contributor




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


















    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
    });


    }
    });






    Aiden cook is a new contributor. Be nice, and check out our Code of Conduct.










    draft saved

    draft discarded


















    StackExchange.ready(
    function () {
    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fgaming.stackexchange.com%2fquestions%2f344464%2fhow-do-i-detect-an-entity-with-a-certain-name-and-replace-it-with-a-multi-block%23new-answer', 'question_page');
    }
    );

    Post as a guest















    Required, but never shown

























    1 Answer
    1






    active

    oldest

    votes








    1 Answer
    1






    active

    oldest

    votes









    active

    oldest

    votes






    active

    oldest

    votes









    0














    In order to make this task possible you will need two command blocks in a chain. The first one repeating always active and the second one chain always active and conditional.



    The first command block could be “redstone active” or “always active” it will be set to repeating meaning it will happen 20 times every second or once every .05 seconds. Next put it on unconditional because there is no command block before it. Write the command /execute @e[type=boat,name=raft] ~ ~ ~ fill ~5 ~ ~5 ~-5 ~ ~-5 wool 4



    The second command block could be both as well but must be powered when the top one is and vise versa. As for command block type it must be chain so it will activate after the repeating command block if powered. Last setting is the “conditional/unconditional” turn it to conditional so it will only work if the first one works. Set the command to /kill @e[type=boat,name=raft]




    SUMMARY: First command block find “raft” and makes a 5 by 5 platform of yellow wool. Second command kills the “raft(s)” found.






    share








    New contributor




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























      0














      In order to make this task possible you will need two command blocks in a chain. The first one repeating always active and the second one chain always active and conditional.



      The first command block could be “redstone active” or “always active” it will be set to repeating meaning it will happen 20 times every second or once every .05 seconds. Next put it on unconditional because there is no command block before it. Write the command /execute @e[type=boat,name=raft] ~ ~ ~ fill ~5 ~ ~5 ~-5 ~ ~-5 wool 4



      The second command block could be both as well but must be powered when the top one is and vise versa. As for command block type it must be chain so it will activate after the repeating command block if powered. Last setting is the “conditional/unconditional” turn it to conditional so it will only work if the first one works. Set the command to /kill @e[type=boat,name=raft]




      SUMMARY: First command block find “raft” and makes a 5 by 5 platform of yellow wool. Second command kills the “raft(s)” found.






      share








      New contributor




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





















        0












        0








        0






        In order to make this task possible you will need two command blocks in a chain. The first one repeating always active and the second one chain always active and conditional.



        The first command block could be “redstone active” or “always active” it will be set to repeating meaning it will happen 20 times every second or once every .05 seconds. Next put it on unconditional because there is no command block before it. Write the command /execute @e[type=boat,name=raft] ~ ~ ~ fill ~5 ~ ~5 ~-5 ~ ~-5 wool 4



        The second command block could be both as well but must be powered when the top one is and vise versa. As for command block type it must be chain so it will activate after the repeating command block if powered. Last setting is the “conditional/unconditional” turn it to conditional so it will only work if the first one works. Set the command to /kill @e[type=boat,name=raft]




        SUMMARY: First command block find “raft” and makes a 5 by 5 platform of yellow wool. Second command kills the “raft(s)” found.






        share








        New contributor




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









        In order to make this task possible you will need two command blocks in a chain. The first one repeating always active and the second one chain always active and conditional.



        The first command block could be “redstone active” or “always active” it will be set to repeating meaning it will happen 20 times every second or once every .05 seconds. Next put it on unconditional because there is no command block before it. Write the command /execute @e[type=boat,name=raft] ~ ~ ~ fill ~5 ~ ~5 ~-5 ~ ~-5 wool 4



        The second command block could be both as well but must be powered when the top one is and vise versa. As for command block type it must be chain so it will activate after the repeating command block if powered. Last setting is the “conditional/unconditional” turn it to conditional so it will only work if the first one works. Set the command to /kill @e[type=boat,name=raft]




        SUMMARY: First command block find “raft” and makes a 5 by 5 platform of yellow wool. Second command kills the “raft(s)” found.







        share








        New contributor




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








        share


        share






        New contributor




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









        answered 8 mins ago









        BratworstBratworst

        587




        587




        New contributor




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





        New contributor





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






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






















            Aiden cook is a new contributor. Be nice, and check out our Code of Conduct.










            draft saved

            draft discarded


















            Aiden cook is a new contributor. Be nice, and check out our Code of Conduct.













            Aiden cook is a new contributor. Be nice, and check out our Code of Conduct.












            Aiden cook is a new contributor. Be nice, and check out our Code of Conduct.
















            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.





            Some of your past answers have not been well-received, and you're in danger of being blocked from answering.


            Please pay close attention to the following guidance:


            • 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%2f344464%2fhow-do-i-detect-an-entity-with-a-certain-name-and-replace-it-with-a-multi-block%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

            Fluorita

            Hulsita

            Península de Txukotka