how to make the entity walk jumping?

Started by MorshSmille on

Topic category: Help with Minecraft modding (Java Edition)

Active 2 years ago
Joined Feb 2018
Points:
693

User statistics:

  • Modifications: 0
  • Forum topics: 1
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 0
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)

 

Active 1 week ago
Joined May 2022
Points:
1270

User statistics:

  • Modifications: 15
  • Forum topics: 25
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 1141
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.