Skip to main content
2 of 2
added 182 characters in body
SirBenet
  • 28.2k
  • 7
  • 65
  • 93

You should change the command to:

setblock ~1 ~ ~ stone_button 1

The datavalue is required to change which direction the button is facing, and thus what surface it is on:

1 = East, 2 = West, 3 = South, 4 = North, 5 = Up

You can also add 8 to any of those to turn it into a pressed button in the same direction.

SirBenet
  • 28.2k
  • 7
  • 65
  • 93