jamesmd95
Posts: 77
Joined: Sun Sep 16, 2012 7:47 pm
Location: Newcastle Upon Tyne
Contact: Website

Re: Minecraft server - How To

Thu Feb 14, 2013 7:32 pm

Hey Dumbledood ,
Trust me Craftbukkit + NoSpawnChunks uses MUCH less resources then the usual minecraft server jar! See my video tutorial on installing this for more info :) http://kraftyhosting.eu/raspberry-pi-minecraft-server/
rapidwhois.uk | jmdawson.co.uk

Dumbledood
Posts: 4
Joined: Tue Feb 12, 2013 7:00 pm

Re: Minecraft server - How To

Thu Feb 14, 2013 10:56 pm

jamesmd95 wrote:Hey Dumbledood ,
Trust me Craftbukkit + NoSpawnChunks uses MUCH less resources then the usual minecraft server jar!
I installed this plugin on my (hosted) bukkit server and I agree it reduces memory usage enormously. A great find for me - thanks. Can't compare to vanilla however.

(PS: I don't have a Pi yet, will get one for the upcoming half-term holiday I think)

jamesmd95
Posts: 77
Joined: Sun Sep 16, 2012 7:47 pm
Location: Newcastle Upon Tyne
Contact: Website

Re: Minecraft server - How To

Thu Feb 14, 2013 11:21 pm

Great! Pleased its helped :) I use it on some of my public servers to reduce load on the rest of my node. Who is your host?
rapidwhois.uk | jmdawson.co.uk

TheArch1tect
Posts: 17
Joined: Tue Dec 11, 2012 3:20 am

Re: Minecraft server - How To

Sun Feb 17, 2013 3:23 am

Randrade: go check up on your server; some immature kid ran around posting signs with profanity.

Metatronin
Posts: 55
Joined: Sat Aug 04, 2012 5:19 am

Re: Minecraft server - How To

Sun Feb 17, 2013 4:30 am

Did anyone ever make an image file with everything pre done?

r00x
Posts: 41
Joined: Mon Feb 04, 2013 11:05 am

Re: Minecraft server - How To

Sun Feb 17, 2013 11:40 am

Metatronin wrote:Did anyone ever make an image file with everything pre done?
Now, where's the fun in that? :D

Now that you mention it, such a thing would be handy! You wouldn't need an image file though, it would be enough to have a fresh copy of Raspbian installed and then run a single script to set everything up.

jamesmd95
Posts: 77
Joined: Sun Sep 16, 2012 7:47 pm
Location: Newcastle Upon Tyne
Contact: Website

Re: Minecraft server - How To

Sun Feb 17, 2013 12:25 pm

Im making a script for you guys now, 1 command sets it all up! :)
rapidwhois.uk | jmdawson.co.uk

jamesmd95
Posts: 77
Joined: Sun Sep 16, 2012 7:47 pm
Location: Newcastle Upon Tyne
Contact: Website

Re: Minecraft server - How To

Sun Feb 17, 2013 2:31 pm

Easy install method! This will only work on Debian based images and MUST be ran as root. Memory split must be changed to 16MB to the GPU.

wget http://cl.ly/code/0w242A2P2707/picraft.sh
sudo chmod +x picraft.sh
sudo ./picraft.sh

Wait Patiently and follow the on screen instructions. This takes around 15 minutes depending on your internet connection.


Here is the code

Code: Select all

#! /bin/sh
#(c) Kraftyhosting 2013
echo "\033[1;31mAll server files will be stored in /home/pi/minecraft/\033[m"
echo "\033[1;31mSetup will continue in 10 seconds....\033[m"
sleep 10
echo "\033[1;31mmaking directorys...\033[m"
mkdir  /home/pi/minecraft && mkdir  /home/pi/minecraft/plugins
echo "\033[1;31m'done'\033[m"
echo "\033[1;31minstalling java\033[m"
cd /opt && wget --no-cookies --header "Cookie: gpw_e24=http%3A%2F%2Fwww.oracle.com" "http://www.java.net/download/JavaFXarm/jdk-8-ea-b36e-linux-arm-hflt-29_nov_2012.tar.gz"
tar -xf jdk-8-ea-b36e-linux-arm-hflt-29_nov_2012.tar.gz
echo "\033[1;31mThats java setup\033[m"
cd /home/pi/minecraft
echo "\033[1;31mgetting craftbukkit\033[m"
wget http://dl.bukkit.org/downloads/craftbukkit/get/01845_1.4.7-R1.0/craftbukkit.jar
echo "\033[1;31mbuilding world file BE PAICENT\033[m"
echo "\033[1;31mWAITING 350 Seconds Make your self a coffee\033[m"
/opt/jdk1.8.0/bin/java -Xms175M -jar craftbukkit.jar&
sleep 350
killall java
echo "\033[1;31mWorld built\033[m"
echo "\033[1;31minstalling nospawnchunks\033[m"
cd plugins
wget http://dev.bukkit.org/media/files/586/974/NoSpawnChunks.jar
echo "\033[1;31mDone\033[m"
echo "\033[1;31minstalling screen\033[m"
apt-get -y update && apt-get -y upgrade
apt-get -y install screen
cd /home/pi/minecraft
echo "\033[1;31mMaking Server startup script\033[m"
echo screen /opt/jdk1.8.0/bin/java -Xms175M -jar craftbukkit.jar > start256.sh
echo  screen /opt/jdk1.8.0/bin/java -Xms400M -jar craftbukkit.jar  > start512.sh
chmod +x start256.sh && chmod +x start512.sh
echo "\033[1;31mALL DONE\033[m"
echo "\033[1;31mTo start your server go to /home/pi/minecraft and run ./start256.sh (256mb pi) or ./start512.sh (512mb pi'\033[m"
echo  "\033[1;31mJoin my forum http://kraftyhosting.eu/forum\033[m"
wait 20
rapidwhois.uk | jmdawson.co.uk

tonybkent
Posts: 4
Joined: Mon Mar 12, 2012 1:45 pm

Re: Minecraft server - How To

Sun Feb 17, 2013 6:17 pm

Thanks for the post. It worked flawlessly and my sons are chuffed to bits with their new Minecraft server. And I'm happy I don't have to keep booting up a laptop for them!

jamesmd95
Posts: 77
Joined: Sun Sep 16, 2012 7:47 pm
Location: Newcastle Upon Tyne
Contact: Website

Re: Minecraft server - How To

Sun Feb 17, 2013 6:48 pm

tonybkent did you use that script I made? Just wondering as it seems to still be a little temperamental.
rapidwhois.uk | jmdawson.co.uk

r00x
Posts: 41
Joined: Mon Feb 04, 2013 11:05 am

Re: Minecraft server - How To

Mon Feb 18, 2013 11:26 am

jamesmd95 wrote:tonybkent did you use that script I made? Just wondering as it seems to still be a little temperamental.
Hey, it worked well over here... better than the earlier versions anyway :lol: ah, the perils of Notepad eh!

One thing I do notice - once it gets to the point of starting the server and creating the Minecraft world, it starts spewing arrow characters '>' to the screen. Just endless reams of >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>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>>>>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>like this! :D >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>


Otherwise it seems to work great in my test environment (Qemu sim of Raspbian).

User avatar
tzj
Posts: 302
Joined: Thu Jan 05, 2012 3:09 pm
Location: Barnsley, SY, UK

Re: Minecraft server - How To

Mon Feb 18, 2013 1:38 pm

Maybe that's to tell you everything's OK... ;)
http://www.themagpi.com <---- Checkout the MagPi
(The MagPi - Co-Founder)

jamesmd95
Posts: 77
Joined: Sun Sep 16, 2012 7:47 pm
Location: Newcastle Upon Tyne
Contact: Website

Re: Minecraft server - How To

Mon Feb 18, 2013 6:06 pm

Ummm I can fix this.....(frantically googling the fix) VER 0.2 shall be released when I work this one out. Hopefully tonight :)
rapidwhois.uk | jmdawson.co.uk

jamesmd95
Posts: 77
Joined: Sun Sep 16, 2012 7:47 pm
Location: Newcastle Upon Tyne
Contact: Website

Re: Minecraft server - How To

Mon Feb 18, 2013 8:01 pm

Get the new script here! http://kraftyhosting.eu/tutorial-raspbe ... er-update/

Please comment if you have success :)
rapidwhois.uk | jmdawson.co.uk

ah13
Posts: 1
Joined: Mon Feb 18, 2013 5:45 pm

Re: Minecraft server - How To

Mon Feb 18, 2013 9:07 pm

working great! thanks

Take a look - rpi.mainwebs.com

Siqued
Posts: 1
Joined: Mon Feb 18, 2013 9:21 pm

Re: Minecraft server - How To

Mon Feb 18, 2013 9:49 pm

Can u maybe send me your minecraft server folder? :)

jamesmd95
Posts: 77
Joined: Sun Sep 16, 2012 7:47 pm
Location: Newcastle Upon Tyne
Contact: Website

Re: Minecraft server - How To

Mon Feb 18, 2013 10:42 pm

I can, however this does not setup java. I suggest following this guide for the easiest installation. http://kraftyhosting.eu/tutorial-raspbe ... er-update/
rapidwhois.uk | jmdawson.co.uk

ChrisJW
Posts: 8
Joined: Mon Feb 11, 2013 8:13 am

Re: Minecraft server - How To

Mon Feb 18, 2013 11:44 pm

Just a quick update - sorry for the delay - had a few busy weekends/nights.

My setup - basically manually done the same as the script that has been put out above:
  • 512MB Pi (minimal memory dedicated to video - I had to use 64MB here - much less and I had instability booting for some reason)
  • Overclocked (via raspi-config overclocking option - set to 1000MHz turbo mode so that it scales as needed)
  • Raspbian
  • No X (also disabled alsa-utils since I don't need sound and it was auto-starting)
  • CraftBukkit (-Xmx400M)
  • NoSpawnChunks
  • Nether on
  • NPCs on
  • Monsters on
  • View distance 4
  • Build height 128 (not sure if this does anything useful)
Just gave it a quick go then - seemed to be perfectly responsive (for 1 player).

I'll test some more later and try find a few friends to jump on (preferably while I'm connected via LAN to rule out network lag).

tonybkent
Posts: 4
Joined: Mon Mar 12, 2012 1:45 pm

Re: Minecraft server - How To

Tue Feb 19, 2013 12:01 am

jamesmd95 wrote:tonybkent did you use that script I made? Just wondering as it seems to still be a little temperamental.
Hi jamesmd95 - sorry, I didn't - I just followed the instructions from randrade at the start of the thread. I'll certainly give it a go though. Unfortunately the first day of actual use didn't go too well and we've put their Minecraft server back on a Windows laptop as the Raspi was suffering from performance issues. I tried overclocking at various levels, but it wasn't very stable. My SD card is slow and I've ordered a class 10 45MB p/s card that I normally use in my video camera.

I'll give it a go again when that arrives later in the week. Thanks for the script though.

NeonCreeper
Posts: 7
Joined: Tue Feb 19, 2013 9:08 pm

Re: Minecraft server - How To

Tue Feb 19, 2013 9:15 pm

I cant run one on my laptop as i am not an administrator (on my laptop, not mc server) and it needs to have a authourised way through the fire wall. would this be a problem on this?n it needs to be public but whitelisted, and i need a way find the ip. can anyone help?

jamesmd95
Posts: 77
Joined: Sun Sep 16, 2012 7:47 pm
Location: Newcastle Upon Tyne
Contact: Website

Re: Minecraft server - How To

Tue Feb 19, 2013 9:58 pm

you need to open ports on your router. see http://portforward.com/
as for the ip: http://www.whatsmyip.org/
rapidwhois.uk | jmdawson.co.uk

dh04000
Posts: 62
Joined: Tue Oct 04, 2011 9:18 pm

Re: Minecraft server - How To

Tue Feb 19, 2013 10:00 pm

Has anyone tried tools to reduce server lag like pTweaks with craftbukkit?

There are multiple server lag reducing tools which could help these servers run.

jamesmd95
Posts: 77
Joined: Sun Sep 16, 2012 7:47 pm
Location: Newcastle Upon Tyne
Contact: Website

Re: Minecraft server - How To

Tue Feb 19, 2013 10:15 pm

If you look through the thread you will find that nospawnchunks is used. This is the only plugin that makes a difference that is worthwhile. clearlagg also helps a tiny bit.
rapidwhois.uk | jmdawson.co.uk

ChrisJW
Posts: 8
Joined: Mon Feb 11, 2013 8:13 am

Re: Minecraft server - How To

Tue Feb 19, 2013 10:38 pm

Had a bit of a test for half an hour last night with the Mrs. Seemed reasonably responsive except for a few points.
  • When we explored separately a little (I presume generating new chunks for both of us)
  • When the sun came up (I think due to there being about 10 monsters in the vicinity to set on fire and burn off).
Would be interested to hear any progress people have with other plugins to tweak/reduce cpu usage - that seems to be the limiting factor so far.

jamesmd95
Posts: 77
Joined: Sun Sep 16, 2012 7:47 pm
Location: Newcastle Upon Tyne
Contact: Website

Re: Minecraft server - How To

Tue Feb 19, 2013 10:40 pm

ChrisJW are you using nospawnchunks?
rapidwhois.uk | jmdawson.co.uk

Return to “Networking and servers”