| Rarity tier | Epic |
|---|---|
| Renewable | No |
| Stackable | Yes (64) |
| Tool | None |
| Blast resistance | 3,600,000 |
| Hardness | -1 |
| Luminous | No |
| Transparent | No |
| Flammable | No |
| Catches fire from lava |
No |
| Map color | 44 TERRACOTTA |
| Note block instrument | Default (Harp) |
A test block is a technical block that is used for game tests.
Obtaining
Test blocks are available in the Creative inventory, under the Operator Utilities tab, and using the /setblock, /fill, or /give commands. When placed, test blocks are unbreakable in Survival and have the same blast resistance as bedrock.
Usage
Cannot be placed in Survival. When placed, use the test block to open its GUI. The GUI opens only if the player is in Creative mode, and has permission level 2 or higher.
Start
Emits a constant redstone signal, similarly to a block of redstone, when the test starts. This block is required to be part of the structure of a block-based test.
Log
Logs a message to the server log every time it receives a redstone signal. The message is set in the block's GUI. This has a speech bubble texture.
Fail
Causes a test to fail when it receives a redstone signal. This has a frowning face texture.
Accept
Causes a test to pass when it receives a redstone signal. This block is required to be part of the structure of a block-based test. This has a smiling face texture.
Data values
ID
| Name | Identifier | Form | Translation key |
|---|---|---|---|
test_block | Block & Item | block |
| Name | Identifier |
|---|---|
test_block |
Block states
| Name | Default value | Allowed values | Description |
|---|---|---|---|
| mode | start | startlogfailaccept | The state the test block is in. |
Block data
A test block has a block entity associated with it that holds additional data about the block.
- [NBT Compound / JSON Object]: The block entity's root tag.
- Tags common to all block entities see Template:Nbt inherit/blockentity/template
History
| Java Edition | |||||||
|---|---|---|---|---|---|---|---|
| 1.21.5 | 25w03a | ||||||
| 25w04a | The name of block state has been changed from test_block_mode to mode. | ||||||
| 25w10a | |||||||
Issues
Issues relating to "Test Block" are maintained on the bug tracker. Issues should be reported and viewed there.








