How to use setblock command for placing stone button on the left side of the command block

How to use setblock command for placing stone button on the left side of the command block - Crop hacker silhouette typing on computer keyboard while hacking system

I tried to use the command setblock ~1 ~ ~ stone_button but then it places a button on air.

I'm running Minecraft 14w11b snapshot from the 1.8 snapshots.

Does someone know how to fix this?

Pictures below:

Image

Image



Best Answer

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.




Pictures about "How to use setblock command for placing stone button on the left side of the command block"

How to use setblock command for placing stone button on the left side of the command block - Cheerful black manager looking at smartphone while walking down street
How to use setblock command for placing stone button on the left side of the command block - Side view of young woman in hoodie sitting on floor near sofa and playing with obedient brown Labrador while resting during free time
How to use setblock command for placing stone button on the left side of the command block - From above of crop anonymous male hacker typing on netbook with data on screen while sitting at desk



How do you place buttons on command blocks?

Select the lever in your hotbar. Then position your pointer (the plus sign) on the block where you want to place the lever. You should now see the lever on the ground next to the command block.

How do you use command blocks with Setblock?

How to Enter the Command
  • Open the Chat Window. The easiest way to run a command in Minecraft is within the chat window.
  • Type the Command. In this example, we will replace a block with birch planks using the following command: /setblock ~1 ~0 ~1 planks 2.




  • Using Commands in Minecraft: How to Use /setblock \u0026 /fill to Alter Terrain! | 1.11.2




    More answers regarding how to use setblock command for placing stone button on the left side of the command block

    Answer 2

    setblock ~1 ~ ~ stone_button

    In this case, the number represents a direction, relative to the command block.

    • 0 = DOWN
    • 1 = EAST
    • 2 = WEST
    • 3 = SOUTH
    • 4 = NORTH
    • 5 = UP.

    Sources: Stack Exchange - This article follows the attribution requirements of Stack Exchange and is licensed under CC BY-SA 3.0.

    Images: Anete Lusina, Ono Kosuki, Ivan Babydov, Sora Shimazaki