Posted January 2, 20232 yr Hi, LakshyaK2011 Here, I Have To Open A GUI on Client Side Please Keep In Mind That I Have The Following Objects Only (LocalPlayer, AbstractContainerMenu) How Do I Do It? I Can't Do LocalPlayer.openMenu() Because It Is An Empty Function And On Client Side I Can't Cast LocalPlayer To ServerPlayer
January 2, 20232 yr https://docs.minecraftforge.net/en/latest/gui/menus/#opening-a-menu 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.
January 3, 20232 yr Author I Said I Am On Client Side And On Client Side We Can't Use NetworkHooks.openGui I Am On Client Side Because I Want To Open Menu When A Key Is Pressed, And Key Presses Are On Client Side, How Do I Do It?
January 3, 20232 yr https://forge.gemwire.uk/wiki/Sides#Reaching_Across_Logical_Sides Please familiarise yourself with the whole wiki. 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.
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.