fithwum Posted November 9, 2023 Author Share Posted November 9, 2023 also for the fabric template if you already have it installed you will need to add more variables as you can also now pick whatever version of minecraft is supported by fabric YOU WILL NEED TO CHANGE THE DOCKER TAG TO fithwum/minecraft-fabric:latest key: MC_VERSION key: INSTALLER_VERSION Quote Link to comment
fithwum Posted November 10, 2023 Author Share Posted November 10, 2023 for all running the vanilla minecraft you will also need to change your tag to latest and add the MC_VERSION variable this way you can select the version you want instead of waiting for me to add versions Quote Link to comment
Aeloth Posted November 14, 2023 Share Posted November 14, 2023 Hi, I can't connect to the server from the local network (thus not from outside), when I look in the log, I see that the server is running and ready. In minecraft game it says Can't connect to server. I have the port and IP correct. Quote Link to comment
Aeloth Posted November 14, 2023 Share Posted November 14, 2023 (edited) Looks like the container didn't map the ports. There is no network assigned. I don't know how to fix it. EDIT: I just added a port to container and it works. Edited November 14, 2023 by Aeloth Solved Quote Link to comment
fithwum Posted November 14, 2023 Author Share Posted November 14, 2023 sorry forgot to update post i have updated the templates for vanilla and fabric you will need to add some variables this is for added functionality if you add the size variables you will need to delete your run file. i removed the port mapping from the dockerfile so that it was possible to set the port and have it change the port in the settings file this works fine in my testing on 4 different servers so far. i made the changes as they were requested by many people. NEEDED key: GAME_PORT OPTIONAL key: XMX_SIZE key: XMS_SIZE key: XMN_SIZE Quote Link to comment
strangeslinky2 Posted February 10 Share Posted February 10 any changes I make to the ops.json are reverted once I restart the container, my understanding is that the restart pulls the default files. can I change this, or do I need to create a separate container? Brand New to Unraid so I am open to recommendations. Quote Link to comment
fithwum Posted February 10 Author Share Posted February 10 (edited) the only time it should be downloading a new file is when the file is not there at all. all my minecraft dockers are not even setup to download any ops file at all anyway i removed that as it was only there for testing to make things faster for me. the only other thing i can think of is that you dont have your data folders setup somehow. Edited February 10 by fithwum edit Quote Link to comment
Benjamins Posted Friday at 04:51 PM Share Posted Friday at 04:51 PM On 11/9/2023 at 6:04 PM, fithwum said: also for the fabric template if you already have it installed you will need to add more variables as you can also now pick whatever version of minecraft is supported by fabric YOU WILL NEED TO CHANGE THE DOCKER TAG TO fithwum/minecraft-fabric:latest key: MC_VERSION key: INSTALLER_VERSION I updated to MC Version 1.20.5 and now I am getting java related errors, I think the java version needs to be updated. maybe update java to 22? I am not sure the best way to fix this. java.lang.RuntimeException: An exception occurred when launching the server! at net.fabricmc.loader.impl.launch.server.FabricServerLauncher.main(FabricServerLauncher.java:71) at net.fabricmc.installer.ServerLauncher.main(ServerLauncher.java:69) Suppressed: java.awt.AWTError: Can't connect to X11 window server using '0' as the value of the DISPLAY variable. at java.desktop/sun.awt.X11GraphicsEnvironment.initDisplay(Native Method) at java.desktop/sun.awt.X11GraphicsEnvironment$1.run(X11GraphicsEnvironment.java:105) at java.base/java.security.AccessController.doPrivileged(AccessController.java:318) at java.desktop/sun.awt.X11GraphicsEnvironment.initStatic(X11GraphicsEnvironment.java:64) at java.desktop/sun.awt.X11GraphicsEnvironment.<clinit>(X11GraphicsEnvironment.java:59) at java.desktop/sun.awt.PlatformGraphicsInfo.createGE(PlatformGraphicsInfo.java:36) at java.desktop/java.awt.GraphicsEnvironment$LocalGE.createGE(GraphicsEnvironment.java:93) at java.desktop/java.awt.GraphicsEnvironment$LocalGE.<clinit>(GraphicsEnvironment.java:84) at java.desktop/java.awt.GraphicsEnvironment.getLocalGraphicsEnvironment(GraphicsEnvironment.java:106) at java.desktop/sun.awt.X11.XToolkit.<clinit>(XToolkit.java:224) at java.desktop/sun.awt.PlatformGraphicsInfo.createToolkit(PlatformGraphicsInfo.java:40) at java.desktop/java.awt.Toolkit.getDefaultToolkit(Toolkit.java:599) at java.desktop/javax.swing.UIManager.getSystemLookAndFeelClassName(UIManager.java:668) at net.fabricmc.loader.impl.gui.FabricMainWindow.open(FabricMainWindow.java:87) at net.fabricmc.loader.impl.gui.FabricGuiEntry.open(FabricGuiEntry.java:51) at net.fabricmc.loader.impl.gui.FabricGuiEntry.displayError(FabricGuiEntry.java:141) at net.fabricmc.loader.impl.gui.FabricGuiEntry.displayError(FabricGuiEntry.java:108) at net.fabricmc.loader.impl.launch.FabricLauncherBase$1.uncaughtException(FabricLauncherBase.java:108) at java.base/java.lang.ThreadGroup.uncaughtException(ThreadGroup.java:1082) at java.base/java.lang.ThreadGroup.uncaughtException(ThreadGroup.java:1077) at java.base/java.lang.Thread.dispatchUncaughtException(Thread.java:2017) Caused by: java.lang.RuntimeException: Error invoking MC server bundler: java.lang.UnsupportedClassVersionError: net/minecraft/bundler/Main has been compiled by a more recent version of the Java Runtime (class file version 65.0), this version of the Java Runtime only recognizes class file versions up to 61.0 at net.fabricmc.loader.impl.game.minecraft.BundlerProcessor.process(BundlerProcessor.java:102) at net.fabricmc.loader.impl.game.minecraft.MinecraftGameProvider.locateGame(MinecraftGameProvider.java:192) at net.fabricmc.loader.impl.launch.knot.Knot.createGameProvider(Knot.java:175) at net.fabricmc.loader.impl.launch.knot.Knot.init(Knot.java:130) at net.fabricmc.loader.impl.launch.knot.Knot.launch(Knot.java:68) at net.fabricmc.loader.impl.launch.knot.KnotServer.main(KnotServer.java:23) at net.fabricmc.loader.impl.launch.server.FabricServerLauncher.main(FabricServerLauncher.java:69) ... 1 more Caused by: java.lang.UnsupportedClassVersionError: net/minecraft/bundler/Main has been compiled by a more recent version of the Java Runtime (class file version 65.0), this version of the Java Runtime only recognizes class file versions up to 61.0 at java.base/java.lang.ClassLoader.defineClass1(Native Method) at java.base/java.lang.ClassLoader.defineClass(ClassLoader.java:1017) at java.base/java.lang.ClassLoader.defineClass(ClassLoader.java:879) at net.fabricmc.loader.impl.game.minecraft.BundlerProcessor$1.loadClass(BundlerProcessor.java:65) at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:525) at java.base/java.lang.Class.forName0(Native Method) at java.base/java.lang.Class.forName(Class.java:467) at net.fabricmc.loader.impl.game.minecraft.BundlerProcessor.process(BundlerProcessor.java:85) Quote Link to comment
fithwum Posted yesterday at 03:32 AM Author Share Posted yesterday at 03:32 AM it seems that for right now this is not possible as starting with version 1.20.5 of minecraft it now requires java 21 and at this time it is not available on linux except for unstable testing. i will be keeping an eye on this and try to work on a fix 1 Quote Link to comment
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.