Button

Από Minecraft Wiki
Μετάβαση σε: πλοήγηση, αναζήτηση
Button
Transparency

Yes

Luminance

No

Blast resistance

2.5

Tool

Any tool

Renewable

Yes

Stackable

Yes (64)

Flammable

No

Drops

Itself

Data values

See Data values

Name

See Data values

A button is a non-solid block which can provide temporary redstone power.

Obtaining[επεξεργασία | επεξεργασία κώδικα]

Stone buttons are broken more easily with pickaxes, and wooden buttons are broken more easily with axes.

Block Stone Wooden
Hardness 0.5 0.5
Tool
Breaking time[note 1]
Hand 0.75 0.75
Wooden 0.4 0.4
Stone 0.2 0.2
Iron 0.15 0.15
Diamond 0.1 0.1
Golden 0.1 0.1
  1. Times are for unenchanted tools in seconds. For more information, see Haste § Instant mining.

A button will also be removed and drop itself as an item:

  • if its attachment block is moved, removed, or destroyed
  • if water flows into its space
  • if a piston tries to push it or moves a block into its space

A button will be destroyed without dropping itself as an item if lava flows into its space.

Crafting[επεξεργασία | επεξεργασία κώδικα]

Buttons can be crafted from stone for a stone button, or wood planks for a wooden button.

Name Ingredients Crafting recipe
Stone Button Stone

Wooden Button Any Wood Planks

Natural generation[επεξεργασία | επεξεργασία κώδικα]

Stone buttons are naturally generated in strongholds, next to iron doors.

Usage[επεξεργασία | επεξεργασία κώδικα]

See also: Redstone circuit

Redstone power[επεξεργασία | επεξεργασία κώδικα]

A button can be used as a monostable power source (it will automatically deactivate shortly after being activated).

Placement
To place a button, use the "Use Item/Place Block" control (right-click, by default) while aiming at the surface to which it should be attached.
A button can be attached to the side, bottom and top of any full solid opaque block (stone, dirt, blocks of gold, etc.).
Activation
Buttons are usually in an inactive state, but can be temporarily activated by players. To activate a placed button, use the "Use Item/Place Block" control (right-click, by default). A wooden button can also be activated by a fired arrow.
Mobs cannot activate buttons directly, but arrows fired by skeletons or dispensers can activate wooden buttons.
Behavior
When activated, a stone button will remain active for 10 redstone ticks (1 second, barring lag), while a wooden button will remain active for 15 redstone ticks (1.5 seconds, barring lag). A wooden button activated by a fired arrow will remain active until the arrow despawns after one minute or is picked up. Breaking a button hit by an arrow and placing it again will not auto-activate it, but using it an additional time will result in the button being pressed until the arrow despawns.
While active, a button:
When a button changes state it will provide a redstone update to all redstone components adjacent to itself (including above and below), and to all redstone components adjacent to its attachment block.

Fuel[επεξεργασία | επεξεργασία κώδικα]

Wooden buttons can be used as a fuel in furnaces, smelting 0.5 items per button.[Computer edition only]

Data values[επεξεργασία | επεξεργασία κώδικα]

A button's type is defined by its ID name, and its orientation and activation status is stored in its block data. A button also has a block state which is expected to replace the functionality of block data in a future version.

ID[επεξεργασία | επεξεργασία κώδικα]

A button's ID defines what type of button it is.

Name ID Name Block ID
Stone Button minecraft:stone_button 77
Wooden Button minecraft:wooden_button 143

Block data[επεξεργασία | επεξεργασία κώδικα]

See also: Data values

A button's block data stores its orientation, and whether it is active:

Bits Values
0x1
0x2
0x4

Three bits storing a value from 0 to 5:

  • 0: Button on block bottom facing down
  • 1: Button on block side facing east
  • 2: Button on block side facing west
  • 3: Button on block side facing south
  • 4: Button on block side facing north
  • 5: Button on block top facing up
0x8 If this bit is set, the button is currently active.

Block state[επεξεργασία | επεξεργασία κώδικα]

See also: Block states
Name Value Description
 facingnorth
south
east
west
up
down
The direction to the button, from the block it is attached to.
Opposite from the direction the player faces when placing a button.
 poweredtrue
false
True if the button is currently activated.

Video[επεξεργασία | επεξεργασία κώδικα]

History[επεξεργασία | επεξεργασία κώδικα]

Alpha
1.0.1Added stone button in the Seecret Friday Update 3.
Official release
1.4.212w34aAdded wooden buttons.
12w34bChanged crafting recipe for both stone and wooden buttons.
12w37aChanged redstone signal duration of the button from 9 to 12 redstone ticks
1.814w04aButtons are now able to be placed on the top and bottom of blocks.
1.915w43aWood buttons are given a different sound from stone buttons.
16w02aWood buttons are now broken more easily with axes, and stone buttons are broken more easily with pickaxes.
1.1116w33aWooden buttons can now be used in furnaces.
Pocket Edition Alpha
0.13.0build 1Added buttons.
Console Edition
TU1CU11.0Patch 1Added stone buttons.
TU9Added wooden buttons.
Changed crafting recipe for stone button.
TU141.04Wooden buttons can now be triggered by arrows.
TU31CU191.22Patch 3Buttons are now able to be placed on the top and bottom of blocks.

Issues[επεξεργασία | επεξεργασία κώδικα]

Issues relating to “Button” are maintained on the issue tracker. Report issues there.