You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is your suggested enhancement related to a problem? Please describe.
Modrinth doesn't give any documentation towards the hooks for instances. My test script fails with error code 2 with zero logging from within the Modrinth app itself, except for the toast telling me it failed with error code 2.
Describe the solution you'd like
Some documentation towards the hooks and environment variables (or command line args) provided by Modrinth for the instance to use. I have provided some example images from MultiMC for reference towards what I would like to be added to Modrinth.
Describe alternatives you've considered
I have attempted to create a script that tells me what environment variables and command line arguments are available, but fails with error code 2 with zero explanation from the Modrinth app. The script works perfectly fine outside of Modrinth, but refuses to run and exits with error code 2 when used as a hook.
Additional context
N/A, all screenshots and context have been included above.
I believe the hooks in the Modrinth App currently don't support any variables, they're basically just triggers for running commands. They probably can be made more powerful in the future
Activity
[-]Features towards extending instance hooks[/-][+]Features extending instance hooks[/+]EchoEllet commentedon Jun 24, 2024
That's usually because those environment variables might not be supported yet or have a different name than the other launchers.
Prospector commentedon Jun 24, 2024
I believe the hooks in the Modrinth App currently don't support any variables, they're basically just triggers for running commands. They probably can be made more powerful in the future
Fix version pages by non-members being broken (#952)
EchoEllet commentedon Jul 6, 2024
It seems that this feature request is already in the TODO list in code:
code/packages/app-lib/src/api/profile/mod.rs
Lines 780 to 802 in 0f2ddb4
Fix subscriptions edge case (#952)
Prospector commentedon Aug 18, 2026
these were added in #5916