Multiple functionalities added :
- It is now possible to use CommandBlocks to execute the counting commands (countblocks and setposition). By default, it will output in the CommandBlock's output. If you want two command blocks to execute the setposition command, you can give them the same name and the setposition will only affect those with that name. Ex. If two command blocks are named 'Joe', if one executes setposition (for the firstposition) and the other executes setposition (for the secondposition), the output will be in the second. If another command block without a name also executes setposition, it will not affect the setposition executed by 'Joe' command blocks.
- It is now possible to receive the output of the counting commands in a Book and Quill. Simply have a book and quill in hand (main or off-hand) while executing the command for the output to appear in the book. This applies both for when the command is executed by the player and by a command block. If a group of players are present on a server and they are all holding Book and Quills when a command block executes the command, they will all receive the result in each individual book.
- Because of these two new features, it is now possible to copy and paste the result using CTRL + A, CTRL + C and CTRL + V.
- A new Total row was added in the output message so that we can have the total amount of blocks.
Other :
- Code has been cleaned even more so that future changes require less total change
Contains the jar file to install the mod. Here is how to use the mod : /blockcounter countblocks [firstPosition] [secondPosition] [(optional)blockFilter]
Block counter mod updated for 1.16.2!
I added a fabric version of the mod.
Added a new command that allows players to execute the command by using their player's position.
/blockcounter setposition
First use of the command will set the first position.
Second use of the command will set the second position and run the counting algorithm and display the amounts.
Made new version that is compatible with any 1.21 version
Made new version that is compatible with all small versions of 1.20, starting from 1.20.2
Updated for Minecraft 1.20.2
Added Block filter for setPosition and made command execution player-dependent Big code refactor as well to make it easier to develop and maintain
Updated for Minecraft 1.20.1 and corrected the mod's license information


