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

Started by davidS on

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:
  • MCreator plugins:
  • Comments:
Like a magic wand that causes lightning to fall on enemy entities?

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 00:07, 8. Apr 2024
Joined Nov 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • 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:
  • MCreator plugins:
  • Comments:
yes A screenshot would be…
Thu, 11/17/2022 - 17:35

yes A screenshot would be very helpful.