Folia is an experimental fork of the PaperMC Minecraft server software that introduces regionized multithreading, allowing the server to use multiple CPU cores by dividing the world into independent regions. It aims to significantly improve performance for large servers by preventing localized lag from affecting the entire server.

Our daughter loves to build redstone rail systems and other devices.  Redstone eats up CPU cycles. Java Minecraft puts most of the processing on 1 vCPU.  Folia solves this issue with lag from Redstone.  

sudo add-apt-repository ppa:openjdk-r/ppa

sudo apt update

sudo apt install openjdk-21-jre-headless

sudo ufw allow 25565

sudo apt install screen