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

215

be able to add multiple commands into one command block

24 Comments

Please sign in to leave a comment.

Sorted by oldest
  • 9
    Registered User 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.

  • 12
    Registered User commented
    Comment actions Permalink

    That's why we have the functions

  • 1
    Registered User 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.)

  • 3
    Registered User commented
    Comment actions Permalink

    Yep, functions exist and can do this! :)

  • 2
    Registered User commented
    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
    Registered User commented
    Comment actions Permalink

    Cool

  • 2
    Registered User 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
    Registered User commented
    Comment actions Permalink

    You can use Done Command Bloc Machines Generators! :)

  • 2
    Registered User 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
    Registered User commented
    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.

  • 2
    Registered User commented
    Comment actions Permalink

    Good idea.

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

  • 0
    Registered User commented
    Comment actions Permalink

    ... this is the mods and scripting section

  • 1
    Registered User commented
    Comment actions Permalink

    Two solutions:

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

    2. Functions

  • 1
    Registered User commented
    Comment actions Permalink

    Yes it would

     

  • 1
    Registered User commented
    Comment actions Permalink

    Hek yes

     

  • 1
    Registered User commented
    Comment actions Permalink

    "function" can do it

  • 2
    Registered User commented
    Comment actions Permalink

    We really don't need it, we have datapacks.

  • 3
    Registered User commented
    Comment actions Permalink

    Add a function block to allow you to create functions in-game. This would be easier to test than a datapack, and then could be translated to a datapack so you can upload it to the internet or add it to other worlds easier.

  • 1
    Registered User commented
    Comment actions Permalink

    I'm on xbox and can't run functions, thus I NEED IT!

  • 0
    Registered User commented
    Comment actions Permalink

    you can already do this with /execute.... 2 at max

  • 1
    Registered User commented
    Comment actions Permalink

    We need this!

  • 0
    Registered User commented
    Comment actions Permalink

    Allow me to play multiple players

  • 0
    Registered User commented
    Comment actions Permalink

    This idea would be so useful

  • 0
    Registered User commented
    Comment actions Permalink

    We and use multiple commands in one command block with th exacute command