Posted June 27, 201411 yr Hello. Who knows what class code works when I, being on the mob, click LShift? Very necessary fixed a jumping player.
June 27, 201411 yr What??? Don't PM me with questions. They will be ignored! Make a thread on the appropriate board for support. 1.12 -> 1.13 primer by williewillus. 1.7.10 and older versions of Minecraft are no longer supported due to it's age! Update to the latest version for support. http://www.howoldisminecraft1710.today/
June 27, 201411 yr You're supposed to wait more than a few hours before bumping your own topic. anyway, I don't think there is a dedicated event for dismounting. However, it should be easy to check if something is mounted so you can monitor that (maybe with player tick event) and do what you want. I think the EntityPlayerSP and EntityPlayerMP have a public isRiding() method that you can check. If you keep track of that, you will be able to detect when there is a dismount because at some point it will be riding then it will be not riding. If you're only concerned about a custom entity of yours, you can also do this the other way -- in the update task for the entity you could check if it is being ridden and similarly look for a dismount. Check out my tutorials here: http://jabelarminecraft.blogspot.com/
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.