The match_tool condition checks which tool was used to mine a block, not which tool is being held. The random_chance_with_looting condition uses the level of looting on the item held by the killer entity, which doesn't exist outside the context of a loot table.
The
match_tool
condition checks which tool was used to mine a block, not which tool is being held. Therandom_chance_with_looting
condition uses the level of looting on the item held by thekiller
entity, which doesn't exist outside the context of a loot table.