This is my first mod, so it's got a bit of bugs in it. If you want to help, tell me please. This mod allows you to trade gold to piglin by using the "interact" feature. There are only pearl trades at this time.
Mobile: Go up to a Pigman and hold gold. The Pigman will follow you. If you hold down on him, or press the interact button, he gives you an ender pearl! Keyboard/Mouse: Go up to a Pigman and hold gold. The Pigman will follow you. If you right click him, you get and ender pearl! Known bugs/glitches:
If you are holding more than 1 gold while trading, it doesn't take any gold but still gives pearls
The interact button says "Milk" [FIXED]
Installation
Just click on the link. If you want to help or improve, please comment below. This addon has no license, but if you edited, I would appreciate it if you showed me. This works on any version that has pigmen, so I think 1.15 and below, although this was made for 1.14.