How can i make a mob jump when it sets its attack target randomly?

Started by kayleb10 on

Topic category: Help with modding (Java Edition)

Last seen on 22:17, 9. Apr 2024
Joined Mar 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
How can i make a mob jump when it sets its attack target randomly?

I want to make a horror mod that has a mob that can break blocks, jump randomly, and particles when jumping randomly. is there a way to make my mob (MX MARIO) to jump randomly?

Last seen on 22:17, 9. Apr 2024
Joined Mar 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Does Any one Know?  
Fri, 03/04/2022 - 21:55

Does Any one Know?

 

Last seen on 01:58, 4. Feb 2024
Joined Mar 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Im not a professional, but I…
Fri, 03/04/2022 - 23:37

Im not a professional, but I know this much. To make the mob jump you can use the procedure block "attempt to override motion vector of event/target entity" and set the vy: to velocity of event/target entity +1, to make him jump around a block high. As to making it random, you will have to set a randomizer variable. i havent done this yet, but im sure you can find it. 

Sorry i couldnt be much help, but Good Luck!

Last seen on 22:17, 9. Apr 2024
Joined Mar 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Its ok but thanks!  
Fri, 03/04/2022 - 23:39

Its ok but thanks!