Posted January 21, 20214 yr I am trying to make a custom autoclicker for my client side mod which will be used on my smp server so that when someone presses down the key "v" it will toggle an autoclicker for them. I was wondering if anyone could tell me what the method is to register a left click? I would appreciate it!
January 21, 20214 yr Check Minecraft#processKeyBinds where it checks for attack keybind (left mouse).
January 22, 20214 yr Author 2 hours ago, poopoodice said: Check Minecraft#processKeyBinds where it checks for attack keybind (left mouse). can you link me to the documentation page for it?
January 22, 20214 yr 9 minutes ago, Gubipe said: can you link me to the documentation page for it? There isn't one. Documentation (such as there is) is all inside the code itself. Apparently I'm a complete and utter jerk and come to this forum just like to make fun of people, be confrontational, and make your personal life miserable. If you think this is the case, JUST REPORT ME. Otherwise you're just going to get reported when you reply to my posts and point it out, because odds are, I was trying to be nice. Exception: If you do not understand Java, I WILL NOT HELP YOU and your thread will get locked. DO NOT PM ME WITH PROBLEMS. No help will be given.
January 22, 20214 yr Author 2 hours ago, Draco18s said: There isn't one. Documentation (such as there is) is all inside the code itself. Sorry this might sound dumb, I am new to working with minecraft mods. I was wondering if you could tell me the code location
January 22, 20214 yr There's probably something in or nearby to PlayerEntity (as a movement controller or something similar?) I'd start with searching my workspace for something along the lines of KeystrokeHandler or PlayerMovementController Edited January 22, 20214 yr by GenElectrovise How to ask a good coding question: https://stackoverflow.com/help/how-to-ask Give logs, code, desired effects, and actual effects. Be thorough or we can't help you. Don't post code without putting it in a code block (the <> button on the post - select "C-type Language"): syntax highlighting makes everything easier, and it keeps the post tidy. My own mod, Magiks Most Evile: GitHub (https://github.com/GenElectrovise/MagiksMostEvile) Wiki (https://magiksmostevile.fandom.com/wiki/Magiks_Most_Evile_Wiki) Edit your own signature at https://www.minecraftforge.net/forum/settings/signature/
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.