BlockBook is a desktop app for managing contacts, optimized for use via a Line Interface (CLI) while still having the benefits of a Graphical User Interface (GUI). If you can type fast, BlockBook can get your contact management tasks done faster than traditional GUI apps.
BlockBook makes it easy to manage the contacts of other gamers you meet on servers, allowing you to manage contacts through not just names, but other gaming attributes too.
Ensure you have Java 17 or above installed in your Computer.
Mac users: Ensure you have the precise JDK version prescribed here.
Download the latest .jar file from here.
Copy the file to the folder you want to use as the home folder for BlockBook.
Open a command terminal, cd into the folder you put the jar file in, and use the java -jar BlockBook.jar command to run the application.
A GUI similar to the below should appear in a few seconds. Note how the app contains some sample data.

Type the command in the command box and press Enter to execute it. e.g. typing help and pressing Enter will open this User Guide in a browser window.
Some example commands you can try:
list : Lists all contacts.
add name/John Doe gamertag/JD910 : Adds a contact named John Doe to BlockBook with the gamertag JD910.
delete 3 : Deletes the 3rd contact shown in the current list.
clear : Deletes all contacts.
exit : Exits the app.
Refer to the Features below for details of each command.
Notes about the command format:
Words in UPPER_CASE are the parameters to be supplied by the user.
add name/NAME, NAME is a parameter which can be used as add name/John Doe.Items in square brackets are optional.
name/NAME [t/TAG] can be used as name/John Doe t/friend or as name/John Doe.Items with … after them can be used multiple times including zero times.
[t/TAG]… can be used as (i.e. 0 times), t/friend, t/friend t/family etc.Parameters can be in any order.
e.g. if the command specifies name/NAME gamertag/GAMERTAG, gamertag/GAMERTAG name/NAME is also acceptable.
Extraneous parameters for commands that do not take in parameters (such as help, list, exit and clear) will be ignored.
e.g. if the command specifies help 123, it will be interpreted as help.
If you are using a PDF version of this document, be careful when copying and pasting commands that span multiple lines as space characters surrounding line-breaks may be omitted when copied over to the application.
helpOpens this User Guide in a browser window.
Format: help
addAdds a gamer to BlockBook with a required gamertag and optional details such as name, phone number, email address, group, server, favourite status, region, country, and notes.
Format: add gamertag/GAMERTAG [name/NAME] [phone/PHONE] [email/EMAIL] [group/GROUP] [server/SERVER] [favourite/FAVOURITE] [country/COUNTRY] [region/REGION] [note/NOTE]
Tip: Only gamertag/ is required. All other fields are optional.
Examples:
add gamertag/ilovesteve name/Herobrine phone/99999 email/brine@gmail.com group/DestroySteve server/127.0.0.1:8080 favourite/fav country/Singapore region/ASIA note/I hate steveadd gamertag/Notch name/Notch phone/+12345 email/notch@example.com group/Redstone Crew server/mc.example.net:25565 favourite/unfav country/Malaysia region/ASIA note/Usually plays survivallistShows a list of all gamers stored in BlockBook.
Format: list
editEdits an existing gamer stored in BlockBook.
TAKE NOTE! This command does not allow the editing of fields that do not exist, such as p/, e/, a/ etc. These fields are a work in progress.
Format: edit INDEX [name/NAME] [p/PHONE] [e/EMAIL] [a/ADDRESS] [t/TAG]
INDEX. The index refers to the index number shown in the displayed gamer list. The index must be a positive integer 1, 2, 3, ...t/ without
specifying any tags after it.Examples:
edit 1 p/91234567 e/johndoe@example.com Edits the phone number and email address of the 1st gamer to be 91234567 and johndoe@example.com respectively.edit 2 name/Betsy Crower t/ Edits the name of the 2nd gamer to be Betsy Crower and clears all existing tags.favourite/unfavouriteUpdates a gamer’s favourite status via index
Format: favourite INDEX or unfavourite INDEX
INDEX. The index refers to the index number shown in the displayed gamer list.Examples:
favourite 1 Updates the favourite status of the first gamer to favourite.unfavourite 1 Remove the first gamer from favourites.findFinds gamers whose names contain any of the given keywords.
Format: find KEYWORD [MORE_KEYWORDS]
hans will match HansHans Bo will match Bo HansHan will not match HansOR search).
e.g. Hans Bo will return Hans Gruber, Bo YangExamples:
sortSorts the displayed contact list by one or more attributes.
Format: sort [ATTRIBUTE/]...
Valid attributes:
| Attribute | Description |
|---|---|
name/ | Sort by name |
gamertag/ | Sort by gamertag |
phone/ | Sort by phone number |
email/ | Sort by email address |
group/ | Sort by group |
server/ | Sort by server |
favourite/ | Sort by favourite status (favourites first) |
country/ | Sort by country |
region/ | Sort by region |
note/ | Sort by note |
Examples:
sort sorts all contacts by gamertag (default).sort name/ sorts all contacts by name.sort phone/ gamertag/ sorts all contacts by phone number, using gamertag to break ties.sort favourite/ name/ sorts favourites before non-favourites, then by name within each group.deleteDeletes the specified gamers from BlockBook.
Format: delete INDEX [INDEX]...
INDEX.delete 2 1 is acceptable.Examples:
list followed by delete 2 deletes the 2nd gamer shown in the list.find Betsy followed by delete 1 2 deletes the 1st and 2nd gamer in the results of the find command.delete 2 1 deletes the 1st and 2nd gamer shown in the list.delete 1 2 2 deletes only the 1st and 2nd gamers shown in the list. The 2nd gamer is only deleted once.clearClears all entries from BlockBook.
Format: clear
exitExits the program.
Format: exit
BlockBook data is saved to primary storage automatically after any command that changes the data. There is no need to save manually.
BlockBook data is saved automatically as a JSON file [JAR file location]/data/contacts.json. Advanced users are welcome to update data directly by editing that data file.
Caution:
If your changes to the data file makes its format invalid, BlockBook will discard all data and start with an empty data file at the next run. Hence, it is recommended to take a backup of the file before editing it.
Furthermore, certain edits can cause BlockBook to behave in unexpected ways (e.g., if a value entered is outside the acceptable range). Therefore, edit the data file only if you are confident that you can update it correctly.
[coming in v2.0]Details coming soon ...
Q: How do I transfer my data to another Computer?
A: Install the app in the other computer and overwrite the empty data file it creates with the file that contains the data of your previous BlockBook home folder.
preferences.json file created by the application before running the application again.| Action | Format, Examples |
|---|---|
| Add | add name/NAME gamertag/GAMERTAG e.g., add name/James Ho gamertag/JamieH |
| Clear | clear |
| Delete | delete INDEX [INDEX]...e.g., delete 3, delete 2 5 |
| Edit | edit INDEX [name/NAME] [gamertag/GAMERTAG]e.g., edit 2 name/James Lee |
| Find | find KEYWORDe.g., find Jamesfind ATTRIBUTE1/KEYWORD1 [ATTRIBUTE2/KEYWORD2]...e.g., find name/Steve gamertag/Block |
| View | view gamertag/GAMERTAG e.g., view gamertag/SteveMaster99 |
| List | list |
| Sort | sort [ATTRIBUTE/]...e.g., sort, sort name/, sort phone/ gamertag/ |
| Help | help |