How to create a projectile entity?

Started by Amanikton on Fri, 06/10/2022 - 20:00

Topic category: Help with modding (Java Edition)

Last seen on 20:00, 10. Jun 2022
Joined Jul 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
How to create a projectile entity?
Fri, 06/10/2022 - 20:00

How to create a projectile entity? Or just an entity that does not have AI, it can pass and / or break into blocks, and most importantly, harms creature

Last seen on 22:44, 11. Aug 2022
Joined Mar 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
If this is shot from an item…
Fri, 06/10/2022 - 20:34

If this is shot from an item, use a ranged item. It will automatically create all the projectile stuff for you.

Otherwise, create a normal entity, and give it no AI.

Add a procedure that spawns it and launches it and one that detects when it collides.