Like a magic wand that causes lightning to fall on enemy entities?

Started by davidS on Mon, 11/07/2022 - 13:36

Topic category: Help with modding (Java Edition)

Last seen on 19:39, 19. Nov 2022
Joined Mar 2016
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
Like a magic wand that causes lightning to fall on enemy entities?
Mon, 11/07/2022 - 13:36

I'm trying to make a magic wand or enchantment that will strike lightning on right click
which falls on the enemy but every time I try the beam it just falls on me and I try to make it fall 3 blocks away from the player but it only works on the spawn it helps.

Last seen on 19:12, 22. Jan 2023
Joined Nov 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
What I can think of:Use that…
Fri, 11/11/2022 - 01:03

What I can think of:

Use that one procedure block that gets every entity in a radius as entity iterator

For each:
If (entity iterator) is type (monster entity) - Strike lightning at position (position of entity iterator)

If this isn't clear enough I can make a screenshot and put that up.

Last seen on 19:39, 19. Nov 2022
Joined Mar 2016
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
yes A screenshot would be…
Thu, 11/17/2022 - 17:35

yes A screenshot would be very helpful.