Using /setblock:
As of 1.7.2, Mojang implemented a feature into mine craft that would forever change the way mapmakers view blocks, /setblock. The setblock command essentially allows a command block (or player) to remotely place blocks into the world. Here's the syntax:
Start your command with /setblock followed by the coordinates of where the block should be placed. After the coordinates goes the alphabetical ID of the block being placed (NOTE: Future versions of mine craft will not support numerical ID's, so for a full list of alphabetical ID's, go HERE.). Following the block ID is the block data. Most blocks will have a data of 0, but some block (like wool or logs) heavily depend on data values to change their appearance. The method of which the block is placed after the data value. There are three methods available: "keep" summons the block if the space is empty, "replace" will set the specified block no matter what it formally was, and "destroy" will set the block as well as display the particles of the block being destroyed.
Compared to other commands, /setblock doesn't much in the way of data tags, but here are some that are worthy to note:
The above will set the block above the command block to a skull with my skin on it, you can change the name to make it anyone else's.
For a full list of setblock data tags, go HERE.
Ta-Daa! You have now learn't how to use /setblock. As always, here is a command that shows the full extent of /setblock:
As of 1.7.2, Mojang implemented a feature into mine craft that would forever change the way mapmakers view blocks, /setblock. The setblock command essentially allows a command block (or player) to remotely place blocks into the world. Here's the syntax:
Start your command with /setblock followed by the coordinates of where the block should be placed. After the coordinates goes the alphabetical ID of the block being placed (NOTE: Future versions of mine craft will not support numerical ID's, so for a full list of alphabetical ID's, go HERE.). Following the block ID is the block data. Most blocks will have a data of 0, but some block (like wool or logs) heavily depend on data values to change their appearance. The method of which the block is placed after the data value. There are three methods available: "keep" summons the block if the space is empty, "replace" will set the specified block no matter what it formally was, and "destroy" will set the block as well as display the particles of the block being destroyed.
Compared to other commands, /setblock doesn't much in the way of data tags, but here are some that are worthy to note:
/setblock ~ ~1 ~ minecraft:skull 1 replace {ExtraType:FireArceus64,SkullType:3,Rot:0}The above will set the block above the command block to a skull with my skin on it, you can change the name to make it anyone else's.
For a full list of setblock data tags, go HERE.
Ta-Daa! You have now learn't how to use /setblock. As always, here is a command that shows the full extent of /setblock:
/setblock ~ ~ ~ minecraft:mob_spawner 0 destroy {SpawnCount:1,SpawnRange:13,RequiredPlayerRange:64,Delay:5,MinSpawnDelay:5,MaxSpawnDelay:10,MaxNearbyEntities:50,EntityId:FireworksRocketEntity,SpawnData:{LifeTime:40,FireworksItem:{id:401,Count:1,tag:{Fireworks:{Explosions:[{Flicker:1,Trail:1,Type:1,Colors:[255,16711680,16776960],FadeColors:[255,16711680,16776960]}]}}}}}