SPOILER ALERT
You need to have level 2 of restoration and three adept or master builders. Then you need to drop them on the machine all together and they will fix it.

When it rains, put a villager on the machine and a seed will appear. You can plant a maximum of three seeds total.
