Minecraft wiki entry for Creating_custom_entity_add-ons, associated text: Trade tables are stored as json files and you can create one similar to vanilla trades prior village & pillage which use the old trading system or after village & pillage which uses a economic trade(like wandering trader trades).