Java Edition.png

Java Edition:Invalid Block Mined Statistic

From Minecraft Discontinued Features Wiki
Jump to navigation Jump to search
EPF mined statistic.png

Some blocks are unable to be mined in survival mode, and even with creative mode, the statistics for breaking unmineable blocks does not increase. However, there is a method to trick the game into increasing these statistics.

Obtaining

From 15w31a (1.9 snapshot) to 1.12.2, the block breaking code roughly runs as follows:

  1. The blockstate of the block to be mined is fetched and stored
  2. Checks if a fire block can be extinguished in front of the face of the block you clicked on, and extinguishes it
  3. Increments the block mining timer using the stored blockstate data
  4. If the block can be instantly mined, the block is broken

The exploit with this code is that the block to be mined can be modified after the game checks that the block can be mined, allowing for any block, including those normally unbreakable, to be broken. This is achieved by chaining updates off of the extinguished fire to replace the other block, most commonly utilizing chunk population.

However, only certain unmineable blocks allow for the statistic to be increased. The block must not be a command block or structure block (due to a check requiring either level 2 operator status or cheats enabled to break either), must have a corresponding item, and not be marked with the disableStats() constructor. The blocks known that meet these criteria are listed below:[test]

See also