1

Command Block Problems

Stubbs1 •8/14/15 5:48 pm
•
323
•
8/15/2015 6:33 am
Hello Everyone!
Today I want to talk about Command Blocks. Yes those blocks that can do amazing things!

Now, Currently I'm working on a sculpture in Minecraft, but instead of constantly having to place a million Command Blocks, Activate all of them, and so on, I'm trying to make it simpler. How? Well you know how those giant "Furniture in Vanilla Mincraft!" and all that spawns these big rooms filled with commandblocks?

That's what I'm creating. However I ran into a problem since I couldn't figure out how to spawn a Command Block, with a command already inside it.

So my question is today:
How do I summon a CommandBlock with a Command already inside?

Extra Details
The command I need inside it is: entitydata @e[type=ArmorStand,r=5] {ShowArms:1}

This command is then followed up by many more.



Thanks for the help,
And have a nice day!

Stay You!
Posted by
Stubbs1
Retired Moderator
Level 75 : Legendary uwu Senpai
1,692

  Have something to say?

Join • Sign in

7

XtremewolvesR
• 08/15/2015 6:33 am
• Level 1 : New Miner
Go to the one command block creator. It's very hard if you do it manually.
1
Pepijn
• 08/15/2015 6:17 am
• Level 58 : Grandmaster Cyborg
Codes from those "one commandblock" thingies are, as far as I know, always complete and you don't have to add {} or [] to them yourself.
1
Stubbs1
• 08/15/2015 5:53 am
He/Him • Level 75 : Legendary uwu Senpai
Thanks guys!

And Jetra, I know there's a lot of those "One command Creations" however, I don't I mentioned it in my first post, but those codes you use to execute a command. I have no idea how, and where to place the {} and [] right, so most of the time I downloaded a 1 Command creation and copied it. The message would just be "{} or [] is missing".

But thanks anyway!

And have a nice day.
1
tomatotownn
• 08/15/2015 5:40 am
• Level 41 : Master Sailor
Quite simply put in a command block this:
/setblock ~ ~1 ~ command_block 1 replace {Command:"entitydata @e[type=ArmorStand,r=5] {ShowArms:1} "}
It will setblock a command block with the command in it!
1
JozyP
• 08/15/2015 12:40 am
• Level 42 : Master Pixel Painter
Jetra's post is probably more what you're looking for.
1
JozyP
• 08/15/2015 12:38 am
• Level 42 : Master Pixel Painter
Type this command: /setblock ~ ~ ~ command_block 0 {Command:"entitydata @e[type=ArmorStand,r=5] {ShowArms:1}"}
1
Jetra
• 08/15/2015 12:19 am
He/Him • Level 40 : Master Scribe Mage
By the power of the internet and some reverse engineering from https://www.youtube.com/watch?v=sjl9YLIo2Po which has a pastebin of the code needed, it looks like:

/summon FallingSand ~ ~1 ~ {Block:redstone_block,Time:1,DropItem:0,Riding:{id:"FallingSand",Block:command_block,TileEntityData:{Command:/fill ~1 ~1 ~ ~-1 ~-33 ~ air 0},Time:1,DropItem:0,Riding:{id:"FallingSand",Block:stained_hardened_clay,Data:14,Time:1,DropItem:0,Riding:{id:"FallingSand",Block:redstone_block,Time:1,DropItem:0,Riding:{id:"FallingSand",Block:command_block,TileEntityData:{Command:/fill ~1 ~-1 ~ ~1 ~-3 ~ redstone_block},Time:1,DropItem:0,Riding:{id:"FallingSand",Block:command_block,TileEntityData:{Command:/summon FallingSand ~ ~-19 ~11 {Block:command_block,TileEntityData:{Command:/execute

Is the main command that will let you place a command block with a command inside given the /execute function. There's far too much to post here and there's already a dozen of One Command creations that you can break apart.

Basically you want to do /summon FallingSand ~ ~1 ~ {Block:command_block /execute... where FallingSand gives it the gravity property of sand, the XYZ is approximately 1 above your position so that it'll fall on the ground and not end up like in the ground or forty feet in the air.
1

Welcome