Posted May 9, 201510 yr I have a key Z that I want to do one thing if the player is riding an entity and another if they aren't. Right now the key won't do anything, whether the player is riding an Entity or not. How do I fix this? Creator of the MyFit, MagiCraft, Tesseract gun, and Papa's Wingeria mod.
May 9, 201510 yr Umm, post code please? You make KeyBinding, you use InputEvent.KeyInputEvent and check if keyBinding.isPressed(), then you make if statement in which you check if player is riding (you can do this client-side). Depending on what you need you might have to use packets. 1.7.10 is no longer supported by forge, you are on your own.
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.