create a datapack that makes the sniffer actually very useful
KodariSep 27 at 12:33 am 1
SnifferTreasureHunt
A datapack that transforms the sniffer into a highly valuable companion by overhauling its digging behavior. When a sniffer digs, it now uncovers rare and useful loot including enchanted tools, diamonds, emeralds, golden apples, ancient debris, and unique custom items. The datapack adds a cooldown system to prevent spam digging, visual particle effects and sound cues when treasure is found, and a progressive loot table that scales rewards based on the sniffer's proximity to the player. It also introduces a taming mechanic where feeding the sniffer specific items increases its dig success rate and treasure quality, making the sniffer an essential asset for survival progression.
Preserve the sniffer’s usual torchflower seeds and pitcher pods.
Add a chance of extra gardening supplies and a small chance of mineral finds.
Include a test function that rolls the sniffer digging loot table.
Download the ZIP using the export button, then extract sniffer_utility_pack into your world’s datapacks/ folder. Run /reload, check /datapack list, and test with /function sniffer_utility:test.
Kodari can make mistakes. Review important code before using.
Files
sniffer_utility_pack
Code
3 125
sniffer_utility_pack/data/sniffer_utility/function/test.mcfunction
loot give @s loot minecraft:gameplay/sniffer_digging