I'm trying to make it so that when a villager runs out of stock of a specific trade, it removes that trade from the villager.
I'm stuck at the part where I remove the trade. So far I can only wipe the villager's trades or add a new trade, but not remove a specific trade.
I've tried using
/data modify with the path : Offers.Recipes[{buy:{id:”minecraft:stone”},sell:{id:”minecraft stone”}}]
I've also tried it with the Count tag, but it does not work either.