-
-
Notifications
You must be signed in to change notification settings - Fork 2.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Ability to use AddPackFindersEvent for optional Resource packs that are on by default #8960
Comments
I think this could already be accomplished by using |
@OrionDevelopment Obligatory ping as requested |
Sadly not the PackRepository does not exist yet, and as far as we can see there is no way for that to be done by default. |
Yes, it needs to be done later. And the mod also needs to keep track of whether it already "auto-enabled" the pack before, so that the user can disable it again without the mod re-enabling it. Sure, Forge could add functionality for this, but it should definitely be possible already. |
My point is yeah that is a possible clunky solution. Would we consider adding an endpoint to the API that facilitates this properly. |
What would "properly" mean, though, if not essentially what I described? |
As far as I can see marking the pack as enabled causes a second pack reload with the performance hit of that execution. So yes I don't consider the current method "properly" |
|
Nice idea I overlooked that option, but on the client side we are tending to make things properly possible in the correct events or directly in the registration place. Having to hijack such an event is not a great idea in my opinion. But yeah @Soaryn You could indeed do it in that event to enable it by name. That said I will look into adding an additional endpoint in the original event to enable it by default without making it required. |
Yes, a separate event should be added.
This will not be trivial, because at this point the game has not even loaded the user-selected resource packs from the options. |
These packs are mainly used for adding additional mod support that is not dependent on java code. These packs are disabled by default, this is to keep the functionality of allowing the end user of disabling the packs if they wanted to. Waiting the following MinecraftForge issue to be resolved to allow these packs to be enabled by default while still allowing end user to disable them. MinecraftForge/MinecraftForge#8960
Was curious if any traction had been done on a solution for this for forge :) |
I did not have the time, no. |
While the example of AddPackFindersEvent is highly useful, it is missing the functionality of having a resource pack added that is on by default without being forced
required
.The current options are to either accept it is default off, or always on. It would be preferable to have an option of on by default with the ability to disable by the user.
The text was updated successfully, but these errors were encountered: