Button/BS

From Minecraft Wiki
Jump to: navigation, search

Java Edition:

Name Default value Allowed values Description
facewallceiling
floor
wall
The face of the block it's placed on.
Floor is on top of a block, ceiling is on the bottom, and wall is on one of its sides.
facingnortheast
north
south
west
The direction it's facing.
Opposite to the direction the player is facing if placed on the side of a block.
poweredfalsefalse
true
If true, the button is currently activated.

Bedrock Edition:

Name Default value Allowed values Description
button_pressed_bit00
1
If the button is currently activated.
facing_direction00
1
2
3
4
5
The direction it's facing.
Opposite to the direction the player is facing if placed on the side of a block.