Hey there everybody my name is ryan this is my raspberry pi sprout welcome back to another episode of sprout tutorials today we’re going to be looking at how to set up a modded minecraft forge server on our raspberry pi luckily this is pretty easy it’s pretty similar to a normal paper server that I’ve covered in another video but this one allows you to do mods and lots of cool stuff the tutorial i found for this is a little dated it’s from december 1st 2020 but i’ll link it link it in the description and we’ll uh we’ll go ahead and follow It kind of step by step and add a few extra things to it so first uh the first thing you want to do of course is setting up the environment um with the raspberry pi os if you don’t know how to do that excuse me I did a video i’ll link it in the description and also put a video card on how to get a 64-bit operating system going it’s really important that you have a 64-bit os running because your server needs a lot more ram to run a modded minecraft server raspberry pi’s Have a maximum of eight so it’s recommended that you do maybe six maybe even seven if you’ve got nothing else going on in your raspberry pi so check out my video on how to do that luckily they have a stable 64-bit os version now the next thing you’re going to want to Do is ssh into your pi which i’ve done here and you can do that of course by doing something like ssh pi at whatever your local ip address is if you don’t know what that is then you can check out another video that i made on how to set up a local ip But uh or excuse me a static ipo i’m sorry about that a static ip address but we don’t really need to do that now because i’ve already done it uh once you’re in there what we’re going to do is make a directory for our server so What i’m going to do is i’m going to cd over to my op directory that’s just where i like to have these things but you can do it anywhere you want and i’m going to do sudo mkdir which is make directory and we’ll just call this forage server okay Oh it says it already exists it looks like i got a little ahead of myself okay well there it is let me just go ahead and do how about this pseudo rm minus r forage server and then just so you can see me do everything here okay so we’re In opt we’re going to do sudo mk dir forge underscore server this is all you know kind of repeating myself but yeah there it is and if we cd into the forge server you’ll see that there’s nothing here not yet let’s go ahead and clear that Next what we want to do what they don’t mention in this tutorial excuse me sorry about that i should drink some water uh we want to set permissions for this directory so what i’m going to do is i’m going to run pseudo so we don’t have to Run pseudo all the time and we don’t have to use our root privileges so i’m going to do sudo a couple more times here i’ll do suda um c h g r p which is change group um or actually no we need to create a user first and i’ve covered this before But if you don’t remember it’s a pseudo ad user and we’ll just call this user forge uh we’ll give them a nice little password here okay don’t tell your friends and family hopefully it’s a nice good long password or something okay and then we’ll clear that up and Now we’ll ssh into our pi as user forge user forge ssh forage at sprout okay hopefully i got that right cool so now we are logged in as userforge and we’re going to give user forge permissions so what i’m going to do is i’m going to do suda chgrp Forge and then we’re going to do forge server okay and then we’ll do sudo chown forge and then forge server cool now if we do a quick ls minus la we’ll find our where is it our forge server here it is and you’ll see that user forge has permissions for Everything inside of this directory so i’m going to hop over to user forge and we’re going to cd over to our directory and again if we do ls there’s nothing here now what we can do is we want to get the forage.jar file so i just went to google i typed in forge 1.18.2 download you can see they updated it two days ago they update this every now and then so go ahead and download this i already downloaded it and i’m going to go to my macbook’s downloads directory and i’m going to scp and i believe it’s just forge there we go 1.18.2 installer.jar we’re going to send that over to forge at sprout okay i think that should be right okay we’ll do our password okay and there it goes it did a little uh headless transfer there so we hop back over to our forge user we’ll cd We’ll do ls and boom there it is now what we want to do is cp which is copy and we’re going to put this over to opt forge server okay and if we cd back to it we do an ls now we’ve got the jar file in there super So the next thing we want to do is what we want to Probably run suda app update that’s a good idea just before we install anything on our machine we generally want to do an update so here on sudo apt update i believe my machine should be up to date right now and if it’s not then i will update it So let’s see what the pi tells us once it’s done reading these package lists okay it says they’re all up to date if they’re not you can do sudo apt upgrade and that will upgrade your machine to the most recent version the next thing you want to do of course Is install java again i’ve got another video on that if you don’t know if you’ve updated it or not you can do java dash version and yeah you can see i’m running on 17.0.1 last time i updated it was a while ago but i really have no reason to update it To a new version until it becomes a requirement again i’ve got another video on how to update your java so check that out if you don’t know how i’ll cover that excuse me i won’t cover that now i really should get some water so you’ve got your updated machine You’ve got your java installed environment they run through how to do that here you can also run sudo apt-install default default to jdk but we’re not going to do that so like they say it’s finally time to install the server so let’s hop back over to forge user here And what we’re going to do is we’re going to run java dash jar forge oh whoops no sorry about that i just did tab complete oh no yeah that is right yeah we do java dash jar forge it’s going to be like our installer file You can rename it if you want but this is just what mine is so just make sure it’s this download file that you’ve got and then we’re going to do dash dash install server and press enter cool and we don’t have to run sudo or anything because we have permissions so Let’s make this a little bit bigger i’m going to minimize this for a second and you’ll kind of see what it does and this might take a while so while we’re waiting for this to happen um i’m probably gonna get some water uh so i’m not coughing through this Whole video and we will come back when it’s done downloading as i said this will probably take some time it’s gonna depend on your internet connection and so on so let’s wait and yeah there it goes so we’ll come back when this is finished downloading okay cool So we should be done now it says the server installed successfully and we can delete the installer if we want so we’ll just do ls and now we have some things in here that’s really cool so i’m going to go ahead and clear this so it looks a little nicer Next what we want to do is of course the whole point of this is to get mods in here so before i forget i’m going to hop over to my downloads folder still coughing sorry guys and you can download any mod you want if you just hop over to google and type in Minecraft mods there’s loads out there but it should be a jar file the one i’m going to do is it’s called tough as nails and it’s really important here that we clarify that the version of your mod should be compatible with the version of your forge client they will not work together if They are different versions that’s something kind of nice about paper servers with plugins is sometimes it works sometimes it doesn’t um but for forage as far as i know it is completely complete it needs to be completely the same version so we’ve got a 1.18.2 mod here we’re going to just Scp that over to our pi and let’s hop back over here let me cd that will do ls it’s probably a faster way to do this i know you can do it like straight into the directory but i kind of forget at the moment okay well cp Tough as nails and we’ll do opt forge server okay we’ll cd over to opt forge server okay cool so there’s that uh we’ll need that later we need to put it in a mods folder but we don’t have that yet now what we want to do is real quick hop into our Run.sh so our little tutorial here back in 2020 maybe it was the case i’m not sure but i believe that you got the a different kind of looking directory here this one gives you a bash script which is really nice so let’s get in there dot sh so we’ll do nanorun.sh and you’ll See here that it’s talking about how it needs certain jvm and program arguments and where we can find these is where we can find these somewhere else not here but we’re going to run this script what we want to do is we want to get into this little thing here so we’re Going to do nano user jvmrx.txt and you’ll see here that they’re talking about the xmx and xms this might look familiar from vanilla or paper servers and they say a good default for a modded server is four gigs and it says uncomment the next line to set it so i’m gonna uncomment this And i’m gonna do What is it they said probably set the minimum to this so i’m to take their advice i’m going to copy that i’m going to paste it here and i’m going to do xms 2.5 and i’m going to do this one probably 4 gigabytes because i’ve actually got another server Running on here and i don’t want to overload my pi so i’m going to do control x press y for yes enter and this is another good opportunity to show you another kind of neat function of the pi which i discovered quite recently is called h-top So here um you can see that my raspberry pi is using out of the 7.63 allocated to it um i guess it’s not the full eight because they probably for good measure keep the full eight away from you just in case you really screw up but it’s running at 2.72 because i have Another server running at the moment so we are going to allocate 4 gigabytes to this so it might get up to a little under seven okay so we’re just gonna play it safe but um i do recommend if you’re gonna um do a modded minecraft server maybe put It all the way up to seven why not you can get a lot of mods on there get a lot of players and so on so let’s let’s nano in there one more time just to make sure we got it okay so we have this here and this there okay We’ll do control x now what we’re going to do is we’re going to run the bash script so i’m going to do bash run dot sh we’ll press enter and it should not uh run completely at first because it’s going to load a couple things and then i believe we need to Agree to the eula the eula agreement so let me just okay see there you know it’s going it’s doing something let’s get our little tutorial here again um right so it’s going to make a server.properties file i need to get in there don’t let me forget that it’ll Make a world and a mods folder okay so you’ll see it failed let’s make that bigger again we’ll do ls we’ve got a couple more things here we have a eula.txt Script or text i’m sorry we do knit let’s do nano text i’ll press enter we’ll change the eula from false to true okay we’ll do control x enter there we go okay cool so now we can do bash run dot sh and let’s see this thing go While it’s running in the meantime i’m going to open up this and while we’re waiting for that to run i’ll kind of make it like here make sure that you have the latest forage version whoops don’t know want that open thank you you want to make sure you have the Latest 4-h version in your minecraft launcher the way you do that is again you go to the forage downloads you download it’s the same jar file that you have for raspberry pi as you have for the launcher actually so navigate to where that is in your downloads folder go to installations Click new installation you can go here to browse and it should take you to the default directory whether you’re on windows or mac or whatever uh if not just go to google and like search you know how do i find my minecraft directory for windows or mac or linux or whatever Go to versions and then it should be in here i’ve already you know done it so it should be the jar file or the folder i forget but you’ll click open and then you’ll uh what you’ll type create but i’ve already done that so um Okay so let’s see here so yeah just make sure you have that i’ve got that ready to go here uh and in fact i’m gonna press play so that can load in the background while we’re waiting okay some interesting things are happening here let’s take a look um okay so far so good I don’t think there’s any big problems here yet said it failed to load properties from file server.properties because there are no properties yet i believe so that should be okay and part of me is thinking actually because i’m running my other minecraft server on port 25565 this may give me an error because The default is to run it on 25565 so i’m predicting now that we are going to get an error message but that will give us a chance to go into server.properties um and change that and if you don’t know how to change that we can check that out Yup there it is failed to bind to port because it tried to go on 25565 great so let’s clear that we’ll do an ls now you’ll see we’ve got a couple different things let’s go into the server.properties i’m gonna nano in there and i’m gonna go down change all of this To what let’s pick an interesting port also i want to kind of screw with the max world size let’s make it i don’t know uh i don’t know a thousand or something uh you can do lots of stuff in here um we’ll do max players five or why not four Okay here we go so query port i’m gonna change that to seven zero i’m gonna change Arcon to seven zero if you don’t know what that is i’ll do a video on that in the future i’m always telling myself i’ll do arcon change that to the the port okay we’ll do control x y yes clear now let’s do it one more time we’ll do bash run dot sh And if you’re griefing at me and being like oh god this you know it’s taking so long um one thing i’ve learned with raspberry pi is that there’s lots of errors so i find it helpful too to show you the problems that can happen so if you’re still watching you know you’re A champion okay and that should be good now okay so let’s bring up our little launcher here uh there it is and you can see we’ve got a little asterisk there and there we go that is our forge client it might look a little different but pretty much the same Um to our oh wait i just remembered something okay because i saw the word mods i’m going to ctrl c this and stop it we never moved our mod into the mods folder so let’s do that too so i’m going to do cp tough as nails into mods Okay and then i’ll do a quick uh cd into the mods directory and there it is okay so third time’s the charm right we’re gonna do bash run dot sh boom and we are gonna let that uh run okay cool and let’s uh get this over here so let’s We can just kind of take a look at our uh our forage client here we click mods i’ve already got tough as nails ready to go because i’ve done that before but i wanted to show you again you know how to put that into your mods folder headlessly And you know this whole operation is really cool because normally it takes a gui interface some sort of graphic user interface but with a raspberry pi we can do everything headlessly from anywhere which is great cool and you can see that it’s loading this tough as nails mod here I’ve never played with many more mods so excuse me again uh it might load uh all of them here i’m not too terribly sure but so far this has worked for me so let’s wait a minute here and uh we will kind of watch the whole process of this thing loading And i’m not sure if you can hear this noise or not so turn it down just a little bit as beautiful as the music is right okay we have a bunch of a bunch of warnings here but warnings are not errors so um i’m not too worried about that okay there we go Okay interesting and you can see my download is even a little old it’s saying it’s 0.32 and the most recent one is 0.36 so whatever i mean as long as we don’t get a red error message more or less this is fine um and also we’re running it for the first Time so you can see it’s correcting a couple things which is okay so yeah again we’ll just kind of wait for that to uh you know do its thing okay okay there we go minecraft recipe manager that’s like the sort of the start there all right and let’s just hop into the Multiplayer tab um because this is where we’re gonna load our server um so here’s my other minecraft server that’s running on raspberry pi and if you see i can hover over here it says incompatible vanilla server oh interesting and this one says it’s old not sure what that means incompatible version Well maybe that’s because i haven’t got it up and running yet but i hope that’s the case okay let’s actually hop over to our h-top okay now remember before it was like 2.7 i think now we’re at 4.82 you can see that this forage server is taking up quite a bit of ram And we haven’t even loaded the world yet so i we can probably expect that to just keep climbing um and if you’re not familiar with h-top we can kind of run through that a little bit too i can do for mac it’s uh fnf what four Excuse me oh we just want to do f4 i think no control f4 maybe no it’s fnf4 right no okay i’m not sure oh my god look at it go look at it climb okay so maybe i just needed to click on it fn f4 there we go okay so i’m just Doing filter if we type in the word forge that’ll give us our user forge over here on the on the left hand side and you can see all the all the things running under that and you can see that it’s taking up you know 3.2 gigs no how much how much uh Yeah 3.276 um yeah so quite a lot okay very interesting okay and let’s go back to our f4 and we’ll kind of delete that so we can see everything running here okay great so let’s hop back over here okay you can see it’s preparing the world so preparing spawn area that’s gonna Probably take a minute i noticed that this takes a little bit longer than the uh the paper mc server to get started but um i think that’s usually just on the first time because it has never you know prepared a world so okay anyway let’s go back into multiplayer uh let’s edit this Okay right forge test okay so also if you don’t know how to do this let’s just delete this real quick okay um to get into the forge server you want to type add server let’s call this forge test okay and our server address this should Be your local i or excuse me either your local ip or your static ip for me it’s my static ip with the port of 25570 so we’ll do done and i don’t know why that says old it says incompatible version um which maybe we need to review something here um Let’s go back to our uh let’s see here okay we’re gonna exit this okay we’re gonna cd over to opt forge server we’ll do a quick ls and we’ve got 1.18.2 i wonder if it’s saying that because We don’t have the most latest version which i think what was it three six or four zero anyway let’s wait for it to load and we’ll kind of see why it’s saying that i’m not i’m not entirely sure why yeah i understand this one because it’s uh It’s paper mc but again let’s just be patient and uh we’ll see what happens so all right so it says it’s done now let’s uh go ahead and refresh this okay there we go so i did not need to worry about that we’ve got a little check there three mods Present compatible fml modded server let’s connect and see what we see all right here’s the moment of truth all right and it says i’ve connected there so um let’s give it a minute because you know this is a macbook so it’s nothing exciting and there we go we have Successfully connected to our modded server uh let’s go ahead and hop over to our h-top and you’ll see that we’re running at a massive 6.13 gigs with one player in one mod this server is running at 3.5 wow 3.5 gigs and that’s without even the world loading so again you can see how If you want to get even just a couple friends on here it’s really important that you probably uh get this server seven gigabytes as much as you possibly can and that’s it guys so you can see i’ve got this thing called climate clemency what’s cool about this mod is it does Temperature and thirst so when that clock runs out um i am going to have to worry about the sun and the desert and weather and all sorts of things which is really cool because you can do that in modded minecraft and lots of other things anyway guys this is it thanks for Watching um be sure to like and subscribe and all that good youtube stuff and i will see you in the next video so long Video Information
This video, titled ‘How to make a Minecraft Forge Server w/mods on Raspberry Pi!’, was uploaded by Sprout Tutorials on 2022-04-04 20:26:03. It has garnered 7963 views and 148 likes. The duration of the video is 00:24:00 or 1440 seconds.
This video will cover how to create a Forge Server on your Raspberry Pi which is capable of using mods. It also covers things like users, htop diagnostics, and much more!
Old Tutorial : https://curtmorgan3.medium.com/hosting-a-modded-minecraft-1-16-4-server-on-a-raspberry-pi-45dec2fd14c6#:~:text=Launch%20Forge%20from%20your%20Minecraft,field%20and%20press%20Join%20Server.
Forge Installer : https://files.minecraftforge.net/net/minecraftforge/forge/
Forge Mods : https://www.curseforge.com/minecraft/mc-mods
0:00 Intro
0:35 Setting up your OS
1:41 Making Users and Directories
3:50 Download the Forge Installer
06:13 Install Forge Installer
07:38 Download and insert mods
09:03 Adjust JVM Arguments
11:33 Run the Bash Script/Server
12:43 Download Forge Launcher
14:38 Investigate Failures!
16:13 Move mod into mods directory
16:29 Run server
21:02 Create Server on Launcher