How I can move entity forward | Why vx vy vz don't work on Custom Mob Spawn

Started by Morugar on

Topic category: Help with Minecraft modding (Java Edition)

Joined Mar 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
How I can move entity forward | Why vx vy vz don't work on Custom Mob Spawn
Thu, 08/11/2022 - 11:54 (edited)

I want to create entity that just fly forward. Here my test code:

 

amogus

 

Don't look at else if and direction, it's from old code. I try a lot of, but my entity still don't move. Here I just summon entity and give vx * vz to 100, but nothing happend. My entity just spawn in direction I look and don't move. How I can move it forward?

Edited by Morugar on Thu, 08/11/2022 - 11:54
Joined Mar 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
What code? All you said was…
Fri, 08/12/2022 - 23:26

What code? All you said was amogus

Joined Feb 2024
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
i thing with this you can…
Tue, 02/20/2024 - 23:33

i thing with this you can use the command '/execute as @e[type=modname:entity] at @s run tp @s ^ ^ ^0.1'

your code turns the entity, and my command makes it move forward BTW replace modname:entity with ur mod's name and the entity name and u can change the 0.1 with a higher number to go faster. hope that helps!