How to make mobs move in a straight line, and be affected by gravity?

Started by SimonsBrother on

Topic category: Help with Minecraft modding (Java Edition)

Joined Nov 2018
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
How to make mobs move in a straight line, and be affected by gravity?

Hi,

I am trying to make a ranged weapons mod. However, since I don't really like the ranged weapon elements, I am trying to make my own system.

I have made and retextured a slime, which will act as my ammunition for now, but I am unsure how, when a person spawns it by using an item, it moves forward in a straight line, while obeying gravity.

Was wondering if anyone had any ideas as to how I could do this?

Thanks.

Joined Nov 2018
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
You can't do this without…
Wed, 12/05/2018 - 18:16

You can't do this without some custom code, but try learning java. Surprisingly learning how to code can actually be fun.

Also you would need to specify the x or z coordinate.