Block Counter is a utility mod for Minecraft (Fabric) designed to help builders and technical players. It allows you to select a region and get a precise breakdown of every block type within those boundaries.
- Regional Scanning: Define two points to create a selection area.
- Total Tallies: Outputs a list of blocks and their quantities directly to your chat or logs.
- Material Lists: Ideal for planning survival builds by knowing exactly what resources you need to gather.
- Clean Integration: Built specifically for the Fabric modding toolchain.
- Fabric Loader
- Fabric API (Required for most Fabric mods)
- Download the latest release from the GitHub Releases page.
- Move the
.jarfile into your Minecraftmodsfolder. - Launch Minecraft using the Fabric profile.
- Set Positions: Use a book and quill or
/setpositioncommand to set Point A and Point B. - Count manually from existing coordinates: Execute the count command (usually
/countblocksor similar, depending on the version).
View Results: Check your chat window for the categorized list of blocks found in the selection.
This project maintains support for multiple Minecraft versions using a branch-per-version strategy.
mainBranch: Contains the source code for the most recent stable release of the mod.- Version Branches: Each supported Minecraft version (e.g.,
1.19,1.20.1) has its own dedicated branch.
When a new Minecraft version is released, follow these steps to update the mod:
-
Initialize New Environment:
- Refer to the Fabric Develop setup tool to get the updated dependencies and buildscript configurations for the target version.
- Update the
gradle.propertiesandfabric.mod.jsonwith the new version requirements.
-
Code Migration:
- Copy the core logic from the previous version.
- Audit the code for breaking API changes in the Fabric API or Minecraft internals.
- Test functionality in a development environment (
./gradlew runClient).
-
Branching & Building:
- Create a new branch for the version:
git checkout -b <version_number>. - Run the build command:
./gradlew build. - The compiled
.jarwill be located inbuild/libs.
- Create a new branch for the version:
Releases are handled in batches once all targeted versions are verified:
- Verify builds for all active branches.
- Tag the releases.
- Simultaneously publish to GitHub Releases, Modrinth, and CurseForge.
This project is licensed under the CC0 1.0 Universal License. See the LICENSE file for more details.
Maintained by Demomaker