Spawn ranged projectile when item is swung

Started by Geilosaurus on Thu, 09/01/2022 - 15:43

Topic category: Help with modding (Java Edition)

Last seen on 17:18, 1. Sep 2022
Joined Nov 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
Spawn ranged projectile when item is swung
Thu, 09/01/2022 - 15:43

Hi, so I wanted to make a staff that shoots a custom projectile with the "when entity swings item" trigger, but I don't know how to do that, since the way of spawning projectiles has been updated.

Some time ago it was easy: just create a new ranged item with the projectile and then you could call that "shoot projectile of type [custom proj.]" in a different procedure, but that just doesn't work anymore. So how do I do this now?

 

Last seen on 16:00, 27. Nov 2022
Joined Sep 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
What do you mean it doesn't…
Fri, 09/02/2022 - 10:51

What do you mean it doesn't work? How does it spawn