I've been trying to make it so that you can tame a witch and then trade with it. I've got it so that you can tame the witch (with a blaze rod), but when I try to add the behavior to the witch to allow me to trade with it ("minecraft:behavior.trade_with_player") it doesn't work - I can't trade with the witch. I do have the trade tables available (currently identical to the table for the farmer villager).
Here is the code that I have added to the witch. Note that I'm currently just trying to be able to trade with the witch, and will worry about making it only so that you can trade when the witch is tamed at a later time.
"display_name": "entity.villager.farmer", // I have also here tried "witch" and "entity.witch"
"table": "trading/farmer_trades.json" // I have also here tried "trading/witch_trades.json", a file which does exist, and still get no result
That's the first decent bit of code for the witch there. Is there anything wrong with this? Why can't I trade with the witch?
(In addition, it seems that the game crashes when I try to exit my world much more frequently as I'm trying to figure out how to trade with the witch. May be a bug on my part, but I'm not sure, which is why I'm posting this here.)