-2

This question already has an answer here:

I want to know how to put 2 commands in the same command block, but I don't know how. I think I need to use /execute, but that might not work. If you have ideas, please tell me. That would be greatly appreciated for me and other people.

marked as duplicate by Schism, dly, greg-449, Lore Friendly, Joachim Jun 25 at 9:14

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

  • Please do not say I need to use 2 command blocks. – fishfinboy1 Aug 6 '17 at 19:36
  • 2
    What is it exactly that you want to accomplish? The /execute command is the only command that takes a second command as a parameter, but you can also use /setblock to create a second command block that has a different command, or you could /summon a command block falling sand entity that has other command block falling sand entities as passengers. You can also call a function from a command block that runs a whole bunch of commands. – MBraedley Aug 6 '17 at 20:23
  • 2
    What two commands are you trying to use? What are you trying to accomplish with them? What have you tried already? Specific questions are more likely to get the answer you are looking for. – IronAnvil Aug 6 '17 at 22:33
  • @MBraedley How do you turn the falling sand into command blocks though? – fishfinboy1 Aug 7 '17 at 14:20
  • @fishfinboy1 You are right /execute allows you to have 2 commands in 1 command block but the /execute command counts as one of those commands for instance the command /execute @a ~ ~ ~ detect ~ ~-1 ~ minecraft:grass 0 /setblock ~ ~-1 ~ minecraft:diamond_block sets a diamond block under the player when he steps on grass but /execute is used mainly for detecting when the player touches something and then running a command when that happens. – Emptyisme Aug 9 '17 at 16:12
0

Use a .mcfunction file for your world

They allow for multiple command in a single command block.

-3

Sorry to bear bad news but you have to use 2 command blocks

  • Wait but for /execute you can /execute (player name) (coordinator – user194510 Aug 6 '17 at 19:44

Not the answer you're looking for? Browse other questions tagged or ask your own question.