Skip to content
Hueblocks gradient art poster title

How to get a list of all blocks in your build (World Edit & Notepad++)

This is a deceptively relatively easy and automated process, in case you need it. This guide is aimed at World Edit users as there are probably other methods of doing this. You need Notepad++ or an equivalent that supports advanced “find and replace” commands (HOWEVER other programs may handle the syntax differently and this guide may not work). Now onto the guide:

NOTE FOR BEDROCK USERS: This is a Java process. Try converting your world to Java using je2be or chunker.app.

1. Select your build and do //distr

Distr shows the distribution of blocks in your build as a % and block count. It’s like an advanced //count.

2. Cycle through every //distr page

We need chat logs to register every page of the //distr to show the full distribution of blocks in the build.

3. Find the latest.log in .minecraft

This is a file in .minecraft > logs that shows the latest chat activity. Sort by modified date to find it quick.

4. Copy //distr logs into Notepad++

Scroll to the bottom of latest.log and copy out the lines showing blockcounts. It will look something like:

Block Distribution -------------\nTotal Block Count: 61705\n89.148%  55009  Air\n  1.238%  764     Cobblestone\n  1.047%  646     Terracotta\n  0.810%  500     Red Concrete\n  0.745%  460     Dark Oak Planks\n  0.687%  424     Black Wool\n  0.681%  420     Deepslate\n--------------- Page 1 of 8 >>> ---------------
[18:11:13] [Render thread/INFO]: [System] [CHAT] (FAWE) ------------- Block Distribution -------------\nTotal Block Count: 61705\n  0.616%  380     Polished Andesite\n  0.603%  372     Smooth Stone\n  0.467%  288     Mangrove Planks\n  0.444%  274     Block of Quartz\n  0.350%  216     Jungle Planks\n  0.350%  216     Dark Oak Stairs\n  0.347%  214     Red Terracotta\n------------- <<< Page 2 of 8 >>> -------------
[18:11:15] [Render thread/INFO]: [System] [CHAT] (FAWE) ------------- Block Distribution -------------\nTotal Block Count: 61705\n  0.334%  206     Polished Granite Slab\n  0.301%  186     Brick Wall\n  0.256%  158     Bricks\n  0.172%  106     Diorite\n  0.136%  84       White Stained Glass\n  0.107%  66       Polished Granite\n  0.097%  60       Iron Bars\n------------- <<< Page 3 of 8 >>> -------------
[18:11:15] [Render thread/INFO]: [System] [CHAT] (FAWE) ------------- Block Distribution -------------\nTotal Block Count: 61705\n  0.084%  52       Diorite Wall\n  0.078%  48       White Stained Glass Pane\n  0.078%  48       Polished Diorite Slab\n  0.065%  40       Jungle Trapdoor\n  0.052%  32       Jungle Fence\n  0.052%  32       Mangrove Fence\n  0.049%  30       Mangrove Stairs\n------------- <<< Page 4 of 8 >>> -------------
[18:11:16] [Render thread/INFO]: [System] [CHAT] (FAWE) ------------- Block Distribution -------------\nTotal Block Count: 61705\n  0.049%  30       Red Carpet\n  0.045%  28       Polished Diorite\n  0.045%  28       Granite Wall\n  0.042%  26       Brick Stairs\n  0.036%  22       Birch Button\n  0.036%  22       Jungle Stairs\n  0.036%  22       Polished Granite Stairs\n------------- <<< Page 5 of 8 >>> -------------
[18:11:17] [Render thread/INFO]: [System] [CHAT] (FAWE) ------------- Block Distribution -------------\nTotal Block Count: 61705\n  0.032%  20       Mangrove Slab\n  0.026%  16       Glass\n  0.026%  16       Tripwire Hook\n  0.026%  16       Smooth Stone Slab\n  0.026%  16       Stripped Mangrove Log\n  0.023%  14       Diorite Slab\n  0.023%  14       Light Gray Carpet\n------------- <<< Page 6 of 8 >>> -------------
[18:11:18] [Render thread/INFO]: [System] [CHAT] (FAWE) ------------- Block Distribution -------------\nTotal Block Count: 61705\n  0.016%  10       Birch Fence\n  0.013%  8         Mangrove Fence Gate\n  0.013%  8         Lantern\n  0.013%  8         Brick Slab\n  0.013%  8         Diorite Stairs\n  0.013%  8         Jungle Slab\n  0.010%  6         Oak Leaves\n------------- <<< Page 7 of 8 >>> -------------
[18:11:19] [Render thread/INFO]: [System] [CHAT] (FAWE) ------------- Block Distribution -------------\nTotal Block Count: 61705\n  0.010%  6         Iron Trapdoor\n  0.006%  4         Birch Fence Gate\n  0.006%  4         Sea Lantern\n  0.006%  4         Dark Oak Trapdoor\n  0.006%  4         Polished Diorite Stairs\n  0.006%  4         Oak Log\n  0.003%  2         Mangrove Trapdoor\n--------------- <<< Page 8 of 8 ---------------

5. Clean up using “Find & Replace”

You now have the block list, but can use a few replace commands to clean it up. In the above example:

Use CTRL+H to enter Replace menu. Click “Replace All” after inputting each “Find what:”/”Replace with:”

  • Switch to “Regular expression” mode at bottom!
  • To remove the varied timestamps inbetween [], replace “\[[^\]]*\]” with nothing (empty)
  • Switch to “Normal” mode at bottom!
  • Replace “: (FAWE) ------------- Block Distribution -------------” with nothing (empty)
  • (You will probably see something like (WorldEdit) instead of (FAWE) if you use the base World Edit.)
  • Switch to “Regular expression” mode at bottom!
  • To add new lines properly, replace “\\n” with “\r\n
  • To remove excess lines, replace “-------------.*?-------------” with nothing (empty)
  • Switch to “Normal” mode at bottom!
  • Replace “Total Block Count: 61705” (or whatever your number is) with nothing (empty)
  • Manually delete the air block count if desired, and any remaining excess spaces & –.
  • If you want to remove block %: Switch to “Regular expression” and replace “ .*?% ” with nothing.

6. Final cleaned up list example:

Block Distribution -------------

  1.238%  764     Cobblestone
  1.047%  646     Terracotta
  0.810%  500     Red Concrete
  0.745%  460     Dark Oak Planks
  0.687%  424     Black Wool
  0.681%  420     Deepslate
  0.616%  380     Polished Andesite
  0.603%  372     Smooth Stone
  0.467%  288     Mangrove Planks
  0.444%  274     Block of Quartz
  0.350%  216     Jungle Planks
  0.350%  216     Dark Oak Stairs
  0.347%  214     Red Terracotta
  0.334%  206     Polished Granite Slab
  0.301%  186     Brick Wall
  0.256%  158     Bricks
  0.172%  106     Diorite
  0.136%  84       White Stained Glass
  0.107%  66       Polished Granite
  0.097%  60       Iron Bars
  0.084%  52       Diorite Wall
  0.078%  48       White Stained Glass Pane
  0.078%  48       Polished Diorite Slab
  0.065%  40       Jungle Trapdoor
  0.052%  32       Jungle Fence
  0.052%  32       Mangrove Fence
  0.049%  30       Mangrove Stairs
  0.049%  30       Red Carpet
  0.045%  28       Polished Diorite
  0.045%  28       Granite Wall
  0.042%  26       Brick Stairs
  0.036%  22       Birch Button
  0.036%  22       Jungle Stairs
  0.036%  22       Polished Granite Stairs
  0.032%  20       Mangrove Slab
  0.026%  16       Glass
  0.026%  16       Tripwire Hook
  0.026%  16       Smooth Stone Slab
  0.026%  16       Stripped Mangrove Log
  0.023%  14       Diorite Slab
  0.023%  14       Light Gray Carpet
  0.016%  10       Birch Fence
  0.013%  8         Mangrove Fence Gate
  0.013%  8         Lantern
  0.013%  8         Brick Slab
  0.013%  8         Diorite Stairs
  0.013%  8         Jungle Slab
  0.010%  6         Oak Leaves
  0.010%  6         Iron Trapdoor
  0.006%  4         Birch Fence Gate
  0.006%  4         Sea Lantern
  0.006%  4         Dark Oak Trapdoor
  0.006%  4         Polished Diorite Stairs
  0.006%  4         Oak Log
  0.003%  2         Mangrove Trapdoor

No comments yet.

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.

SidebarComments (0)