Block states
Block states (also known as block properties)[note 1] are extra pieces of data that further define a block, such as how it appears or behaves.
In Bedrock Edition, there are also aux values (also known as Metadata) to define a block. Aux values are in the format of binary flags, which basically match the block states one-to-one, and they are accessible in decimal number in commands. However, aux values are intended to be deprecated, and newly added blocks or block states no longer support aux values.
In Java Edition, there are also fluid states, that further define a fluid as to how it behaves.
List of block states[edit | edit source]
Reason: not updated for more recent versions; only covers Java Edition
age[edit | edit source]
Tracks the age of plants to handle growth and of fire to handle spread.
State value | Blocks |
---|---|
Integer (0 to 1 )
|
|
Integer (0 to 2 )
|
![]() |
Integer (0 to 3 )
|
|
Integer (0 to 4 )
|
![]() |
Integer (0 to 5 )
|
![]() |
Integer (0 to 7 )
|
|
Integer (0 to 15 )
|
|
Integer (0 to 25 )
|
attached[edit | edit source]
Whether the tripwire hook is connected to a valid tripwire circuit or not. For hanging signs, whether the sign is hanging from a single point or not.
State value | Blocks |
---|---|
Boolean (false or true )
|
|
attachment[edit | edit source]
How this block is attached to the block it is on.
State value | Blocks |
---|---|
|
![]() |
axis[edit | edit source]
What axis the block is oriented to.
State value | Blocks |
---|---|
|
|
|
![]() |
berries[edit | edit source]
Whether this block contains any berries.
State value | Blocks |
---|---|
Boolean (false or true )
|
bites[edit | edit source]
The number of bites taken from the cake.
State value | Blocks |
---|---|
Integer (0 to 6 )
|
![]() |
bloom[edit | edit source]
Whether a sculk catalyst is currently blooming.
State value | Blocks |
---|---|
Boolean (false or true )
|
![]() |
bottom[edit | edit source]
Whether this scaffolding is floating (shows the bottom).
State value | Blocks |
---|---|
Boolean (false or true )
|
![]() |
can_summon[edit | edit source]
Whether this shrieker can summon a warden if triggered.
State value | Blocks |
---|---|
Boolean (false or true )
|
![]() |
candles[edit | edit source]
How many candles are contained within this block.
State value | Blocks |
---|---|
Integer (1 to 4 )
|
![]() |
charges[edit | edit source]
Tracks the remaining uses of respawn anchors.
State value | Blocks |
---|---|
Integer (0 to 4 )
|
![]() |
conditional[edit | edit source]
Whether or not the command block is conditional.
State value | Blocks |
---|---|
Boolean (false or true )
|
![]() |
cracked[edit | edit source]
Whether or not a decorated pot produces shattering sound when broken.
State value | Blocks |
---|---|
Boolean (false or true )
|
![]() |
crafting[edit | edit source]
Whether a crafter is currently crafting.
State value | Blocks |
---|---|
Boolean (false or true )
|
![]() |
delay[edit | edit source]
The amount of time between receiving a signal and responding.
State value | Blocks |
---|---|
Integer (1 to 4 )
|
![]() |
disarmed[edit | edit source]
Whether the tripwire is broken using shears or not.
State value | Blocks |
---|---|
Boolean (false or true )
|
![]() |
distance[edit | edit source]
The distance from a base block.
State value | Blocks |
---|---|
Integer (0 to 7 )
|
![]() |
Integer (1 to 7 )
|
![]() |
down[edit | edit source]
Determines whether something is below the block.
State value | Blocks |
---|---|
Boolean (false or true )
|
drag[edit | edit source]
Determines whether the bubble column is a whirlpool or upwards.
State value | Blocks |
---|---|
Boolean (false or true )
|
![]() |
dusted[edit | edit source]
The dusting progress of a suspicious block.
State value | Blocks |
---|---|
Integer (0 to 3 )
|
east[edit | edit source]
Determines whether something is on the east side of the block.
State value | Blocks |
---|---|
Boolean (false or true )
|
|
|
![]() |
|
![]() |
eggs[edit | edit source]
The amount of eggs in this block.
State value | Blocks |
---|---|
Integer (1 to 4 )
|
![]() |
enabled[edit | edit source]
Whether or not the hopper can collect and transfer items.
State value | Blocks |
---|---|
Boolean (false or true )
|
![]() |
extended[edit | edit source]
Whether or not the piston is extended.
State value | Blocks |
---|---|
Boolean (false or true )
|
eye[edit | edit source]
Whether the frame contains an eye of ender.
State value | Blocks |
---|---|
Boolean (false or true )
|
![]() |
face[edit | edit source]
What side of a block the attached block is on.
State value | Blocks |
---|---|
|
|
facing[edit | edit source]
For most blocks, what direction the block faces.
For wall-attached bells as well as cocoa, the opposite is true.[1]
falling[edit | edit source]
Whether a fluid is falling.
State value | Blocks |
---|---|
Boolean (false or true )
|
flower_amount[edit | edit source]
The amount of flowers in a group of pink petals.
State value | Blocks |
---|---|
Integer (1 to 4 )
|
![]() |
half[edit | edit source]
For tall plants and doors, which half of the door or plant occupies the block space. For trapdoors and stairs, what part of the block space they are in.
State value | Blocks |
---|---|
|
|
|
hanging[edit | edit source]
Whether or not the lantern hangs on the ceiling.
State value | Blocks |
---|---|
Boolean (false or true )
|
has_book[edit | edit source]
Whether or not this lectern holds a book.
State value | Blocks |
---|---|
Boolean (false or true )
|
![]() |
has_bottle_0[edit | edit source]
Whether or not a bottle is in slot 1 of the brewing stand.
State value | Blocks |
---|---|
Boolean (false or true )
|
![]() |
has_bottle_1[edit | edit source]
Whether or not a bottle is in slot 2 of the brewing stand.
State value | Blocks |
---|---|
Boolean (false or true )
|
![]() |
has_bottle_2[edit | edit source]
Whether or not a bottle is in slot 3 of the brewing stand.
State value | Blocks |
---|---|
Boolean (false or true )
|
![]() |
has_record[edit | edit source]
True when the jukebox contains a music disc.
State value | Blocks |
---|---|
Boolean (false or true )
|
![]() |
hatch[edit | edit source]
Determines how close an egg is to hatching; starts at 0 and is randomly incremented.
State value | Blocks |
---|---|
Integer (0 to 2 )
|
hinge[edit | edit source]
Identifies the side the hinge is on (when facing the same direction as the door's inside).
State value | Blocks |
---|---|
|
![]() |
honey_level[edit | edit source]
The level of honey inside the beehive and bee nest.
State value | Blocks |
---|---|
Integer (0 to 5 )
|
in_wall[edit | edit source]
If true, the gate is lowered by three pixels, to accommodate attaching more cleanly with walls.
State value | Blocks |
---|---|
Boolean (false or true )
|
![]() |
instrument[edit | edit source]
The instrument sound the note block makes when it gets powered or used.
State value | Blocks |
---|---|
|
![]() |
inverted[edit | edit source]
Whether the daylight detector detects light (false) or darkness (true).
State value | Blocks |
---|---|
Boolean (false or true )
|
![]() |
layers[edit | edit source]
How many layers of snow are on top of each other.
State value | Blocks |
---|---|
Integer (1 to 8 )
|
![]() |
leaves[edit | edit source]
How big the leaves are on this bamboo.
State value | Blocks |
---|---|
|
![]() |
level[edit | edit source]
For cauldrons, composters, and fluids, describes how full the block is. For lights, describes the light level produced.
State value | Blocks |
---|---|
Integer (0 to 3 )
|
![]() |
Integer (0 to 8 )
|
![]() |
Integer (0 to 15 )
|
lit[edit | edit source]
Whether the block is turned on or off.
State value | Blocks |
---|---|
Boolean (false or true )
|
locked[edit | edit source]
Whether the repeater can change it is powered state (false) or not (true).
State value | Blocks |
---|---|
Boolean (false or true )
|
![]() |
mode[edit | edit source]
The mode the comparator or structure block is in.
State value | Blocks |
---|---|
|
![]() |
|
![]() |
moisture[edit | edit source]
How wet the farmland is.
State value | Blocks |
---|---|
Integer (0 to 7 )
|
![]() |
north[edit | edit source]
Determines whether something is on the north side of the block.
State value | Blocks |
---|---|
Boolean (false or true )
|
|
|
![]() |
|
![]() |
note[edit | edit source]
The note the note block plays when it gets powered.
State value | Blocks |
---|---|
Integer (0 to 24 )
|
![]() |
occupied[edit | edit source]
If there's already a player in this bed.
State value | Blocks |
---|---|
Boolean (false or true )
|
![]() |
ominous[edit | edit source]
Whether a trial spawner or vault is ominous.
State value | Blocks |
---|---|
Boolean (false or true )
|
open[edit | edit source]
Whether the door is open or closed.
State value | Blocks |
---|---|
Boolean (false or true )
|
|
orientation[edit | edit source]
Direction the arrows point, followed by the position of the line face.
State value | Blocks |
---|---|
|
part[edit | edit source]
Whether this is the foot or head end of the bed.
State value | Blocks |
---|---|
|
![]() |
persistent[edit | edit source]
Whether leaves decay (false) or not (true)
State value | Blocks |
---|---|
Boolean (false or true )
|
![]() |
pickles[edit | edit source]
The amount of pickles in this block.
State value | Blocks |
---|---|
Integer (1 to 4 )
|
![]() |
power[edit | edit source]
The power level of Redstone emission.
State value | Blocks |
---|---|
Integer (0 to 15 )
|
powered[edit | edit source]
Whether the block is powered.
State value | Blocks |
---|---|
Boolean (false or true )
|
|
rotation[edit | edit source]
The rotation of standing heads, signs and banners.
State value | Blocks |
---|---|
Integer (0 to 15 )
|
|
sculk_sensor_phase[edit | edit source]
Describes this sculk sensor's phase (whether it's active).
State value | Blocks |
---|---|
|
shape[edit | edit source]
The way this block connects to its neighbors.
State value | Blocks |
---|---|
|
|
|
![]() |
|
![]() |
short[edit | edit source]
Whether this piston head's arm is 4/16th of a block shorter.
State value | Blocks |
---|---|
Boolean (false or true )
|
![]() |
shrieking[edit | edit source]
Whether this sculk shrieker is shrieking.
State value | Blocks |
---|---|
Boolean (false or true )
|
![]() |
signal_fire[edit | edit source]
Whether this campfire has higher smoke or not.
State value | Blocks |
---|---|
Boolean (false or true )
|
slot_0_occupied[edit | edit source]
Whether slot 0 is occupied by a book.
State value | Blocks |
---|---|
Boolean (false or true )
|
![]() |
slot_1_occupied[edit | edit source]
Whether slot 1 is occupied by a book.
State value | Blocks |
---|---|
Boolean (false or true )
|
![]() |
slot_2_occupied[edit | edit source]
Whether slot 2 is occupied by a book.
State value | Blocks |
---|---|
Boolean (false or true )
|
![]() |
slot_3_occupied[edit | edit source]
Whether slot 3 is occupied by a book.
State value | Blocks |
---|---|
Boolean (false or true )
|
![]() |
slot_4_occupied[edit | edit source]
Whether slot 4 is occupied by a book.
State value | Blocks |
---|---|
Boolean (false or true )
|
![]() |
slot_5_occupied[edit | edit source]
Whether slot 5 is occupied by a book.
State value | Blocks |
---|---|
Boolean (false or true )
|
![]() |
snowy[edit | edit source]
Whether this block uses the snowy side texture.
State value | Blocks |
---|---|
Boolean (false or true )
|
south[edit | edit source]
Determines whether something is on the south side of the block.
State value | Blocks |
---|---|
Boolean (false or true )
|
|
|
![]() |
|
![]() |
stage[edit | edit source]
Whether this sapling is ready to grow.
State value | Blocks |
---|---|
Integer (0 to 1 )
|
thickness[edit | edit source]
The thickness of pointed dripstone.
State value | Blocks |
---|---|
|
![]() |
tilt[edit | edit source]
The tilt stage of a big dripleaf.
State value | Blocks |
---|---|
|
![]() |
trial_spawner_state[edit | edit source]
The current state of a trial spawner.
State value | Blocks |
---|---|
|
![]() |
triggered[edit | edit source]
Whether this block has been activated.
State value | Blocks |
---|---|
Boolean (false or true )
|
type[edit | edit source]
Determines the variant of this block.
State value | Blocks |
---|---|
|
|
|
|
|
![]() |
unstable[edit | edit source]
Whether the TNT explodes when punched or not.
State value | Blocks |
---|---|
Boolean (false or true )
|
![]() |
up[edit | edit source]
Determines whether something is above the block.
State value | Blocks |
---|---|
Boolean (false or true )
|
vault_state[edit | edit source]
The current state of a vault.
State value | Blocks |
---|---|
|
![]() |
vertical_direction[edit | edit source]
The vertical directon of pointed dripstone.
State value | Blocks |
---|---|
|
![]() |
waterlogged[edit | edit source]
Whether the block has water in it.
State value | Blocks |
---|---|
Boolean (false or true )
|
|
west[edit | edit source]
Determines whether something is on the west side of the block.
State value | Blocks |
---|---|
Boolean (false or true )
|
|
|
![]() |
|
![]() |
List of fluid states[edit | edit source]
Water[edit | edit source]
Java Edition:
Water
Name | Default value | Allowed values | [hide]Description |
---|---|---|---|
falling | false | true false | Always false. |
Flowing water
Name | Default value | Allowed values | [hide]Description |
---|---|---|---|
falling | false | true false | True for falling water, false for water with a block below. |
level | 1 | 1 2 3 4 5 6 7 8 | Height of the water, 8 when the water is falling. |
Lava[edit | edit source]
Java Edition:
Lava
Name | Default value | Allowed values | [hide]Description |
---|---|---|---|
falling | false | true false | Always false. |
Flowing lava
Name | Default value | Allowed values | [hide]Description |
---|---|---|---|
falling | false | false true | True for falling lava, false for lava with a block below. |
level | 1 | 1 2 3 4 5 6 7 8 | Height of the lava, 8 when the lava is falling. |
Joke block states[edit | edit source]
Big Brain[edit | edit source]
Name | Default value | Allowed values | [hide]Description |
---|---|---|---|
facing | north | east north south west | The direction the big brain is facing |
Cheese[edit | edit source]
Name | Default value | Allowed values | [hide]Description |
---|---|---|---|
slices | 255 | 1—255 | Interpreted as an array of binary numbers that define whether or not each 1/8th corner (slice) of cheese is present. The binary digits for this value are, in order of most significant to least significant, bottom north-west, bottom north-east, bottom south-west, bottom south-east, top north-west, top north-east, top south-west, and top south-east. For example, 255 is all slices present, 204 is all northern slices eaten and all southern slices present. |
Floatater[edit | edit source]
Name | Default value | Allowed values | [hide]Description |
---|---|---|---|
facing | north | east north south west | The direction this floatater is facing. |
triggered | false | false true | True if this block is activated. |
Frying Table[edit | edit source]
Name | Default value | Allowed values | [hide]Description |
---|---|---|---|
facing | north | east north south west | The direction the frying table is facing. The opposite from the direction the player faces while placing the frying table. |
lit | true | false true | Whether the frying table is lit. |
signal_fire | false | false true | Whether the frying table has a hay bale below it. |
waterlogged | false | false true | Whether or not there's water in the same place as this frying table. |
Funky Portal[edit | edit source]
Name | Default value | Allowed values | [hide]Description |
---|---|---|---|
axis | x
| x | The portal's long edge runs east–west. |
z | The portal's long edge runs north–south. |
How did we get here?[edit | edit source]
Name | Default value | Allowed values | [hide]Description |
---|---|---|---|
item | 0 | 0 1 2 ... 1104 | The number display the item ID on it. See How did we get here? (block)/Display. |
waterlogged | false | false true | Whether or not there's water in the same place as this how did we get here? block. |
Other Portal[edit | edit source]
Name | Default value | Allowed values | [hide]Description |
---|---|---|---|
axis | x
| x | The portal's long edge runs east–west. |
z | The portal's long edge runs north–south. |
Poisonous Potato Cutter[edit | edit source]
Name | Default value | Allowed values | [hide]Description |
---|---|---|---|
facing | north | east north south west | The direction this poisonous potato cutter is facing. |
Potato Battery[edit | edit source]
Name | Default value | Allowed values | [hide]Description |
---|---|---|---|
inverted | false | false true | If true, the potato battery is active. |
Potato Refinery[edit | edit source]
Name | Default value | Allowed values | [hide]Description |
---|---|---|---|
facing | north | east north south west | The direction the potato refinery's opening faces. The opposite from the direction the player faces while placing the potato refinery. |
lit | false | false true | If the potato refinery is lit. |
Powerful Potato[edit | edit source]
Name | Default value | Allowed values | [hide]Description |
---|---|---|---|
age | 0 | 0 1 2 3 | The powerful potato can grow strong roots when its age is not 3. |
Removed block states states[edit | edit source]
Shrub[edit | edit source]
Name | Default value | Allowed values | [hide]Description |
---|---|---|---|
type | ?
| dead_bush | ![]() |
fern | ![]() | ||
tall_grass | ![]() |
Name | Metadata Bits | Default value | Allowed values | Values for Metadata Bits |
[hide]Description |
---|---|---|---|---|---|
tall_grass_type | 0x1 0x2 | default
| default | 0 | ![]() |
tall | 1 | ![]() | |||
fern | 2 | ![]() | |||
snow | 3 | ![]() |
History[edit | edit source]
[hide]Java Edition | |||||||
---|---|---|---|---|---|---|---|
1.8 | 14w11a | Added block states. Only used in the game engine, not saved in world files or used in commands yet. | |||||
14w26a | Switched to mostly using block states in the code. | ||||||
1.11 | 16w32a | Enabled the use of block states in commands. | |||||
1.13 | 17w47a | Many block states got added, changed and removed due to the Flattening. | |||||
Added the debug stick, which is an item used to edit the block states of blocks. | |||||||
Fluids are now semi-independent from blocks, so they now have their own fluid states. | |||||||
1.20.2 | 23w35a | Added powered block state for heads. |
Notes[edit | edit source]
- ↑ Sometimes they're different: A block state may refer to a state of the block type, also known as a block permutation in Bedrock Edition, e.g. a south facing pressed button. While a block property refers to a specific property used to define a block state, e.g.
facing
property of button block.
References[edit | edit source]
[edit | edit source]
[hide] | |||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| |||||||||||||||||||||
|