From time to time I host a server for myself and a few friends, but new people are welcome too!
Default game directory:
Windows: C:\Users\YOURUSERNAME\AppData\Roaming.minecraft (%APPDATA% in file explorer)
Linux note: You can launch .jar files on with “java -jar file.jar”. Package with java is named “jre8-openjdk” on Arch and “openjdk-8-jre” on Ubuntu.
Pirated MC note: Use TLauncher-MCL.jar included in the download instead of the normal Minecraft one. There's also is an account switch in game which lets you choose the nickname.
Clear all items on the ground - /kill @e[type=Item]
Main place to get mods some mods rarely don't use Curseforge but a build server or a webpage (IC2 and Mekanism come to mind)
-Xms is startup memory and -Xmx is maximum allowed memory. -Xms8G -Xmx8G - makes minecraft start with 8GB and will let allocate memory up to 8GB as needed… This is useful as reallocation is costly so let's just go with max.
java -jar forge-*-installer.jar --installServer #Will install/update server + forge in the current directory.