Hello there everyone, I've seen some posts about dismounting but I couldn't find the right information about dismounting on animals. I did made a "fix" what it does : you dismount > get put back on. But I've seen that Hypixel doesn't have the problem with dismounting (in a minigame you fly with a chicken, shift is down, space is up). How do I cancel dismounting completely? The mob I'm using is a wolf. Thanks in advance, CB
@CraftBang You could try using the PlayerSneakEvent although I am not sure if it is called when you dismount.
Mhm I thought I tried that going to try now. I guess you ment PlayerToggleSneakEvent btw. Doesn't work Thanks for responding though
http://jd.bukkit.org/rb/doxygen/d2/..._1_1event_1_1vehicle_1_1VehicleExitEvent.html when this triggers that means player is trying to dismount therefor uses the sneak button so you can make him fly downwards when this occurs and same time cancel it. Hope i understood correctly and this works.
@mine-care I tried that, but a wolf isn't a Vehicle THERE, it is though if you're checking if the player isInVehicle, and than getVehicle(), weird!
@CraftBang oh lol! That's what I originally though. Since getVehicle can return wolf then I thought the event will fire too... Ugh...
@CraftBang Looks like the event is only fired if the Entity is actually a valid Vehicle, a custom entity could work, with some hacky workarounds involving https://github.com/samczsun/CraftBu...n/java/net/minecraft/server/Entity.java#L1414 and overriding its logic to your needs.
@mine-care thanks for responding @xTigerRebornx I do have a custom entity, I'll take a look into NMS, since it's my first time using that . Thanks!
@CraftBang @Skionz @mine-care That calls only when a Vehicle gets exited. That only includes vanilla- ridable mobs. (Horses, pigs, etc) Oh no @xTigerRebornx ninja'd me by 6 hours. nu
@ChipDev Ah. Then maybe next time you leave a page open 1/4 of a day, you'll refresh before posting, eh?