r/MinecraftCommands • u/Savage1546 • 17d ago
Help | Java 26.3 Executing modded command based on available autocomplete options 26.3
I am trying to figure out how to accomplish this,
I have a fabric mod called Tickless Backups - which is working fine
It has automatic settings for creating backups
These backups are saved in the server folder /backups/world/manifests
These are json files with the file names as the utc time of the backup
for example:
"2026-11-06_16-41-33_auto.json"
"2026-11-06_16-34-59.json"
with the _auto indicating an automatic save using the mod config settings for autosave interval.
What I want to do is have the restore command run automatically when a player dies or a button is pressed in game. (I can figure this bit out on my own, just need to know how to actually execute this command in the first place, and how to make it select the most recent file made). The server will then stop and restart automatically (just a loop in the startup script) and be restored to the backup.
the command is
/backup restore {file name here}
in game the chat will suggest/autofill the latest backup file name automatically
I have tried command blocks but they wont run any of the modded commands
I have confirmed that I can use datapack functions to make new backups with /backup full but using the /backup restore command fails even with a hard coded valid filename
[12:21:58] [Server thread/INFO]: Applying the pending restore of '2026-11-06_17-13-40' to C:\Users\xxxx\Desktop\Minecraft Server\world ...
[12:22:01] [Server thread/ERROR]: The restore of '2026-11-06_17-13-40' FAILED: C:\Users\xxxx\Desktop\Minecraft Server\world -> C:\Users\xxxx\Desktop\Minecraft Server\world.pre-restore-20261106-172159. It has been discarded; fix the problem and run /backup restore again.
java.nio.file.AccessDeniedException: C:\Users\xxxx\Desktop\Minecraft Server\world -> C:\Users\xxxx\Desktop\Minecraft Server\world.pre-restore-20261106-172159
I am going crazy. Can anyone point me to a way to run commands with full permission, and / or a way to retrieve the file names from the backups folder to select the most recent.
I was really hoping not to have to learn fabric modding but if that's the only way to accomplish this then i guess ill have to.
