X

NOTICE

Are you sure you want to report this?

We've split up the commands, scripting and mods, and add ons category! Please be sure you get your thread in the right place.

83

be able to add multiple commands into one command block

14 Comments

Post a new comment:

Please sign in to leave a comment.

  • 0
    Arya Krysa commented
    Comment actions Permalink

    That would be extremely useful to everyone, not just "lazy" people. Big commands would take up a lot less space and time.

  • 0
    Comment actions Permalink

    That's why we have the functions

  • 0
    raity41 commented
    Comment actions Permalink

    Having commands in separate command blocks makes it easier to find what commands need fixing and the order commands should go. (I think so anyways.)

  • 0
    tryashtar commented
    Comment actions Permalink

    Yep, functions exist and can do this! :)

  • 0
    Comment actions Permalink

    I had that idea too! Looks like ya got me covered. It would help a lot for us lazy noobs. Ya vote my vote!

  • 0
    Comment actions Permalink

    Cool

  • 0
    lohkdesgds commented
    Comment actions Permalink

    You can do multiple functions, then make one calling each one in sequence, so then you can see it as "blocks" in one command in a block.

    Example:

    functions/
      myfunc/
        f1.mcfunction
        f2.mcfunction
        f3.mcfunction
        f4.mcfunction
      all_fs.mcfunction


    then on each fx you put whatever you want and then call all of them in sequence on the all_fs.mcfunction one.

    (I doubt it would be easier than just creating a single file like any other programming language. Chunks of code is awesome. Create some files with some code and you're good to go)

  • 0
    Comment actions Permalink

    You can use Done Command Bloc Machines Generators! :)

  • 0
    knowmet commented
    Comment actions Permalink

    you can already do that

    /summon minecraft:command_block_minecart ~ ~ ~ {Command:"/setblock ~ ~-1 ~ Minecraft:detector_rail"{,PassengerID:"minecraft:command_block_minecart"{command:"/summon minecraft:bat"}}

    I think it is something like that

  • 0
    Comment actions Permalink

    In Bedrock, "/function" exists now making this suggestion fulfilled. 
    NOTE: You cannot use "conditional" tests, so to use some conditional mid-way, something like "/execute" is needed.

  • 0
    Hulunabc commented
    Comment actions Permalink

    Good idea.

    I also suggest that multiple commands be a subcommand of one /execute.

  • 0
    TheLudGamr commented
    Comment actions Permalink

    ... this is the mods and scripting section

  • 0
    Vince R commented
    Comment actions Permalink

    Two solutions:

    1. Chain command blocks. They make it easier for debugging

    2. Functions

  • 0
    Comment actions Permalink

    Yes it would