If you want a server setup using Burn in the Sun with zero effort, get a server with BisectHosting and receive 25% off your first month as a new customer using the code kreezxil
Normally, only skeletons, zombies, and other mobs will burn in the sun. With this mod installed and if you don't change the config, chickens will too! Yes, I enabled them in the config, so you can see how to do it.
This mod requires configuration.
REQUIRES FABRIC API and CLOTH CONFIG
You can set players, any mob, or the mobs from an entire mod to burn in the sun.
There's even a super global setting if enabled makes every living thing burn in the sun!
Can be run server side only.
See the sister mod
https://www.curseforge.com/minecraft/mc-mods/mob-sunscreen