Perform actions (eg. give effect) on an entity hit by an arrow that was summoned in a procedure?

Started by SliwkaHAX on

Topic category: Help with modding (Java Edition)

Last seen on 13:26, 8. Apr 2023
Joined Nov 2018
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Perform actions (eg. give effect) on an entity hit by an arrow that was summoned in a procedure?

Latest version.

I have a procedure which shoots an arrow after an item was right clicked. I want to detect if the arrow hit an entity and perform stuff on it like give effects to it or strike lighthing at its coordinates or teleport it up by 5 blocks. How do i do it?

 

Current block code:

Last seen on 13:26, 8. Apr 2023
Joined Nov 2018
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
fixed: just make a ranged…
Fri, 04/07/2023 - 08:08

fixed: just make a ranged item instead