I recently made a little vanilla server (not papermc etc.) with a few friends of mine. I have already built a few farms like a gunpowder creeper farm and a guardian farm. For both of those the spawn distance is abused.(You might know the idea of when you stack up like 80 blocks)

After all of those had problems working, my question is why? Is the mechanics different on a server than with normal singleplayer? If yes what can I do to fix this or is there even a fix. Because you always see all these big creators and streamers playing on their SMPs and yet making huge farms.

Thanks in advance to everyone going through reading this and trying to help!