Hey, I've been doing many things in java and tried modding out. Ok so here it is, i'm trying some semi simple things. I want to add a simple jet pack to my mod, where when you press space bar you fly. I was trying to use simple Keyboard.isKeyPressed() which then i soon realized is that you cant use this on servers for some reason with packets. I do not have experience with packets if this is indeed the case. Nor do i know if this is whats needed. I looked in the crash report and it said something about keyboard not created so i used Keyboard.create() and then i keep getting more errors.
Now is there a simple way to do this or do i have to make packet handlers, etc. Now if someone could guide me in the right direction and if needed i will attach my code i'm using, just ask.
Thank you.