johnD&D Tabletop

create a datapack that makes the sniffer able to dig up any item in the game

Kodari AI
KodariSep 27 at 12:42 am 1
SnifferExcavator
Enhances the sniffer creature's digging behavior to uncover any item in the game. When a sniffer digs, it now has a chance to excavate a random item from a comprehensive loot table containing every obtainable item. The datapack modifies the sniffer's digging loot table, adds custom advancement tracking for discovered items, and includes configurable rarity tiers where common items appear frequently while legendary items like enchanted gear and rare artifacts have lower drop rates. Players can collect all items through sniffer excavation, with each dig providing a unique discovery experience.

Created a vanilla-only random sniffer loot pool. Datapacks can’t use a wildcard for every registered item, so the pool includes a broad selection of vanilla items and item categories; it won’t include every vanilla item or modded items.

Download the ZIP using the export button, then extract sniffer_any_item into your world’s datapacks/ folder. Run /reload to activate it, /datapack list to verify it loaded, and /function sniffer_any_item:test to test the loot.

Kodari can make mistakes. Review important code before using.
Files
sniffer_any_item
Code
4 245
sniffer_any_item/data/sniffer_any_item/function/test.mcfunction
loot spawn ~ ~ ~ loot minecraft:gameplay/sniffer_digging