Sniff
Let your Pet sniff out and dig up an item over time.
The Sniff skill makes your Pet periodically "sniff out" an item from its drop pool — it plays a short sniffer digging animation and then drops that item beside itself. The Pet only sniffs while it has all paws on solid ground, pausing while it is swimming in deep water or in the air.
The drop pool is configured per skilltree — each level of the Sniff skill can add its own entries. When it's time to sniff, the Pet rolls a weighted random pick across every entry granted so far and drops a random amount of that item.
Settings
Interval
interval
integer
Seconds between each dig/drop.
Drops
drops
list
The items this level adds to the drop pool — each an entry (see below).
Each entry in drops has four fields:
item
item
The item to drop — a material name (SHEARS), a minecraft:… item/data-component string, or a . minecraft:…[…] string copied from /petadmin info item (see below).
weight
integer
Relative odds of this entry being picked, ≥1. Equal weights across entries mean a uniform random pick.
amountMin
integer
Minimum stack size dropped, ≥1.
amountMax
integer
Maximum stack size dropped, ≥ amountMin.
Drop entries are cumulative: an entry added at one level stays in the pool at every level above it.
Capturing an exact item
To grant an item with a custom name, lore, or enchantments, hold it in your main hand and run /petadmin info item — click the [Copy with NBT] button on the output to copy the item's full component string (e.g. . minecraft:shears[minecraft:damage=6]) to your clipboard, then paste it as the item value.
The other button, [Copy], gives just the material name (SHEARS). Use that one when any item of that type will do; use [Copy with NBT] when the drop has to carry its exact name, lore, enchantments, or damage.
"Sniff": {
"Upgrades": {
"1": {
"interval": 60,
"drops": [
{ "item": "minecraft:wheat", "weight": 10, "amountMin": 1, "amountMax": 3 },
{ "item": "minecraft:diamond", "weight": 3, "amountMin": 1, "amountMax": 1 }
]
}
}
}Last updated
Was this helpful?
