I need help creating a rideable underwater mob that can move up and down.

Started by overlordevilfr… on

Topic category: Help with Minecraft modding (Java Edition)

Joined May 2026
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
I need help creating a rideable underwater mob that can move up and down.

Hello, I need help with how to make it so that when you're riding a mob in water, you can dive and resurface? Let's say you look down and the mob dives, then look up and the mob resurfaces. I'm trying to find tutorials, but I'm having trouble. Thanks in advance for your help (I'm completely new to this, using Mcreator version 2026.1).

Joined Jul 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Bit complex, get the player…
Mon, 05/25/2026 - 08:39

Bit complex, get the player y look angle. When it equals 1 the player is looking straight up, 0 is straight forward, -1 is straight down. Use that number to override the motion vector of the entity being ridden on tick. Eg on the entity tick, override motion vector to x delta movement of event/target entity, [speed of entity]*get y look angle of nearest entity of type player, z delta movement of event/target entity.