how to make the entity walk jumping?

Started by MorshSmille on

Topic category: Help with Minecraft modding (Java Edition)

Joined Feb 2018
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
how to make the entity walk jumping?

I've been trying for a few days to create an entity that is similar to a slime, but I'm not able to make it jump, I've already tried using procedure but in the configuration I made it jumps only once, could you help me with that? (sorry for my basic english)

 

Joined May 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
You cannot make an entity…
Thu, 07/27/2023 - 06:04

You cannot make an entity jump, but you could try using the 'Attempt to Override Motion Vector' code block to manually change the entity's velocity. If you add Y velocity to an entity, then add X and Z velocity equal to the X and Z values of the entity's look angle vector, you can make a motion pretty similar to jumping.

Example of the code for jumping.

You can change the multiplication value to increase the distance of the Jump, and the Y velocity to increase the height of the jump. You can then trigger something like this when you want the entity to jump in the direction it is looking.