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?
Thanks for the help,
And have a nice day!
Stay You!
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.
This command is then followed up by many more.
Thanks for the help,
And have a nice day!
Stay You!
7
Go to the one command block creator. It's very hard if you do it manually.
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.
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.
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.
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!
/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!
Jetra's post is probably more what you're looking for.
Type this command: /setblock ~ ~ ~ command_block 0 {Command:"entitydata @e[type=ArmorStand,r=5] {ShowArms:1}"}
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:
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.
/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:/executeIs 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.
