| Crates.io | nbt-sniffer |
| lib.rs | nbt-sniffer |
| version | 0.2.0 |
| created_at | 2025-06-08 17:51:23.996018+00 |
| updated_at | 2025-06-15 00:38:37.498678+00 |
| description | A command-line tool designed to scan Minecraft Java Edition world data. |
| homepage | |
| repository | https://github.com/Lemonzyy/nbt-sniffer |
| max_upload_size | |
| id | 1705112 |
| size | 218,311 |
Ever wondered what treasures lie hidden in your Minecraft world's NBT data? Let NBT Sniffer help you unearth them!
nbt-sniffer is a command-line tool that sniffs through Minecraft Java Edition1 world data. It locates and counts items across your world and player files, with powerful NBT-based filters so you can sniff out exactly what you want.
.mca files..dat files (including level.dat for single-player worlds).detailed (ID+NBT), by-id, by-nbt.usercache.json.nbt-sniffer --world-path <WORLD_PATH> --item <ITEM_ID[{NBT_DATA}]> [OPTIONS]
nbt-sniffer --world-path <WORLD_PATH> --all [OPTIONS]
-w, --world-path <WORLD_PATH>: (Required) Path to the Minecraft world directory.--all: Scan for all items.-i, --item <ITEM_ID[{NBT_DATA}]>: Specify item(s) to scan for (e.g., minecraft:diamond, 'minecraft:stone{components:{"minecraft:custom_data":{some_tag:1b}}}').-v, --view <MODE>: Set the output view. Options: by-id (default), by-nbt, detailed.--show-nbt: When --per-source-summary is active, this flag includes the NBT data for each item within the generated tree view. It does not affect other views.--per-source-summary: Display a tree summary showing where items are found.--per-dimension-summary: Display a summary of items found per dimension.--per-data-type-summary: Display a summary of items per data type (Block Entity, Entity, Player).-f, --format <FORMAT>: Specify the output format. Options: table (default), json, pretty-json.--verbose: Enable verbose output for more detailed logging.Count all diamonds in your world:
nbt-sniffer --world-path /path/to/your/world --item minecraft:diamond
Find all netherite swords specifically named "My Awesome Sword":
nbt-sniffer --world-path /path/to/your/world --item 'minecraft:netherite_sword{components:{"minecraft:custom_name":"My Awesome Sword"}}'
Note: SNBT often requires careful quoting, especially for custom names represented as JSON strings within NBT.
Find all enchanted books with the Mending enchantment:
nbt-sniffer --world-path /path/to/your/world --item 'minecraft:enchanted_book{components:{"minecraft:stored_enchantments":{"minecraft:mending":1}}}'
Count all items and output as pretty-printed JSON:
nbt-sniffer --world-path /path/to/your/world --all --format pretty-json
Happy sniffing!