A mod runs in-game command with customize configs.
For now the commands will run as soon as server mod initialize.
Also load the require mod Config Manager
Remember that Singleplayer contains an integrated server.
- Multi-command support
- Ticks or seconds: Whether use game ticks or seconds (20 ticks) in timing
- Delays: Add delay before command run
- Interval: The cycle of each command does
There's no reason to run a command from Java code
{
"0":{
"enabled":true,
"unit-use-ticks":false,
"delay":0,
"interval":10,
"command":"say Hello, world!"
},
"1":{
"enabled":true,
"unit-use-ticks":true,
"delay":0,
"interval":180,
"command":"time set day"
},
"2":{
"enabled":true,
"unit-use-ticks":true,
"delay":5,
"interval":200,
"command":"kill @e[type=item]"
}
}
Locate your config in Minecraft installation location.\
Default location using official launcher on Windows:
%APPDATA%\.minecraft\config\command_on_interval.json
Or
C:\Users\YOUR_USER_NAME\AppData\Roaming\.minecraft\config\command_on_interval.json
You will get somethings like that:
{
"0":{
"enabled":true,
"unit-use-ticks":false,
"delay":0,
"interval":10,
"command":""
}
}
No. 1 command,you can add
"1"
also"2"
etc...
True enable this entry of setting, vice versa
For delay or interval,
true
use ticks,false
ues seconds
Delay before each command runs
Cycles interval for each command
In-game command without
/
prefix
Eg.time set day
icon.png © 2025 by FelixAgairu is licensed under CC BY-NC-SA 4.0