Back to mods
Block Grep project artwork

CurseForge · Minecraft mod

Block Grep

Highlights every occurrence of a block pattern near you.

Choose a version Pick your version below, then grab the matching file.

Quick answer

Which Block Grep release matches 26.3?

Updated last month
Best match for your filters Block Grep 26.0.1 (fabric)
Game version 26.3
Loader Fabric

Block Grep 26.0.1 (fabric) targets 26.3 with Fabric. The project page does not say whether this file belongs on the client, dedicated server, or both. All 1 required mods have matching files.

Where it goes

Is Block Grep required on the client, server, or both?

The project page does not say whether this file belongs on the client, dedicated server, or both.

Client Source doesn’t say
Dedicated server Source doesn’t say
Loader for this release Fabric
Required install it here Optional supported, not mandatory Not supported do not install here Source doesn’t say do not assume

The source does not explicitly classify this release as client-only or server-only.

What else does Block Grep 26.0.1 (fabric) need?

Block Grep 26.0.1 (fabric) on 26.3. Every mod below is checked against that same setup.

All 1 required mods have matching files

Install Fabric API first. We found matching files for this game-version and loader setup.

Fabric API Needed by Block Grep 26.0.1 (fabric)
required
Matching file found Matched file: [26.3] Fabric API 0.165.2+26.3

We only count dependency files that match this setup. A file for another loader does not fill the gap.

Before you install it

Add Block Grep without breaking your instance.

Built for Block Grep 26.0.1 (fabric) on 26.3. Pick another file and the loader, install side or required mods may change.

  1. 01

    Stick to this file

    Use Block Grep 26.0.1 (fabric). It targets 26.3 with Fabric; another release may have different loader, side or dependency requirements.

  2. 02

    Bring the mods it needs

    Install Fabric API first. We found matching files for this game-version and loader setup.

  3. 03

    Put it on the correct side

    The project page does not say whether this file belongs on the client, dedicated server, or both.

  4. 04

    Pick the file you checked

    Use the “Get this file” button beside Block Grep 26.0.1 (fabric). It opens that exact file at the source.

About this project

What does Block Grep add?

Highlights every occurrence of a block pattern near you.

Patterns can be 1D, 2D or 3D, and you can search for shapes and groups of different blocks, including wildcard (?)

Usage

The easiest way to configure the mod is using the GUI settings screen. This can be started with the command /blockgrep config, or you can go to Options → Controls → Key Binds → Block Grep and assign "Open pattern settings" a key.

On Fabric, if you have Mod Menu installed, it'll appear in the mod menu list.

In the settings screen you can create new patterns and configure their rendering settings.

Commands

You can configure the mod entirely using commands if you wish.

/blockgrep pattern [symmetry] <spec>   add a shape of any dimensions
/blockgrep box <x> <y> <z> <blocks>    add a uniform box
/blockgrep list                        show the saved patterns
/blockgrep toggle <n>                  turn one on or off
/blockgrep only <n>                    enable one, disable the rest
/blockgrep all on|off                  every pattern at once
/blockgrep name <n> <text>             rename one
/blockgrep remove <n>                  delete one
/blockgrep radius <blocks>             4–128, default 32
/blockgrep limit <count>               default 512
/blockgrep config                      open the settings screen
/blockgrep status
/blockgrep off

Pattern syntax

Patterns are made of cell predicates, each of which tries to match a block:

Form Meaning
mud that block (namespace defaults to minecraft)
mud,dirt Either mud or dirt
mud,dirt,grass_block Either mud or dirt or a grass block
#minecraft:trapdoors any block with that tag, ie. any trapdoor in this example
? any block, including air
!air anything the rest does not match

These are combined into larger patterns using , | and ||. So,

Form Meaning
mud mud Two mud blocks beside each other (east-to-west)
`mud \ mud`
`mud mud \ mud mud`
`mud,dirt mud,dirt \ mud,dirt mud,dirt`
`stone stone \ stone stone \

Examples

  • A 2x2 square of mud and/or dirt:

    • /blockgrep box 2 1 2 mud,dirt, or
    • /blockgrep pattern mud,dirt mud,dirt | mud,dirt mud,dirt
  • A grass block above another grass block:

    • /blockgrep pattern grass_block || grass_block
  • A 2x2 of mud, with anything (or nothing) above it:

    • /blockgrep pattern mud mud | mud mud || ? ? | ? ?
  • Any 2x2 of logs, of any wood type:

    • /blockgrep pattern #logs #logs | #logs #logs

Dimensioned form

A pattern can also be given as explicit dimensions followed by x·y·z cells, in x then z then y order:

/blockgrep pattern 2 2 2 mud mud mud mud #logs ? ? #logs

Symmetry

By default a pattern is matched at all four compass orientations. An optional symmetry spec before the pattern changes that. It is up to three axis letters — lowercase to allow rotation about that axis, uppercase or absent to pin it — with h and v to allow horizontal and vertical mirroring.

/blockgrep pattern XYZ   mud ? | ? mud     only as written        (1)
/blockgrep pattern y     mud ? | ? mud     four compass turns     (4, the default)
/blockgrep pattern yh    mud ? | ? mud     ...plus horizontal flips  (8)
/blockgrep pattern yv    mud ? | ? mud     ...plus a top-to-bottom flip (8)
/blockgrep pattern yvh   mud ? | ? mud     both mirror families   (16)
/blockgrep pattern xyz   mud ? | ? mud     all 24 rotations of the cube
/blockgrep pattern xyzvh mud ? | ? mud    all 48, reflections included

Mirror planes can also be named individually after a +, by the axis normal to each: +x is the east-west flip, +y the top-to-bottom one, +z north-south. So yh is exactly y+xz, and yv is y+y.

Three things are worth knowing:

  • Rotations about two different axes generate rotations about the third, so xy, yz, xz and xyz all mean the same 24 orientations.
  • Reflections are not implied by rotations. An L-shape and its mirror image are different shapes however you turn them, which is why h and v exist.
  • Mirrors are only interchangeable because of rotation. With the four turns of y in hand, +x and +z name the same eight orientations; with no rotation at all they are genuinely different flips, and XYZ+xz gives four orientations because composing the two mirrors produces a 180° turn.

Symmetric shapes are deduplicated, so each occurrence is reported once however many orientations were searched.

Performance

The scanner walks chunk sections (16x16x16 blocks) and uses the section palette to reject sections that cannot contain any candidate block, which skips the large majority of them. Scans are cached and re-run only when you move ~8 blocks or every 2 seconds.

Sections are visited nearest-first, so a scan that hits the match limit reports what is around you rather than whatever happened to lie in one corner of the radius. The limit is shared between active patterns, so one very common pattern cannot crowd out the others.

Patterns containing ! cannot use the section palette early-out and so are correspondingly slower — prefer naming blocks explicitly where you can.

Only chunks the client has loaded are searched, so range is capped by render distance regardless of the radius setting.

Cheating

Note: this mod can be used as an ore-finder so it should be considered a bit cheaty. Removing X-ray mode for a "lite" non-cheaty version was considered, but you'd still be able to look for, say, valuable ore below a grass_block or stone, highlighting that less-valuable block, so while removing X-ray mode would limit bulk cheating, it wouldn't make it a fair non-cheaty mod to use.

Project description from CurseForge.

Pick your setup

Block Grep by Minecraft version and loader

Choose the version and loader you play, then open the matching release.

10 available setups

Check the dependencies, then try the file in a copied instance before changing a world you care about.

Recent files

Block Grep versions and loaders

2 of 4 releases match
Clear filters

Looking for an older file? The official CurseForge project page is in Resources.