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.

158

be able to add multiple commands into one command block

21 Comments

Post a new comment:

Please sign in to leave a comment.

Sorted by oldest
  • 6
    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.

  • 8
    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.)

  • 1
    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

  • 1
    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! :)

  • 1
    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

     

  • 0
    Registered User commented
    Comment actions Permalink

    "function" can do it

  • 1
    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!