Started by
overlordevilfr…
on
Topic category: Help with Minecraft modding (Java Edition)
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).
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.