Anonomys Posted December 22, 2022 Share Posted December 22, 2022 Hey, I want to ask the user to input their key on game launch, I just don't know how to show the screen on start. Can someone help? Quote This is my signature. I don't really too much know about java but i try to help and i try to get help from others too. Thank you! Link to comment Share on other sites More sharing options...
Anonomys Posted December 23, 2022 Author Share Posted December 23, 2022 Anyone? it doesn't have to be an input, but at least a warning (text that says something, and then a button to proceed to minecraft) Quote This is my signature. I don't really too much know about java but i try to help and i try to get help from others too. Thank you! Link to comment Share on other sites More sharing options...
warjort Posted December 23, 2022 Share Posted December 23, 2022 I don't know. I can't think of a single mod that does anything like that. Denying users access to a game they paid for, is questionable in terms of Mojang's EULA: https://www.minecraft.net/en-us/eula and almost certainly a breach if you are doing it to make money. Having said that, you could try listening on ScreenEvent.Render.Pre If event.getScreen() is the TitleScreen and your conditions are met, * cancel the event so it doesn't display the title screen * Use Minecraft.getInstance().setScreen() to change to your screen If you have done as little research as your original question suggested, your next will question will be "how do I write a screen?" https://docs.minecraftforge.net/en/latest/gui/screens/ or look at vanilla's ErrorScreen for a simple example. Quote Boilerplate: If you don't post your logs/debug.log we can't help you. For curseforge you need to enable the forge debug.log in its minecraft settings. You should also post your crash report if you have one. If there is no error in the log file and you don't have a crash report then post the launcher_log.txt from the minecraft folder. Again for curseforge this will be in your curseforge/minecraft/Install Large files should be posted to a file sharing site like https://gist.github.com You should also read the support forum sticky post. Link to comment Share on other sites More sharing options...
Anonomys Posted December 23, 2022 Author Share Posted December 23, 2022 (edited) 3 minutes ago, warjort said: I don't know. I can't think of a single mod that does anything like that. I know physics mod, the pro version asks you to enter your key when you launch the game. My mod just requires you to make a separate password for the mod if you are using cracked minecraft (the mod has separate accounts for cracked and premium users, premium users do not need to enter their password), so that people can't just access your stuff by using your username. I am not in any way doing it to make money. 3 minutes ago, warjort said: Having said that, you could try listening on ScreenEvent.Render.Pre Okay, thank you, I'll try. Edited December 23, 2022 by Anonomys Quote This is my signature. I don't really too much know about java but i try to help and i try to get help from others too. Thank you! Link to comment Share on other sites More sharing options...
warjort Posted December 23, 2022 Share Posted December 23, 2022 Cracked minecraft is definitely a breach of the EULA and not supported in this forum. Quote Boilerplate: If you don't post your logs/debug.log we can't help you. For curseforge you need to enable the forge debug.log in its minecraft settings. You should also post your crash report if you have one. If there is no error in the log file and you don't have a crash report then post the launcher_log.txt from the minecraft folder. Again for curseforge this will be in your curseforge/minecraft/Install Large files should be posted to a file sharing site like https://gist.github.com You should also read the support forum sticky post. Link to comment Share on other sites More sharing options...
Anonomys Posted December 23, 2022 Author Share Posted December 23, 2022 (edited) Here's what I was talking about, this now shows at the start if you use cracked minecraft. The exit button just takes you to the main menu, if you don't want to login. But you will not be able to use the stuff the mod needs the api for. And this shows if the API is down. Edited December 23, 2022 by Anonomys Quote This is my signature. I don't really too much know about java but i try to help and i try to get help from others too. Thank you! Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.