Spigot | Ride Entities?

La
- in Servers
1

I have a small Minecraft server in 1.16, and my community has long wanted animals as lobby cosmetics which, among other things, you can ride. I have been looking for a function for a very long time to control CustomEntitys with W - A - S - D and the space bar because I have never worked with it, but unfortunately so far without any real success. I managed that the player can sit on an entity, but unfortunately he can't control it. Can someone help me how I can program something?

gl

You can call events, so it would work with a player because there's a PlayerMoveEvent, but there's no EntityMoveEvent, so I believe that it only works with packets: /

Btw this is how you call events:

Bukkit.getPluginManager (). CallEvent (PlayerMoveEvent (Player player, Location from, Location to);