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

Started by SimonsBrother on Mon, 12/03/2018 - 10:59

Topic category: Help with modding (Java Edition)

Last seen on 13:15, 7. Dec 2018
Joined Nov 2018
User points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
How to make mobs move in a straight line, and be affected by gravity?
Mon, 12/03/2018 - 10:59

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.

Last seen on 17:11, 25. Oct 2020
Joined Nov 2018
User points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • 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.