How could I make a bullet home towards entities

Started by littledude47 on Mon, 09/07/2020 - 15:34

Topic category: Help with modding (Java Edition)

Last seen on 18:17, 27. Feb 2021
Joined Jan 2016
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
How could I make a bullet home towards entities
Mon, 09/07/2020 - 15:34

I'm making a ranged item and I want it to automatically go towards the nearest entity, how would I do this?

Last seen on 17:31, 20. Jun 2021
Joined Nov 2018
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
Do on bullet tick update, if…
Mon, 09/07/2020 - 16:39

Do on bullet tick update,

if does EntityMonster exist in 5 square cube

   deal damage 5 to get EntityMonster exist in  5 square cube.

 

Sorry for my punctuation errors as I am eating.

Last seen on 18:17, 27. Feb 2021
Joined Jan 2016
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
that would just instantly…
Mon, 09/07/2020 - 17:04

that would just instantly kill the mobs nearby I want the projectile to turn its direction towards them

Last seen on 17:31, 20. Jun 2021
Joined Nov 2018
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
Then just despawn the bullet…
Tue, 09/08/2020 - 06:42

Then just despawn the bullet after that. Beggars can't be choosers.

Last seen on 18:17, 27. Feb 2021
Joined Jan 2016
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
It just seriously doesn't…
Thu, 09/10/2020 - 03:26

It just seriously doesn't work, it would greatly lower the quality of the mod if the bullet just flew in a direction disappeared and hit a random mob

Last seen on 01:32, 6. Oct 2020
Joined Dec 2019
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
that's not really what they…
Sun, 09/20/2020 - 21:07

that's not really what they were asking