I'm gently coming back to modding after a 5 years and a half break. A have a lot to catch up, so I decided to create mini mods to work Forge mechanics.
Here's the first one of the coming mods.
This mod allows players to trade items with the others.
It adds a command, usable by all players : /trade send [player] which sends an invitation to [player] (change it to the player name, of course). This player can accept or refuse the trade (with /trade accept or /trade refuse). After 30 seconds, the request is automatically refused.
If the trade looks fair to you, you can click on the ✓, it will notify the other player you accepted the trade. If you want to modify your trading inventory after accepting, you can click on the ✗, which will notify trader in the same way. If you click on a slot (or the other player clicks on a slot), it will automatically cancel your acceptance and the other player.
You can't get the trader's items directly from their slot, but you can watch them (for the enchantments, for instance).
To cancel the trade, just click "Cancel" button or leave the screen, it will transfer all the items back to their owner's inventory. The same will be done if one of the player disconnects.
The mod has a 100% compatibility with others Forge mods, which means you can trade other mods items.
It was translated to English (en_us) and French (fr_fr), feel free to push other translations to the github repository !
You can download the mod here and install it like any other Forge mod (by dragging the mod file into the "mods" folder).
The GitHub repository can be found on my GitHub account :