Striking the nearest player (that isn't me obviously)

Started by SneckoGar on

Topic category: Help with modding (Java Edition)

Last seen on 02:20, 1. Dec 2023
Joined Nov 2023
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Striking the nearest player (that isn't me obviously)

I want to know how to make a procedure that when ever I use an item, it strikes the nearest player (that isn't myself) with lightning if the person is in atleast 15 blocks or less from me.

Last seen on 20:18, 25. Jul 2024
Joined Oct 2023
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Give the player a potion…
Wed, 11/29/2023 - 11:37

Give the player a potion effect. Check for players in a cube. If there are players that don't have the effect, strike lightning.