The facing of a chest is determined by it's block data value, ranging from 2 to 5 (North, South, West, East). For Falling Sand Entities the data value of the block can be set by adding a Data
tag to the entity:
/summon FallingSand 2140.5 9 -423.5 {Block:minecraft:chest,Data:2,Time:1,TileEntityData:{Items:[{id:diamond_helmet,Slot:0,Count:1},{id:diamond_chestplate,Slot:1,Count:1},{id:diamond_leggings,Slot:2,Count:1},{id:diamond_boots,Slot:3,Count:1},{id:diamond_sword,Slot:4,Count:1}]}}
(I also replaced TileID
with the newer Block
. This doesn't exactly matter, but numerical IDs are being phased out gradually, and I expect TileID
to break in the future.)
However, as pointed out by MBraedley in the comments, summoning a chest with items can be done directly via setblock
, rather than using the old roundabout way of summoning falling sand.
The syntax is
/setblock <x> <y> <z> <TileName> [dataValue] [oldBlockHandling] [dataTag]
Here, the data value can be set directly. To set the data tag, you'll need to specify oldBlockHandling
, I suggest using the default value of replace
:
/setblock 2140 9 -423 minecraft:chest 2 replace {Items:[{id:diamond_helmet,Slot:0,Count:1},{id:diamond_chestplate,Slot:1,Count:1},{id:diamond_leggings,Slot:2,Count:1},{id:diamond_boots,Slot:3,Count:1},{id:diamond_sword,Slot:4,Count:1}]}
This command is not only shorter and easier to read, it also executes much faster than the summon version. That is because it doesn't need to create an entity, have it drop to the floor, determine collision, and then turn it into a block and remove the entity.
The Damage
tag holds the metadata value of the item:
/summon ItemFrame 2019 32 1060 {Facing:3,Item:{id:"minecraft:skull",Damage:5,Count:1}}
Since 1.8, you should not have been using numerical IDs in NBT data. Since 1.7, using numerical IDs in command syntax presented you with a warning to not use name IDs.
Best Answer
You need to summon the entity with custom NBT:
/summon minecraft:item_frame -1242 58 219 {Facing:2}
The
Facing
part is what is added. The default number is 1, which is facing up. 2 is facing north, which you are looking for. If you try different numbers, you will find that it will face different directions.