Posted May 18, 201312 yr Hey, how do you get rid of the player inventory? Basically is there a way to not render the player inventory gui when its called? Any Help appreciated. http://mag.racked.eu/cimage/i6000/Achievement++get%21/Newb+Modder%21/mca.png[/img]
May 19, 201312 yr Author Any way to make sure it does not render. Maybe the keybind could return null or something, i dont know how. http://mag.racked.eu/cimage/i6000/Achievement++get%21/Newb+Modder%21/mca.png[/img]
May 19, 201312 yr Another thing that you can do (but will annoy players who want other mods to all hell) is to overwrite the classes where they are called. http://i.imgur.com/ivK3J.png[/img] I'm a little surprised that I am still ranked as a "Forge Modder," having not posted a single mod since my animals mod... I have to complete Digging Deeper!, fast!
May 19, 201312 yr Author How will I do that? http://mag.racked.eu/cimage/i6000/Achievement++get%21/Newb+Modder%21/mca.png[/img]
May 19, 201312 yr How will I do that? You take all the classes that reference it, and re-write them. http://i.imgur.com/ivK3J.png[/img] I'm a little surprised that I am still ranked as a "Forge Modder," having not posted a single mod since my animals mod... I have to complete Digging Deeper!, fast!
May 20, 201312 yr Author Specifically I don't want the inventory screen to pop up when you hit the inventory binding....I dont think theres anything to overwrite without changing base files. Any ideas? http://mag.racked.eu/cimage/i6000/Achievement++get%21/Newb+Modder%21/mca.png[/img]
May 20, 201312 yr Specifically I don't want the inventory screen to pop up when you hit the inventory binding....I dont think theres anything to overwrite without changing base files. Any ideas? You would need to edit base files.... sorry mate I am Mew. The Legendary Psychic. I behave oddly and am always playing practical jokes. I have also found that I really love making extremely long and extremely but sometimes not so descriptive variables. Sort of like what I just did there
May 20, 201312 yr *face palms* Darnit. Why didn't I think of that? Good call. And I think coremods are bit advanced for most people who make mods... Doesn't stop me from wanting to learn how to do 'em though! I am Mew. The Legendary Psychic. I behave oddly and am always playing practical jokes. I have also found that I really love making extremely long and extremely but sometimes not so descriptive variables. Sort of like what I just did there
May 20, 201312 yr Coremods are not that hard once you understand the bytecode basics Also, if you happen to use Eclipse, I suggest the "Bytecode Overlay" plugin. Anyway, why not use a TickHandler, check if a GUI is open and if yes, which one, then "override" the GUI with opening your own GUI? Don't ask for support per PM! They'll get ignored! | If a post helped you, click the "Thank You" button at the top right corner of said post! | mah twitter This thread makes me sad because people just post copy-paste-ready code when it's obvious that the OP has little to no programming experience. This is not how learning works.
May 20, 201312 yr Anyway, why not use a TickHandler, check if a GUI is open and if yes, which one, then "override" the GUI with opening your own GUI? Because that's the most ugly solution i've seen in a long time But unless you make a coremod, you have a better solution? Don't ask for support per PM! They'll get ignored! | If a post helped you, click the "Thank You" button at the top right corner of said post! | mah twitter This thread makes me sad because people just post copy-paste-ready code when it's obvious that the OP has little to no programming experience. This is not how learning works.
May 20, 201312 yr But unless you make a coremod, you have a better solution? You can just change the value of the inventory keybinding at runtime, so that it's no longer the keycode 'e' but some obscure value that will never occur as a keycode. Untested. hm, but you would still have the vanilla keybinding in the options shown up (just set to an obscure value). Can't you "override" the keybindings for the inventory key with your own? So you wouldn't have to worry about setting the keybinding MC has to an obscure value. Don't ask for support per PM! They'll get ignored! | If a post helped you, click the "Thank You" button at the top right corner of said post! | mah twitter This thread makes me sad because people just post copy-paste-ready code when it's obvious that the OP has little to no programming experience. This is not how learning works.
May 20, 201312 yr Author But unless you make a coremod, you have a better solution? You can just change the value of the inventory keybinding at runtime, so that it's no longer the keycode 'e' but some obscure value that will never occur as a keycode. Untested. hm, but you would still have the vanilla keybinding in the options shown up (just set to an obscure value). Can't you "override" the keybindings for the inventory key with your own? So you wouldn't have to worry about setting the keybinding MC has to an obscure value. I have set my gui to "override" the screen. However, the vanilla inventory flashes up from time to time, and if I try to check if the screen is null, then my gui will never come up. And the check if the screen is null is important, because otherwise my gui will flash up during chat.... You can just change the value of the inventory keybinding at runtime, so that it's no longer the keycode 'e' but some obscure value that will never occur as a keycode. Untested. Maybe. Then I would need to make my inventory a specific key (which would work). This seems like the best solution, but how would I change the inventory key code at start up? http://mag.racked.eu/cimage/i6000/Achievement++get%21/Newb+Modder%21/mca.png[/img]
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.