Gnaprout
Posts: 2
Joined: Mon Jul 01, 2019 7:07 am

Raspberry 4 & minecraft server?

Mon Jul 01, 2019 7:10 am

Hi everyone,

Since Java8 is no longer supported with Raspbian Buster, do you have a tutorial to install a MC server on Raspi 4?

User avatar
Gavinmc42
Posts: 3172
Joined: Wed Aug 28, 2013 3:31 am

Re: Raspberry 4 & minecraft server?

Mon Jul 01, 2019 8:29 am

You might have to wait until there is a 64bit OS for the Pi4
https://www.raspberrypi.org/forums/view ... 4&t=231660
I'm dancing on Rainbows.
Raspberries are not Apples or Oranges

User avatar
rpiMike
Posts: 815
Joined: Fri Aug 10, 2012 12:38 pm
Location: Cumbria, UK

Re: Raspberry 4 & minecraft server?

Mon Jul 01, 2019 8:39 am

You can download Oracle Java8 and install it :

https://www.oracle.com/technetwork/java ... 33151.html

or my Minecraft install does this for you:

https://www.raspberrypi.org/forums/view ... 8&t=243946

Gnaprout
Posts: 2
Joined: Mon Jul 01, 2019 7:07 am

Re: Raspberry 4 & minecraft server?

Mon Jul 01, 2019 9:14 am

Thanks for answers !

I follow this tutorial and it seems to work (just have to replace the version number) : https://blog.livthomas.net/installing-j ... erry-pi-3/

Jtreferee
Posts: 1
Joined: Mon Jul 08, 2019 12:52 pm

Re: Raspberry 4 & minecraft server?

Mon Jul 08, 2019 12:53 pm

Hi - have you got this working? If so, how does it run? I'm very interested in getting this running but can't afford to buy an RPi only for it to not work..

Thanks!

JT

ayitzyaboi
Posts: 1
Joined: Fri Jul 12, 2019 6:36 am

Re: Raspberry 4 & minecraft server?

Fri Jul 12, 2019 6:42 am

Hey, so I have my server up and running on my Pi 4, so far runs pretty great. I’ve had no connection issues, Ram issues, or power issues yet. The only problem I can see arising is that I can’t seem to get more than 2GB to allocate for the server. Basically, when I run the java file, I can only specify up to 2000 MB using the Xmx modifier. Anything passed that and I get an error. Anyone else having this issue?
I’m running Raspbian stretch with a spigot server.

hdtv35
Posts: 3
Joined: Mon Jun 20, 2016 8:26 pm

Re: Raspberry 4 & minecraft server?

Wed Jul 17, 2019 10:27 pm

Just wanted to comment on my experience. I'm using Raspbian Buster with Paper Spigot as the server. OpenJDK11 Java 11 for my version of Java. My script commands are:
"java -Xms1G -Xmx2G -XX:+UseG1GC -XX:+UnlockExperimentalVMOptions -XX:MaxGCPauseMillis=100 -XX:+DisableExplicitGC -XX:TargetSurvivorRatio=90 -XX:G1NewSizePercent=50 -XX:G1MixedGCLiveThresholdPercent=35 -XX:+AlwaysPreTouch -XX:+ParallelRefProcEnabled -Dusing.aikars.flags=mcflags.emc.gs -jar [PATH_TO_JAR]"

Performance isn't bad, igniting ~200 TNT results in very little lag and I don't get any rubber-banding with the mobs. Currently set render distance to 6 to preserve performance. CPU is clocked at 1750MHz with a heat sink and case. I'd also recommend placing the files on an external 3.0 USB drive with better Write/Read performance.

I'd say for a small server for some friends things would be pretty tolerable.

User avatar
HawaiianPi
Posts: 4258
Joined: Mon Apr 08, 2013 4:53 am
Location: Aloha, Oregon USA

Re: Raspberry 4 & minecraft server?

Wed Jul 17, 2019 11:03 pm

hdtv35 wrote:
Wed Jul 17, 2019 10:27 pm
Just wanted to comment on my experience. I'm using Raspbian Buster with Paper Spigot as the server. OpenJDK11
For what version of Minecraft?

I've been running a Java 1.12.2 server on a 3B (now 3B+) since 2017 for a small group of friends, and it works surprisingly well.
  • Raspberry Pi 3 Model B Plus Rev 1.3 in a Flirc heatsink case
  • Raspbian Stretch Lite
  • Oracle Java 8 (java version "1.8.0_201")
  • SpigotMC with render distance 10
  • SanDisk Ultra Plus A1 64GB micro SD card
  • Ethernet to router (although it was originally tested on wireless and that worked fine).
Tried 1.13 when it first came out and found it was too much for the little Pi. I haven't tried any later versions (running my "Broken Laptop" 1.13.2 server on an old Sony laptop, which is, in fact, broken).

Been meaning to try Buster and OpenJDK11 but haven't gotten around to it.

Might give my 2GB Pi4 a try when my 4GB models come in (if they ever do).
My mind is like a browser. 27 tabs are open, 9 aren't responding,
lots of pop-ups...and where is that annoying music coming from?

Return to “Gaming”