Edit: small change will fix up the issue, minecraft_server.jar should be named minecraft_server.1.6.2.jar, then the forge setup works fine.
Search Criteria
Package Details: minecraft-server 1.21.3-1
Package Actions
Git Clone URL: | https://aur.archlinux.org/minecraft-server.git (read-only, click to copy) |
---|---|
Package Base: | minecraft-server |
Description: | Minecraft server unit files, script, and jar |
Upstream URL: | https://minecraft.net/ |
Keywords: | bash minecraft official script server |
Licenses: | custom |
Conflicts: | minecraft-canary, minecraft-server-systemd |
Submitter: | sorcix |
Maintainer: | edh |
Last Packager: | edh |
Votes: | 164 |
Popularity: | 0.066142 |
First Submitted: | 2010-11-29 15:52 (UTC) |
Last Updated: | 2024-10-23 19:51 (UTC) |
Dependencies (8)
- awk (gawk-gitAUR, busybox-coreutilsAUR, gawk)
- bash (bash-devel-static-gitAUR, bash-devel-gitAUR, busybox-coreutilsAUR, bash-gitAUR)
- java-runtime-headless (jre10AUR, jre12AUR, jdk10AUR, jdk10-openj9-binAUR, jdk7AUR, jre7AUR, amazon-corretto-16AUR, jdk16-adoptopenjdkAUR, jdk8-armAUR, liberica-jre-11-binAUR, jdk11-j9-binAUR, jre11-jbr-xdg-headlessAUR, jre16-openjdk-headlessAUR, jre14-openjdk-headlessAUR, jre15AUR, jre14AUR, jre13AUR, jre16AUR, jre18-openjdk-headlessAUR, amazon-corretto-19-binAUR, liberica-jre-11-full-binAUR, jdk13-openjdk-binAUR, liberica-jre-8-full-binAUR, jre-openj9-headlessAUR, jre12-openjdk-headlessAUR, jdk11-dragonwell-standard-binAUR, jdk11-jetbrains-binAUR, zulu-15-binAUR, jdk20-openj9-binAUR, zulu-13-binAUR, jdk8-dragonwell-extended-binAUR, jdk8-dragonwell-standard-binAUR, jdk11-dragonwell-extended-binAUR, jdk17-dragonwell-standard-binAUR, jre11AUR, jdk8-j9-binAUR, jdk7-j9-binAUR, jdk7r1-j9-binAUR, jre13-openjdk-headlessAUR, jre15-openjdk-headlessAUR, jdk8-openj9-binAUR, jre-ltsAUR, microsoft-openjdk-11-binAUR, microsoft-openjdk-17-binAUR, microsoft-openjdk-21-binAUR, liberica-nik-24-full-binAUR, zulu-17-binAUR, zulu-11-binAUR, zulu-8-binAUR, liberica-jdk-17-full-binAUR, liberica-jdk-11-lite-binAUR, liberica-jdk-11-full-binAUR, liberica-jdk-11-binAUR, jre19-openjdk-headlessAUR, jdk17-jetbrains-binAUR, zulu-jdk-fx-binAUR, zing-21-binAUR, zing-8-binAUR, jre17AUR, java-openjdk-binAUR, jre21-zulu-binAUR, amazon-corretto-17AUR, amazon-corretto-21-binAUR, jre17-zulu-binAUR, jdk21-temurinAUR, amazon-corretto-8AUR, amazon-corretto-11AUR, jdk11-temurinAUR, liberica-jdk-full-binAUR, liberica-jdk-21-full-binAUR, liberica-jdk-8-full-binAUR, jdk17-temurinAUR, zulu-21-binAUR, jdk-temurinAUR, jre8AUR, jdk8AUR, zulu-17-fx-binAUR, jdk8-perfAUR, zulu-jre-fx-binAUR, zulu-fx-binAUR, zulu8-fx-binAUR, zulu11-fx-binAUR, zulu17-fx-binAUR, zulu21-fx-binAUR, jdk-openj9-binAUR, jdk11-openj9-binAUR, jdk17-openj9-binAUR, jre-jetbrainsAUR, jre-openjdk-wakefield-headlessAUR, jre-openjdk-wakefieldAUR, jdk-openjdk-wakefieldAUR, jdk21-openj9-binAUR, zulu-23-binAUR, jreAUR, jdkAUR, jdk21-jetbrains-binAUR, java-openjdk-ea-binAUR, jre-zulu-binAUR, jre-zulu-fx-binAUR, jdk21-dragonwell-standard-binAUR, jdk21-dragonwell-extended-binAUR, jdk-openjdk, jdk11-openjdk, jdk17-openjdk, jdk21-openjdk, jre-openjdk, jre-openjdk-headless, jre11-openjdk, jre11-openjdk-headless, jre17-openjdk, jre17-openjdk-headless, jre21-openjdk, jre21-openjdk-headless, jre8-openjdk-headless)
- sed (busybox-coreutilsAUR, sed-gitAUR)
- sudo (fake-sudoAUR, polkit-fakesudoAUR, sudo-gitAUR, doas-sudo-shimAUR, doas-sudo-shim-minimalAUR, sudo-hgAUR, sudo-selinuxAUR, fudo-gitAUR)
- tmux (tmux-tcl-gitAUR, tmux-xdg-gitAUR, tmux-sixel-gitAUR, tmux-gitAUR)
- netcat (nmap-netcatAUR, openbsd-netcat-gitAUR, gnu-netcat-svnAUR, gnu-netcat, openbsd-netcat) (optional) – required in order to suspend an idle server
- tar (tar-gitAUR, busybox-coreutilsAUR) (optional) – needed in order to create world backups
Required by (0)
Sources (2)
Latest Comments
« First ‹ Previous 1 .. 17 18 19 20 21 22 23 24 25 26 27 .. 37 Next › Last »
<deleted-account> commented on 2013-09-17 21:06 (UTC)
SirPenguins commented on 2013-09-17 20:59 (UTC)
@ntzrmtthihu777
Should be fairly simple, honestly. Take a look at /etc/conf.d/minecraft and modify the SERVERJAR variable to be the name of your forge jar. This is what I do for the tekkit and Canary packages that are based off this base PKGBUILD.
Let me know how it goes!
<deleted-account> commented on 2013-09-17 20:36 (UTC)
Any chance on being able to setup minecraftforge with this? I can do it manually, but its nice to have an actual init script + screen setup for it.
to use forge with it you need to place the forge jar in /srv/minecraft and execute *it*, not minecraft_server.jar, with java.
<deleted-account> commented on 2013-06-27 10:11 (UTC)
@narical @SirPenguins It works fine to use anything-sync-daemon for keeping your world on a ramdisk.
*However*, this breaks the 'minecraftctl backup' command because by default tar doesn't follow symlinks and so you get tarball consisting of your server jar and the symlink asd creates. This is trivial to fix by adding the -h switch to the tar commands in the minecraftctl switch, and shouldn't break anything for non-users of asd, since it's hard to imagine a scenario where you wouldn't want the backup script to follow symlinks inside your world folder.
SirPenguins commented on 2013-06-04 16:17 (UTC)
@kd0bpv -- MCUSER is used by minecraftctl, as minecraftctl also sources that conf file.
Regardless, it makes sense to change the invocation. I'll get to it soon.
kd0bpv commented on 2013-06-04 16:05 (UTC)
@SirPenquins -- I noticed you set a variable in conf.minecraft called MCUSER, but then it's never used. Might I suggest changing the launch line in minecraftd to the following?
screen -dmS minecraft su ${MCUSER} -c "PATH=/opt/java/bin/:/usr/bin/:$PATH java -Xmx${MAXHEAP} -Xms${MINHEAP} -XX:+UseConcMarkSweepGC -XX:+CMSIncrementalPacing -XX:ParallelGCThreads=${THREADS} -XX:+AggressiveOpts -jar ${_SRVDIR}/${SERVERJAR} nogui"
I suspect that was the original intent of that variable. Otherwise, the variable is just a waste (granted, a small one) of memory. I have made this change and it works perfectly on my system.
SirPenguins commented on 2013-06-03 14:53 (UTC)
@narical -- I will try to add a ram-specific service file after I resolve the /usr/bin merge problems
@UnsolvedCypher -- minecraftd-diag will source /etc/conf.d/minecraft, su to user 'minecraft', and then run the jar with the same options the systemd service file would use. It's there to see what errors are occurring on the console since when invoked with screen the minecraft jar will just exit without leaving a log.
If you want to run the jar yourself, do this:
su minecraft
cd ~minecraft
java -jar minecraft_server.jar
@unikum -- There was a bug in the install script that deleted /usr/bin/minecraftd. It's been resolved and the working version has been uploaded. Grab the newest version and reinstall.
artemklevtsov commented on 2013-06-03 13:24 (UTC)
After last system updated I get:
ls -l /usr/bin/minecraftd
ls: cannot access /usr/bin/minecraftd: No such file or directory
I tried reinstall this package but it don't help.
UnsolvedCypher commented on 2013-05-24 22:45 (UTC)
What is the command to run the jar file? minecraftd-diag used to do this, but now it does something different.
Pinned Comments
edh commented on 2016-06-18 18:24 (UTC) (edited on 2021-10-02 08:19 (UTC) by edh)
To get an overview of the available options provided by the management script, be sure to have a look at the help page or read the according section on the ArchWiki article [1].
You can quit the console without shutting down the server by press ctrl+a d (first ctrl+a and after releasing the buttons press d; ctrl+b also works). This will detach your input from the server console. The attaching and detaching is done with tmux (previously GNU screen) since it lets you view and type into the console, send single commands to it and keep it alive without a connected user. Take a look at the the command overview at the ArchWiki [2] to get a feel for its power. (@carmelo12341)
[1] https://wiki.archlinux.org/title/Minecraft#Setup [2] https://wiki.archlinux.org/title/Tmux