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

Started by SneckoGar on

Topic category: Help with Minecraft modding (Java Edition)

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.

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.