Modrinth · Minecraft mod
JavaProgArgOverride
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)!
Quick answer
Which JavaProgArgOverride release matches 14w26a?
JavaProgArgOverride 0.0.1 targets 1.6, 1.6.1, 1.6.2 with Fabric, legacy-fabric, Quilt. Do not install it on the client. It must be installed on the dedicated server. No extra mods listed for this file.
Where it goes
Is JavaProgArgOverride required on the client, server, or both?
Do not install it on the client. It must be installed on the dedicated server.
This file is marked server-only.
What else does JavaProgArgOverride 0.0.1 need?
0.0.1 on 14w26a. Every mod below is checked against that same setup.
This file does not list any required mods. Do not add a library just because a different file uses it.
This file does not list any required or optional mods.
Before you install it
Add JavaProgArgOverride without breaking your instance.
Built for JavaProgArgOverride 0.0.1 on 14w26a. Pick another file and the loader, install side or required mods may change.
- 01
Stick to this file
Use 0.0.1. It targets 1.6, 1.6.1, 1.6.2 with Fabric, legacy-fabric, Quilt; another release may have different loader, side or dependency requirements.
- 02
Bring the mods it needs
This file does not list any required mods. Do not add a library just because a different file uses it.
- 03
Put it on the correct side
Do not install it on the client. It must be installed on the dedicated server.
- 04
Pick the file you checked
Use the “Get this file” button beside 0.0.1. It opens that exact file at the source.
About this project
What does JavaProgArgOverride add?
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:
- This mod will first check whether Property
overridingArgsis present. If no, this mod will do nothing. - There are 2 types available for Property
overridingArgsType:plainandexec. The default isplain. If it isplain, then the arguments specified byoverridingArgswill be directly used as the overriding arguments, in UNIX-Shell-styled format. If it isexec, then the arguments specified byoverridingArgswill 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.- For example, raw argument string
arg1 'arg2' "arg3" \a\r\g\4will be resolved as 4 argumentsarg1,arg2,arg3andarg4; raw argument stringarg\\1 'arg\\2' "arg\\3" 'a'"r"g\''4' ""will be resolved as 5 argumentsarg\1,arg\\2,arg\3,arg'4and ``(empty string); raw argument string"arg\"1" 'arg'\'"2" "arg\\\\3" arg\ \\4will be resolved as 4 argumentsarg"1,arg'2,arg\\3andarg \4. - For example, arguments
--width,1800,--heightand1200will be passed to STDIN as--width 1800 --height 1200; arguments--version, ``(empty string),--gameDirand/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\\.
- For example, raw argument string
- 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 andcat -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 closedwill be thrown. - Unexpected escape character(
\) at the end of the raw argument string, for example: If the raw argument string ispython overrideargs.py\,java.lang.IllegalArgumentException: unexpected escape at the endwill 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.
Project description from Modrinth.
Pick your setup
JavaProgArgOverride by Minecraft version and loader
Choose the version and loader you play, then open the matching release.
b1.8
1 loader buildb1.7.3
1 loader build26w14a
2 loader builds26.3-snapshot-6
2 loader builds26.3-snapshot-5
2 loader builds26.3-snapshot-4
2 loader builds26.3-snapshot-3
2 loader builds26.3-snapshot-2
2 loader builds26.3-snapshot-1
2 loader builds26.2-snapshot-8
2 loader builds26.2-snapshot-7
2 loader buildsShowing the newest 12 of 846 game versions. Older files are in the list below.
Check the dependencies, then try the file in a copied instance before changing a world you care about.
Recent files
JavaProgArgOverride versions and loaders
0.0.1
javaprogargoverride-0.0.1-client-mc1.6.x.jar
7 Feb 2025
0.0.1
javaprogargoverride-0.0.1-server-mcpre1.16.jar
7 Feb 2025
Looking for an older file? The official Modrinth project page is in Resources.