Thread:Sinthorion/@comment-26410366-20160601222235/@comment-25101690-20160601232443

The following information might be outdated (and I can't run Minecraft to verify it).

The basic syntax is:

Add as many trades as you need. Replace the (red) entity name with the correct codename of the trader entity. Replace each trade (the red tags) with the following syntax:

Count and Damage (the grey part) are both optional and can be removed. Replace each red tag with the appropriate value:
 * item ID: defines the item. Look it up in the extended item tooltips (press F3+H, then look at an item in your inventory)
 * cost: the cost in coins to use the trade, or for buy trades the money gained from using the trade
 * count (optional): the amount of items gained per trade
 * damage (optional): many items, especially blocks, use damage values to specify different subtypes. Example: wood types

Example command: ) because the commands are too long for the chat.