1

Using /setblock to make another commandblock

SlaimCraft's Avatar SlaimCraft10/16/13 12:21 pm
1 emeralds 322 3
10/16/2013 1:03 pm
treyishuman's Avatar treyishuman
Hey, I wanna use /setblock to create another commandblock but I'm not sure how to do it.

/setblock ~0 ~5 ~0 minecraft:command_block 0 replace ???

is as far as I got. How do I write the command that goes inside the spawned command block?

Starting simple, say I want the spawned commandblock to contain /tp @p[team=red] 0 64 0
how would I write that inside the first commandblock?
Posted by SlaimCraft's Avatar
SlaimCraft
Level 48 : Master Architect
73

Create an account or sign in to comment.

3

1
10/16/2013 1:03 pm
Level 22 : Expert Button Pusher
treyishuman
treyishuman's Avatar
That was quick, glad he could help.
1
10/16/2013 12:35 pm
Level 48 : Master Architect
SlaimCraft
SlaimCraft's Avatar
Gosh, thank you, {Command:/tp @p[team=red] 0 64 0} was the part I was after.

I had been trying for a long time but it seems I used too many parenthesis where none was needed. Thanks.
1
10/16/2013 12:31 pm
Level 10 : Journeyman Miner
anonpmc476721
anonpmc476721's Avatar
[deleted]
Planet Minecraft

Website

© 2010 - 2024
www.planetminecraft.com

Welcome