Tutorial:Enchanted Golden Apple farming
Use at your own risk.
The Enchanted Golden Apple is one of the most powerful items in the game, and one of the rarest, as it is impossible to craft since 1.9, but these farms can give you an infinite amount of enchanted golden apples.
Mechanics
Before 1.21
Enchanted golden apples have a chance of being in a chest in ancient cities of 8.4%, which is higher than any other structures, that means that has the highest probability of having two enchanted golden apples in one chest, by using a similar method to the Rays Works' bedrock farm, you can duplicate the enchanted golden apples by taking them out of the chest, and then resetting the chunk.
After 1.21
Another way to farming enchanted golden apples is by creating a server with 129 or more players, because a vault and an ominous vault keeps track of only the most recent 128 players that opened the vault, if 129 players open the same vault, then the first player that opened it can open it again.
1.21 and above
Enchanted golden apples have a 22.5% chance of being in an ominous vault. By having 129 or more players on the same server, you can make them to open one ominous vault continuously, farming an infinite amount of enchanted golden apples.