Jump to content

Goalieman_05

Members
  • Posts

    4
  • Joined

  • Last visited

Converted

  • Gender
    Undisclosed
  • Personal Text
    I am new!

Goalieman_05's Achievements

Tree Puncher

Tree Puncher (2/8)

0

Reputation

  1. Thank you both for your responses it seems to have worked decently well. Though i have changed my initial mechanics, i am still using the player.isSneaking() method. So once again thank you!
  2. Hi, im trying to use code like this to make a shift key negate fall damage in a specific sense. Im aware that fallDistance is handled server side and to get keyboard input you must use if(world.isRemote) if(Keyboard.isKeyDown){} in order to get it to work on a server. but i would like to use this in a way similar to this if (world.isRemote) if (Keyboard.isKeyDown(Keyboard.KEY_LSHIFT)) { player.fallDistance = 0; if (player.motionY <= 0) { player.motionY = -floatSpeed; } } is there any way of getting the shift key detection to not crash the server with allowing the server side handle fall distance. BTW im trying to not use packet handlers. Thank you!
  3. Ive had an error fixed using this. IT WORKS thank you soo much for pointing something obvious out to me. Ive been tryinng to mess with SideOnly because i knew it was a problem similar! Now is this used with sounds server side not playing as well?
  4. 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.
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.