Source-checkedTechnology & automation

JavaProgArgOverride

by IAmREGE · for Minecraft

Enable you to override the target main class's Java Program arguments with arbitrary arguments using Mixin (by SpongePowered). And without changing cmdlines(in Task Manager or Htop)!

1.9KDownloads
21 mo agoLast updated
CC0-1.0License
Babric · Fabric +2Loaders

About JavaProgArgOverride

From Modrinth

Enable you to override the target main class's Java Program arguments with arbitrary arguments using Mixin (by SpongePowered). And without changing cmdlines(in Task Manager or Htop)!

Before Running This Mod

This mod is designed for advanced Minecraft users / mod developers. If you do not know how Java handles Program arguments, don't run it. WARN: ANY COMMAND CAN BE EXECUTED THROUGH THIS MOD LOADING, INCLUDING WHICH IS MALICIOUS. THE AUTHOR WILL NOT BE RESPONSIBLE FOR ANYTHING CAUSED BY RUNNING THIS MOD.

Mod Synopsis

This mod is a simple but powerful tool for overriding Java Program arguments.

How to Use This Mod

This mod uses 2 Java Properties: rege.rege.misc.javaprogargoverride.Util.overridingArgs (called overridingArgs below for convenience) and rege.rege.misc.javaprogargoverride.Util.overridingArgsType (called overridingArgsType below for convenience). This is a simple example that works (for client-side): 1\. Create overrideargs.py at the root directory of the Minecraft instance with following content:

#!/usr/bin/env python

from sys import stdin, stdout
stdout.write(stdin.read())
stdout.write(" --fullscreen")

2\. Edit the content of Java Properties arguments (e.g. “Settings/Java arguments” in Prism Launcher), add these: -Drege.rege.misc.javaprogargoverride.Util.overridingArgs="python overrideargs.py" -Drege.rege.misc.javaprogargoverride.Util.overridingArgsType=exec. 3\. Launch the game, and you will find that the Minecraft window is created in a fullscreen state. Explanation of the example:

  1. This mod will first check whether Property overridingArgs is present. If no, this mod will do nothing.
  2. There are 2 types available for Property overridingArgsType: plain and exec. The default is plain. If it is plain, then the arguments specified by overridingArgs will be directly used as the overriding arguments, in UNIX-Shell-styled format. If it is exec, then the arguments specified by overridingArgs will be executed as a command (like Batch / Shell commands), the arguments to be overridden will be passed into STDIN in UNIX-Shell-styled format. The STDOUT of the command will be used as the overriding arguments, in UNIX-Shell-styled format.
  3. For example, raw argument string arg1 'arg2' "arg3" \a\r\g\4 will be resolved as 4 arguments arg1, arg2, arg3 and arg4; raw argument string arg\\1 'arg\\2' "arg\\3" 'a'"r"g\''4' "" will be resolved as 5 arguments arg\1, arg\\2, arg\3, arg'4 and `(empty string); raw argument string "arg\"1" 'arg'\'"2" "arg\\\\3" arg\ \\4 will be resolved as 4 arguments arg"1, arg'2, arg\\3 and arg \4`.
  4. For example, arguments --width, 1800, --height and 1200 will be passed to STDIN as --width 1800 --height 1200; arguments --version, `(empty string), --gameDir and /home/this/is/a/path/with/"doubles"/'singles'/and/s p a c e s/and/even/\backslashes\ will be passed to STDIN as --version '' --gamedir /home/this/is/a/path/with/\"doubles\"/\'singles\'/and/s\ p\ a\ c\ e\ s/and/even/\\backslashes\\`.
  5. Appending arguments only is recommended (output the original arguments by using e.g. sys.stdout.write(sys.stdin.read()) in Python, System.out.write(System.in.readAllBytes()) in Java and cat - in Shell Script). But if you want, you can even make full use of the arguments!

Notice

This mod is “Client-side optional, Server-side optional”, and client-side and server-side version of this mod work independently, and they have nothing to do with each other. The client-side mod JAR will not be run on the server-side and vice versa. Please ensure you are running the correct version of the mod JAR on the correct side. If the argument format (by overridingArgs or the STDOUT when overridingArgsType is exec) is incorrect, Minecraft will crash:

  • Quote not close, for example: If the raw argument string is python "overrideargs.py, java.lang.IllegalArgumentException: quote at index 7 not closed will be thrown.
  • Unexpected escape character(\) at the end of the raw argument string, for example: If the raw argument string is python overrideargs.py\, java.lang.IllegalArgumentException: unexpected escape at the end will be thrown.
  • Command not found, for example: If the raw argument string is pyhon overrideargs.py, java.io.IOException: Cannot run program "pyhon": error=2, No such file or directory (may vary by operating system) will be thrown.

Report Issues

Please leave a comment about your issue under the gist.

Highlights

From source data

Game versions

Supports 858 Minecraft versions, the newest being 26.4-snapshot-1.

Loaders

Runs on Babric, Fabric, Legacy-fabric and Quilt.

Footprint

Rated a light load on a server.

JavaProgArgOverride on Nxeon

From our catalogue
One-click install
Supported on Nxeon Minecraft servers. We download it from Modrinth, place it, and restart the server.
Server side
Required on the server
Server type needed
Babric, Fabric, Legacy-fabric, Quilt
Server load
light
Smallest plan we suggest
Minecraft — 2 GB (2 GB RAM). This follows our own load rating above, not a benchmark.
Latest build
0.0.1, released 2025-02-07

Game versions by loader

LoaderGame versionsNewest
Fabric1.0 to b1.8.1 (858 versions)b1.8.1
Legacy-fabric1.0 to b1.8.1 (858 versions)b1.8.1
Quilt1.6 to 3D-Shareware-v1.34 (816 versions)3D-Shareware-v1.34
Babric1.0 to b1.8.1 (459 versions)b1.8.1

From 3 recorded builds of JavaProgArgOverride.

Recent builds

BuildReleasedGame versionsLoaders
0.0.12025-02-071.6 to 3D-Shareware-v1.34 (816 versions)Fabric, Legacy-fabric, Quilt
0.0.12025-02-071.0 to b1.8.1 (459 versions)Babric, Fabric, Legacy-fabric
0.0.12025-02-071.16 to 25w19a (296 versions)Fabric, Quilt

Run JavaProgArgOverride on a Minecraft server

Pick a server or deploy a new one above; it is installed in one click.

What kind of mod it is

From the catalog
Listed on Modrinth as “Mods”

Technology & automation

Machines, power, logistics and automation.

Runs on your server

From source side support

Modrinth lists JavaProgArgOverride as required on the server. Check its Modrinth page to see whether players need it too.

Compatibility

Game
Minecraft
Loaders
BabricFabricLegacy-fabricQuilt
Runs on
Serverrequired on the server
Game versions
26.4-snapshot-1 and 857 earlier

Verified at the source

  • ✓ModrinthOfficial listing, checked 2026-10-02Open ↗
  • ✓AuthorIAmREGE, as published on Modrinth
  • ✓LicenseCC0-1.0Free

JavaProgArgOverride, answered

Generated from the mod’s own source data.

Do my players need to install JavaProgArgOverride?

Modrinth lists JavaProgArgOverride as required on the server. Check its Modrinth page to see whether players need it too.

Which loaders does it support?

Babric, Fabric, Legacy-fabric and Quilt.

Is it free?

Yes. JavaProgArgOverride is free to download from Modrinth. Its license is CC0-1.0.

How do I add it to my Nxeon server?

Use “Add to a server” on this page, or open NxLabs from your dashboard. We install it, restart your server and switch it on.

NxLabs

Run JavaProgArgOverride on a Minecraft server.

Deploy in about a minute from $4.99 a month, then add JavaProgArgOverride in one click.